:root {
  --color-bg: #040d12;
  --color-surface: #183d3d;
  --color-muted: #5c8374;
  --color-accent: #93b1a6;
  --color-text: #e7f1ee;
  --color-danger: #ff8f8f;
  --font-main: "Segoe UI", "Inter", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 16px 36px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 4rem;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  margin: 0;
  font-family: var(--font-main);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: linear-gradient(180deg, #040d12 0%, #183d3d 52%, #040d12 100%);
}

header,
main section,
footer {
  padding-inline: var(--space-lg);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(147, 177, 166, 0.35);
}

nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(147, 177, 166, 0.5);
  background: rgba(4, 13, 18, 0.82);
  color: var(--color-text);
  font-size: 1.45rem;
  line-height: 1;
  position: relative;
  z-index: 90;
}

.menu-icon-open,
.menu-icon-close {
  display: inline-block;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="false"] .menu-icon-close {
  display: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

a:hover,
a:focus-visible {
  color: #d9ece5;
}

main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-block: var(--space-xl);
}

section {
  margin-bottom: var(--space-xxl);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.rating {
  margin: var(--space-md) 0;
}

.rating span {
  margin-left: var(--space-sm);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(147, 177, 166, 0.2);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #d3fff0;
}

.price s {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: var(--space-sm);
}

figure {
  margin: 0;
  background: rgba(24, 61, 61, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: var(--space-lg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

article,
form,
blockquote {
  background: rgba(24, 61, 61, 0.55);
  border: 1px solid rgba(147, 177, 166, 0.28);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

form {
  margin-top: var(--space-lg);
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  margin-top: var(--space-sm);
}

input,
textarea,
button {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(147, 177, 166, 0.6);
  background: rgba(4, 13, 18, 0.7);
  color: var(--color-text);
  padding: 0.72rem 0.82rem;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: #d7ece4;
  box-shadow: 0 0 0 3px rgba(147, 177, 166, 0.32);
}

button,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
  background: linear-gradient(120deg, #5c8374, #93b1a6);
  border: 0;
  color: #04261f;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.consent-line,
.switch-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-weight: 400;
}

.consent-line input,
.switch-line input {
  width: auto;
}

.error {
  min-height: 1.1rem;
  margin: 0;
  color: var(--color-danger);
  font-size: 0.9rem;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

blockquote p {
  margin-top: 0;
}

blockquote cite {
  color: var(--color-accent);
}

.cta article {
  text-align: center;
}

footer {
  border-top: 1px solid rgba(147, 177, 166, 0.35);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: rgba(4, 13, 18, 0.9);
}

footer nav {
  justify-content: center;
}

footer address {
  text-align: center;
  font-style: normal;
}

footer p {
  text-align: center;
}

.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  left: var(--space-md);
  max-width: 440px;
  width: auto;
  z-index: 50;
}

.cookie-banner article {
  padding: var(--space-md);
}

.cookie-banner nav {
  padding: 0;
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-banner button {
  margin: 0;
  width: auto;
}

.simple-page main {
  min-height: 58vh;
  display: grid;
  place-items: center;
}

.success-card article {
  max-width: 680px;
  text-align: center;
}

.success-layout main {
  display: block;
  min-height: auto;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.2);
  color: #d9ece5;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.success-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.success-flow ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.success-order-box .price {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.success-help nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.button-link.ghost {
  background: transparent;
  border: 1px solid rgba(147, 177, 166, 0.5);
  color: var(--color-accent);
}

.success-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.legal-page section article {
  margin-top: var(--space-sm);
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }

  header,
  main section,
  footer {
    padding-inline: var(--space-xs);
  }

  nav {
    align-items: center;
    flex-direction: row;
    gap: var(--space-sm);
  }

  nav ul {
    gap: var(--space-xs);
  }

  article,
  form,
  blockquote,
  figure {
    padding: var(--space-sm);
  }

  .price {
    font-size: 1.25rem;
  }

  .price s {
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
  }

  .button-link,
  button {
    width: 100%;
  }

  .cookie-banner {
    left: var(--space-xs);
    right: var(--space-xs);
    bottom: var(--space-xs);
  }
}

@media (min-width: 321px) and (max-width: 479px) {
  header,
  main section,
  footer {
    padding-inline: var(--space-sm);
  }

  nav {
    align-items: center;
    flex-direction: row;
    gap: var(--space-sm);
  }

  .price {
    font-size: 1.35rem;
  }

  .button-link,
  .cookie-banner button {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 679px) {
  header,
  main section,
  footer {
    padding-inline: var(--space-md);
  }

  nav {
    align-items: center;
    flex-direction: row;
  }

  .price {
    font-size: 1.55rem;
  }
}

@media (min-width: 680px) and (max-width: 767px) {
  .hero {
    gap: var(--space-xl);
  }

  nav ul {
    gap: var(--space-sm);
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    align-items: center;
    flex-direction: row;
  }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .success-flow {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .success-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .success-flow {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .success-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 1.03rem;
  }

  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .success-flow {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .success-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 979px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav-list {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    z-index: 80;
    background: rgba(4, 13, 18, 0.98);
    backdrop-filter: blur(6px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    margin: 0;
  }

  .primary-nav-list.is-open {
    display: flex;
  }

  .primary-nav-list a {
    font-size: 1.3rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 980px) {
  .primary-nav-list {
    display: flex;
  }
}
