:root {
  --ink: #1f211f;
  --muted: #6c6a64;
  --paper: #f4f1ec;
  --soft: #faf8f4;
  --white: #fff;
  --line: rgba(31, 33, 31, 0.12);
  --orange: #e18a3a;
  --orange-dark: #c96f24;
  --green: #213b2c;
  --shadow: 0 18px 48px rgba(31, 33, 31, 0.12);
  --anchor-offset: 144px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

#top,
.section {
  scroll-margin-top: var(--anchor-offset);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 104px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
}

.nav a,
.header-phone,
.header-button {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding-block: 7px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-contacts {
  display: grid;
  gap: 1px;
  text-align: right;
}

.header-contacts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.header-button--max {
  color: var(--white);
  border-color: #226bff;
  background: #226bff;
}

.max-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  border-radius: 3px;
  color: #226bff;
  background: var(--white);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(460px, 1.14fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  min-height: 548px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 70px) clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 78% 18%, rgba(225, 138, 58, 0.16), transparent 31%),
    linear-gradient(90deg, rgba(250, 248, 244, 0.98), rgba(250, 248, 244, 0.9));
}

.hero__copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(76px, 8vw, 116px);
  line-height: 0.82;
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.95;
}

h3 {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

p,
li {
  line-height: 1.62;
}

.hero__lead {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__text {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.hero__visual {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.hero__visual img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 28px 45px rgba(31, 33, 31, 0.24));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  color: var(--white);
  background: var(--orange);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.lead-form h2 {
  margin-bottom: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.lead-form__phone {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.lead-form p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--white);
  font: inherit;
}

small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 33, 31, 0.46);
  backdrop-filter: blur(8px);
}

.lead-modal__dialog {
  z-index: 1;
  width: min(430px, 100%);
}

.lead-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lead-form.is-pending {
  opacity: 0.74;
}

.section {
  padding: clamp(48px, 6vw, 78px) clamp(18px, 5vw, 70px);
}

.section--compact {
  padding-top: 32px;
}

#benefits {
  padding-bottom: clamp(30px, 4vw, 48px);
}

#models {
  padding-top: clamp(36px, 5vw, 60px);
}

.section--soft {
  background: var(--soft);
}

.section--memory {
  background: #eef3ee;
}

.section--contacts {
  background: var(--soft);
}

.section-head {
  width: min(900px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.section-head--wide {
  width: min(1180px, 100%);
}

.benefit-grid,
.product-grid,
.complex-grid,
.method-grid,
.memory-layout,
.production-layout,
.review-grid,
.contacts-layout {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.hero > *,
.benefit-grid > *,
.product-grid > *,
.complex-grid > *,
.method-grid > *,
.memory-layout > *,
.production-layout > *,
.review-grid > *,
.contacts-layout > * {
  min-width: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.benefit-grid article {
  min-height: 178px;
  padding: 20px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 33, 31, 0.07);
}

.benefit-grid svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--orange);
  stroke-width: 1.6;
}

.benefit-grid h3 {
  font-size: 12px;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.benefit-grid__accent {
  background: #fff7ed !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.method-grid article,
.review-grid article,
.contacts-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(31, 33, 31, 0.08);
}

.product-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.product-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.product-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-card h3 {
  min-height: 46px;
  font-size: 16px;
}

.product-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-card span {
  margin-top: auto;
  padding-top: 8px;
  color: var(--orange-dark);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.note {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.complex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.complex-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(31, 33, 31, 0.08);
}

.complex-card img {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
}

.complex-card h3 {
  margin: 0;
  padding: 24px 28px 28px;
  font-size: clamp(20px, 1.7vw, 28px);
  text-transform: none;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-grid article {
  overflow: hidden;
}

.method-grid img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}

.method-grid h3,
.method-grid p {
  padding-inline: 20px;
}

.method-grid h3 {
  padding-top: 18px;
}

.method-grid p {
  color: var(--muted);
  font-size: 14px;
}

.memory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.memory-layout__copy h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  overflow-wrap: normal;
  word-break: normal;
}

.memory-heading-line {
  display: block;
  font-size: 0.96em;
  white-space: nowrap;
}

.memory-layout__copy .lead {
  color: var(--muted);
  font-size: 18px;
}

.memory-layout__image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.memory-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.memory-cards article {
  padding: 20px;
  border: 1px solid rgba(33, 59, 44, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.memory-cards ul {
  margin: 0;
  padding-left: 18px;
}

.memory-cards li,
.memory-cards p {
  color: var(--muted);
  font-size: 14px;
}

.text-link,
.map-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--orange-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.production-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.production-layout > div:first-child p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.production-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.production-steps article {
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
}

.production-steps img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.production-steps h3 {
  padding: 14px;
  font-size: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 0 22px;
}

.faq-list summary {
  padding: 22px 0;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-grid article {
  min-height: 250px;
  padding: 22px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.review-logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.review-head strong {
  font-size: 20px;
}

.review-head span {
  color: var(--orange);
  font-weight: 900;
}

.review-grid p {
  color: var(--muted);
  font-size: 14px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.contacts-image {
  overflow: hidden;
  border-radius: 6px;
}

.contacts-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.contacts-card {
  padding: clamp(24px, 4vw, 42px);
}

.contacts-phone {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 900;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: #171816;
}

.footer button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1120px) {
  :root {
    --anchor-offset: 206px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .production-layout {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form {
    width: min(460px, 100%);
  }

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

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

  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5) {
    grid-column: auto;
  }

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

@media (max-width: 850px) {
  :root {
    --anchor-offset: 236px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    order: 3;
  }

  .nav a {
    font-size: 11px;
  }

  .header-contacts {
    justify-self: end;
  }

  .header-actions {
    width: 100%;
  }

  .header-button {
    flex: 1;
  }

  .hero,
  .memory-layout,
  .contacts-layout,
  .production-layout {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .benefit-grid,
  .product-grid,
  .complex-grid,
  .method-grid,
  .review-grid,
  .memory-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --anchor-offset: 218px;
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 78px;
    height: 78px;
  }

  .header-contacts span {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(64px, 19vw, 78px);
  }

  h2 {
    font-size: clamp(30px, 11vw, 42px);
  }

  .hero__actions,
  .button,
  .footer button {
    width: 100%;
  }

  .benefit-grid,
  .product-grid,
  .complex-grid,
  .method-grid,
  .review-grid,
  .memory-cards,
  .production-steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 44px;
  }
}
