/* Base layout */
:root {
  --color-primary: #2d3e4e;
  --color-secondary: #e2e8f0;
  --color-accent: #818cf8;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --radius-small: 0.25rem;
  --radius-medium: 0.5rem;
  --header-height: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--color-primary);
  overflow-x: hidden;
  background: radial-gradient(circle at top right, #dbeafe 0, transparent 45%), var(--color-background);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

main {
  padding-top: var(--header-height);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--color-background) 88%, #ffffff 12%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  z-index: 40;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.brand-text {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-list a {
  position: relative;
  padding-block: 0.25rem;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Burger and mobile nav */
.burger {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  border-radius: var(--radius-small);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  cursor: pointer;
}

.burger-line {
  width: 1.2rem;
  height: 1px;
  background: var(--color-primary);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  background: color-mix(in srgb, var(--color-background) 94%, #ffffff 6%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  transform: translateY(-100%);
  transition: transform 220ms ease;
  z-index: 35;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 30;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.mobile-nav-list a {
  padding-block: 0.25rem;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section:nth-of-type(odd) {
  background: radial-gradient(circle at left top, rgba(129, 140, 248, 0.08), transparent 55%);
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at right top, rgba(148, 163, 184, 0.16), transparent 55%);
}

.section-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.section-text {
  max-width: 40rem;
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.section-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(129, 140, 248, 0.18));
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.banner-media img {
  position: relative;
  z-index: -1;
}

/* Product grid */
.section-grid-products {
  align-items: flex-start;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.product-card {
  border-radius: 1rem;
  border: 0.5px solid rgba(148, 163, 184, 0.8);
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.65), rgba(226, 232, 240, 0.5));
  transition: border-color 180ms ease, background 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(199, 210, 254, 0.6));
}

.product-price {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

/* Contact */
.section-grid-contact {
  align-items: flex-start;
}

.section-map {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.96);
  min-height: 18rem;
}

.section-map iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  display: block;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-details span:first-child {
  display: inline-block;
  min-width: 4.5rem;
  font-weight: 500;
}

.section-form {
  background: rgba(248, 250, 252, 0.96);
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.5rem 1.75rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form-field span {
  color: #475569;
}

.form-field input,
.form-field textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.6rem 0.8rem;
  font: inherit;
  background: #f9fafb;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #475569;
}

.form-consent input {
  margin-top: 0.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent);
  color: #f9fafb;
  border-color: var(--color-accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: color-mix(in srgb, var(--color-background) 90%, #ffffff 10%);
  padding: 2.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-nav .nav-list {
  row-gap: 0.6rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1.25rem 1.25rem 1.25rem;
  max-width: 28rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem 1.15rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  z-index: 50;
}

.cookie-inner {
  display: grid;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.cookie-inner .btn-primary {
  justify-self: flex-start;
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.cookie-inner .btn-primary:hover,
.cookie-inner .btn-primary:focus-visible {
  background: #e5e7eb;
  color: #0f172a;
}

.cookie-banner.hidden {
  display: none;
}

/* Utility pages */
.legal-main {
  padding-top: var(--header-height);
}

.legal-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

.legal-header {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: 1.6rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: #64748b;
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.legal-aside {
  border-radius: 1.25rem;
  border: 0.5px solid rgba(148, 163, 184, 0.8);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.85));
  padding: 1.35rem 1.5rem;
  font-size: 0.9rem;
}

.legal-figure {
  border-radius: 1.25rem;
  overflow: hidden;
}

.legal-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date {
  font-size: 0.85rem;
  color: #64748b;
}

/* Thank you */
.thankyou-main {
  padding-top: var(--header-height);
}

.thankyou-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}

.thankyou-wrapper h1 {
  margin-bottom: 1rem;
}

.thankyou-wrapper p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .section-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .section-grid:nth-child(even) .section-text {
    order: 1;
  }

  .section-grid:nth-child(even) .section-media {
    order: 2;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .burger {
    display: none; /* ← ВОТ ЭТО ГЛАВНОЕ ИЗМЕНЕНИЕ */
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav-backdrop {
    display: none;
  }
}
@media (min-width: 1024px) {

  .section {
    padding-block: 5.25rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

