:root {
  --color-bg: #F5EEDC;
  --color-primary: #27548A;
  --color-secondary: #183B4E;
  --color-accent: #DDA853;
  --color-surface: #ffffff;
  --color-text: #16303f;
  --color-muted: #4a5b65;
  --font-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 6px 20px rgba(24, 59, 78, 0.12);
  --shadow-md: 0 12px 30px rgba(24, 59, 78, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--color-primary);
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-secondary);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 238, 220, 0.96);
  border-bottom: 1px solid rgba(24, 59, 78, 0.14);
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-md);
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-secondary);
}

.nav-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.nav-list a,
.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.menu-close-icon {
  display: none;
}

.menu-toggle.is-open .menu-open-icon {
  display: none;
}

.menu-toggle.is-open .menu-close-icon {
  display: inline;
}

.section {
  padding: var(--space-xxl) 0;
}

.alt {
  background: rgba(255, 255, 255, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.rating-line {
  margin-top: var(--space-lg);
  font-weight: 700;
}

.trust-badge {
  margin: var(--space-sm) 0 0;
  color: var(--color-muted);
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  color: var(--color-secondary);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.price {
  margin: var(--space-lg) 0;
  font-size: 1.25rem;
}

.new-price {
  color: var(--color-primary);
  font-weight: 800;
  margin-right: var(--space-sm);
}

.old-price {
  color: var(--color-muted);
  text-decoration: line-through;
}

.form {
  display: grid;
  gap: var(--space-xs);
}

label {
  font-weight: 600;
  margin-top: var(--space-sm);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(24, 59, 78, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(39, 84, 138, 0.18);
  outline: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-weight: 500;
}

.check-row input {
  width: auto;
  margin-top: 0.2rem;
}

.error-message {
  margin: 0;
  min-height: 1.1rem;
  color: #9f2e2e;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  margin-top: var(--space-md);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary {
  background: var(--color-accent);
  color: #1f2529;
}

.feature-list,
.ordered-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-sm);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.cta-card {
  text-align: center;
}

.success-main {
  min-height: calc(100vh - 180px);
}

.success-section {
  display: flex;
  align-items: center;
}

.success-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.success-badge {
  display: inline-block;
  margin: 0 0 var(--space-md);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(39, 84, 138, 0.12);
  color: var(--color-secondary);
  font-weight: 700;
}

.success-steps,
.success-product,
.success-contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(24, 59, 78, 0.14);
}

.success-actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.success-actions .btn {
  margin-top: 0;
}

.site-footer {
  padding: var(--space-xl) 0;
  background: var(--color-secondary);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--space-md);
  justify-content: center;
}

.site-footer p{
  text-align: center;
}
.site-footer a {
  color: #f7d38b;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: min(560px, calc(100% - 2rem));
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(24, 59, 78, 0.2);
  z-index: 40;
}

.cookie-content {
  padding: var(--space-lg);
}

.cookie-switches {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cookie-hidden {
  display: none;
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, 88%);
  }

  .hero-grid {
    gap: calc(var(--space-xl) + 1rem);
  }
}

@media (max-width: 1199px) {
  .container {
    width: min(1040px, 92%);
  }

  .card {
    padding: calc(var(--space-xl) - 0.25rem);
  }
}

@media (max-width: 991px) {
  .section {
    padding: calc(var(--space-xxl) - 0.75rem) 0;
  }

  .nav-list {
    gap: var(--space-sm);
  }

  .card {
    padding: calc(var(--space-xl) - 0.5rem);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .cookie-actions .btn {
    flex: 1 1 180px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  :root {
    --space-xxl: 2.5rem;
    --space-xl: 1.5rem;
  }

  .container {
    width: min(100%, 94%);
  }

  .site-header {
    position: sticky;
  }

  .brand {
    font-size: 1.08rem;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 1100;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--color-bg);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.2rem 1.2rem;
  }

  .site-nav .nav-list {
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .site-nav .nav-list a {
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.3rem 0;
  }

  h1 {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
  }

  h2 {
    font-size: 1.35rem;
  }

  .price {
    font-size: 1.12rem;
  }

  .card {
    border-radius: var(--radius-md);
  }

  .btn {
    width: 100%;
  }

  .success-card {
    max-width: 100%;
  }

  .success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 0.65rem 1rem;
  }

  .cookie-content {
    padding: var(--space-md);
  }

  .switch-item {
    gap: var(--space-sm);
  }
}

@media (max-width: 575px) {
  .section {
    padding: 2rem 0;
  }

  .header-row {
    padding: 0.75rem 0;
  }

  .card {
    padding: 1rem;
  }

  .hero-media figure {
    margin: 0;
  }

  .nav-list a,
  .footer-links a {
    font-size: 0.94rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: 95%;
  }

  .brand {
    line-height: 1.3;
    word-break: break-word;
  }

  .check-row {
    gap: 0.45rem;
    font-size: 0.93rem;
  }

  input,
  textarea {
    padding: 0.68rem;
  }

  .cookie-banner {
    right: 0.4rem;
    bottom: 0.4rem;
    width: calc(100% - 0.8rem);
  }
}

@media (max-width: 360px) {
  .container {
    width: 96%;
  }

  .section {
    padding: 1.6rem 0;
  }

  h1 {
    font-size: 1.32rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .nav-list,
  .footer-links {
    gap: 0.45rem 0.7rem;
  }

  .site-nav .nav-list a {
    font-size: 1rem;
  }

  .card {
    padding: 0.85rem;
  }
}

@media (max-width: 320px) {
  .container {
    width: 97%;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-list a,
  .footer-links a {
    font-size: 0.88rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.08rem;
  }

  .price {
    font-size: 1rem;
  }

  .card {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
  }

  .btn {
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
  }

  .cookie-content {
    padding: 0.75rem;
  }

  .switch-item {
    font-size: 0.92rem;
  }
}
