:root {
  --bg: #f3f4f4;
  --surface: #ffffff;
  --ink: #161a1d;
  --muted: #62696d;
  --line: #dfe2e3;
  --accent: #9bdcff;
  --accent-dark: #77c8f4;
  --dark: #15191c;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(19, 25, 29, .09);
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header { position: relative; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(22,26,29,.09); backdrop-filter: blur(14px); }
.header__inner { height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; min-width: 150px; }
.brand__name { font-size: 27px; font-weight: 850; letter-spacing: -.06em; }
.brand__name span { color: #258ac1; }
.brand__caption { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 650; text-decoration: none; transition: opacity .2s; }
.nav a:hover { opacity: .55; }
.header__phone { display: flex; flex-direction: column; text-align: right; text-decoration: none; line-height: 1.1; }
.header__phone span { font-weight: 800; white-space: nowrap; }
.header__phone small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #111; }
.hero__image, .hero__overlay { position: absolute; inset: 0; }
.hero__image { background: url("images/hero.webp") center / cover no-repeat; transform: scale(1.01); }
.hero__overlay { background: linear-gradient(90deg, rgba(9,12,14,.92) 0%, rgba(9,12,14,.72) 44%, rgba(9,12,14,.18) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 96px 70px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { width: fit-content; max-width: 100%; padding: 7px 10px; color: #eaf8ff; background: rgba(57,153,205,.22); border: 1px solid rgba(155,220,255,.42); border-radius: 999px; letter-spacing: .09em; }
.eyebrow--dark { color: #287da8; }
.hero h1 { max-width: 830px; margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero__lead { max-width: 690px; margin: 28px 0 0; color: rgba(255,255,255,.83); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button--accent { color: #111; background: var(--accent); }
.button--accent:hover { background: var(--accent-dark); }
.button--ghost { color: inherit; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.36); }
.button--ghost:hover { background: rgba(255,255,255,.13); }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 850px; gap: 0; margin: 70px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.28); }
.hero__facts li { padding: 22px 30px 0 0; }
.hero__facts strong, .hero__facts span { display: block; }
.hero__facts strong { font-size: 18px; }
.hero__facts span { max-width: 190px; margin-top: 5px; color: rgba(255,255,255,.62); font-size: 13px; }

.quick-benefits { position: relative; z-index: 2; margin-top: -38px; }
.quick-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-benefits article { display: flex; gap: 15px; min-height: 154px; padding: 28px 24px; border-right: 1px solid var(--line); }
.quick-benefits article:last-child { border: 0; }
.benefit-icon { flex: 0 0 37px; height: 37px; display: grid; place-items: center; color: #15384b; background: var(--accent); border-radius: 50%; font-size: 11px; font-weight: 900; }
.quick-benefits h2 { margin: 0 0 8px; font-size: 16px; }
.quick-benefits p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.section { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: end; gap: 50px; margin-bottom: 46px; }
.section-heading h2, .quality h2, .order h2, .contacts h2 { margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; }

.products { padding-top: 132px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__image { position: relative; width: 100%; aspect-ratio: 1.25 / 1; padding: 0; overflow: hidden; border: 0; background: #fff; cursor: zoom-in; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .35s; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__image > span { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; color: #fff; background: rgba(16,20,23,.75); border-radius: 7px; font-size: 10px; opacity: 0; transition: opacity .2s; }
.product-card:hover .product-card__image > span { opacity: 1; }
.product-card__body { padding: 22px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 8px; color: #1c607f; background: #e7f6ff; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.product-card h3 { margin: 17px 0 9px; font-size: 22px; letter-spacing: -.025em; }
.product-card p { min-height: 72px; margin: 0; color: var(--muted); font-size: 14px; }
.product-card p.product-card__price { min-height: 0; margin: 0 0 10px; color: #1c607f; font-size: 15px; font-weight: 800; }
.product-card a { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; font-weight: 800; text-decoration: none; }
.product-card a span { font-size: 18px; line-height: 1; }
.products__note { margin: 25px 0 0; color: var(--muted); font-size: 14px; }

.quality { background: var(--surface); }
.quality__grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; }
.quality__content > p:not(.eyebrow) { margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.check-list { display: grid; gap: 13px; margin: 30px 0 26px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; color: #15384b; background: var(--accent); border-radius: 50%; font-size: 12px; font-weight: 900; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 850; text-decoration: none; border-bottom: 1px solid var(--ink); }
.quality__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail { min-height: 210px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #f5f5f5; cursor: zoom-in; }
.detail--large { grid-column: 1 / -1; min-height: 360px; }
.detail img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.detail:hover img { transform: scale(1.03); }

.works { background: #e9ebeb; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works-grid figure { position: relative; aspect-ratio: 1.28 / 1; margin: 0; overflow: hidden; border-radius: 14px; background: #ccc; }
.works-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.works-grid figure:hover img { transform: scale(1.045); }
.works-grid figcaption { position: absolute; inset: auto 10px 10px 10px; padding: 10px 12px; color: #fff; background: rgba(12,15,17,.78); border-radius: 8px; font-size: 12px; font-weight: 800; backdrop-filter: blur(5px); }

.order { background: var(--dark); color: #fff; }
.order__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.order__panel > div:first-child p:not(.eyebrow) { max-width: 570px; color: rgba(255,255,255,.67); font-size: 17px; }
.order ol { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.order li { display: flex; gap: 18px; align-items: flex-start; }
.order li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: #15384b; background: var(--accent); border-radius: 50%; font-weight: 900; }
.order li strong { display: block; font-size: 18px; }
.order li p { margin: 4px 0 0; color: rgba(255,255,255,.58); font-size: 14px; }
.order__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.contacts { padding-block: 88px; background: #0d1012; color: #fff; }
.contacts__grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 34px; }
.contacts__lead { max-width: 370px; color: rgba(255,255,255,.55); }
.contact-card { padding-top: 10px; }
.contact-card > span { display: block; margin-bottom: 16px; color: rgba(255,255,255,.42); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.contact-card a, .contact-card p { display: block; margin: 0 0 9px; color: #fff; text-decoration: none; font-size: 15px; }
.contact-card a:hover { color: var(--accent); }
.contact-card--actions a { width: fit-content; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.35); font-weight: 750; }
.footer { padding: 20px 0 88px; color: rgba(255,255,255,.45); background: #0d1012; font-size: 12px; }
.footer__inner { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); }
.footer a { text-decoration: none; }
.mobile-actions { display: none; }

section[id] { scroll-margin-top: 18px; }
.messenger-note { display: block; max-width: 220px; margin-top: 8px; color: rgba(255,255,255,.45); font-size: 11px; line-height: 1.45; }
.copy-toast { position: fixed; z-index: 300; left: 50%; bottom: 84px; max-width: min(320px, calc(100% - 32px)); transform: translate(-50%, 18px); padding: 10px 14px; color: #fff; background: rgba(13,16,18,.94); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: 0 12px 35px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.lightbox { max-width: min(900px, calc(100% - 30px)); padding: 12px; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.lightbox img { max-height: 72vh; margin: auto; object-fit: contain; }
.lightbox p { margin: 10px 40px 4px 8px; font-weight: 800; }
.lightbox__close { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #111; color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }

@media (max-width: 1050px) {
  .nav { gap: 16px; }
  .header__phone { display: none; }
  .hero { min-height: 680px; }
  .quick-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .quick-benefits article:nth-child(2) { border-right: 0; }
  .quick-benefits article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .quality__grid { grid-template-columns: 1fr; }
  .quality__gallery { max-width: 760px; }
  .contacts__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .contact-card--actions { grid-column: 2; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  body { padding-bottom: 66px; }
  .header__inner { height: 66px; }
  .brand__name { font-size: 24px; }
  .brand__caption { font-size: 8px; }
  .hero .eyebrow { font-size: 10px; padding: 6px 8px; }
  .menu-button { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; display: none; margin: 0; padding: 18px 20px 24px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 35px rgba(0,0,0,.1); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero { min-height: 700px; align-items: end; }
  .hero__image { background-position: 62% center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(9,12,14,.22), rgba(9,12,14,.9) 53%, rgba(9,12,14,.98)); }
  .hero__content { padding: 82px 0 42px; }
  .hero h1 { font-size: clamp(36px, 10.8vw, 52px); line-height: 1.01; }
  .hero__lead { margin-top: 20px; font-size: 17px; }
  .hero__actions { display: grid; margin-top: 27px; }
  .button { width: 100%; min-height: 52px; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; padding-top: 18px; }
  .hero__facts li { display: grid; grid-template-columns: 110px 1fr; align-items: start; padding: 0; }
  .hero__facts strong { font-size: 15px; }
  .hero__facts span { margin: 0; font-size: 12px; }
  .quick-benefits { margin-top: 0; padding-top: 14px; }
  .quick-benefits__grid { grid-template-columns: 1fr; border-radius: 16px; }
  .quick-benefits article { min-height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-benefits article:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 74px; }
  .products { padding-top: 78px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section-heading h2, .quality h2, .order h2, .contacts h2 { font-size: 38px; }
  .section-heading > p { font-size: 15px; }
  .product-grid { display: flex; gap: 14px; margin-right: -14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .product-card { flex: 0 0 84%; scroll-snap-align: start; }
  .product-card p { min-height: 64px; }
  .product-card__image > span { opacity: 1; }
  .quality__grid { gap: 38px; }
  .quality__gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail { min-height: 145px; border-radius: 11px; }
  .detail--large { min-height: 230px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .works-grid figure { border-radius: 9px; }
  .works-grid figcaption { inset: auto 6px 6px 6px; padding: 7px 8px; font-size: 10px; }
  .order__panel { grid-template-columns: 1fr; gap: 38px; }
  .order__actions { grid-column: auto; display: grid; }
  .contacts__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-card--actions { grid-column: auto; }
  .footer { padding-bottom: 24px; }
  .mobile-actions { position: fixed; z-index: 110; left: 0; right: 0; bottom: 0; height: 66px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-actions a { display: grid; place-items: center; border: 1px solid #cdd1d2; border-radius: 10px; font-weight: 800; text-decoration: none; }
  .mobile-actions__primary { color: #15384b; background: var(--accent); border-color: var(--accent) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v3.2 — mobile polish after live /new/ review */
@media (max-width: 760px) {
  /* Keep the persistent contact bar from covering the very end of sections. */
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 20px; }

  /* Make the first screen more compact without changing the message. */
  .hero {
    min-height: 0;
    align-items: end;
  }
  .hero__content { padding: 54px 0 30px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 {
    max-width: 620px;
    font-size: clamp(34px, 9.7vw, 46px);
    line-height: 1.02;
  }
  .hero__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.42;
  }
  .hero__actions { margin-top: 21px; gap: 9px; }
  .button { min-height: 48px; padding: 12px 16px; }
  .hero__facts {
    gap: 10px;
    margin-top: 26px;
    padding-top: 15px;
  }
  .hero__facts li { grid-template-columns: 96px 1fr; }
  .hero__facts strong { font-size: 14px; }
  .hero__facts span { font-size: 11px; line-height: 1.35; }

  /* More obvious horizontal product carousel, with reliable snap positions. */
  .product-grid {
    gap: 12px;
    margin-right: -14px;
    padding-right: 28px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 28px;
    scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card {
    flex: 0 0 90%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .product-card p { min-height: 0; }
  .product-card__body { padding-bottom: 24px; }

  /* Smaller fixed bar, plus safe-area-aware spacing. */
  .mobile-actions {
    height: auto;
    min-height: 58px;
    gap: 7px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-actions a {
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
  }
  .copy-toast { bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* Prevent controls inside the final contact area from sitting under the fixed bar. */
  .contacts { padding-bottom: 96px; }
}

/* v3.3 — final mobile bottom-bar polish after second /new/ review */
@media (max-width: 760px) {
  /* Slightly slimmer persistent action bar. */
  .mobile-actions {
    min-height: 52px;
    gap: 6px;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom));
  }
  .mobile-actions a {
    min-height: 42px;
    border-radius: 11px;
    font-size: 14px;
  }

  /* Keep the last contact details and footer fully scrollable above the fixed bar. */
  html { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .contacts { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  .copy-toast { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* v3.4 — reduce excessive empty space at the very bottom on mobile */
@media (max-width: 760px) {
  html { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: 0; }
  .contacts { padding-bottom: 72px; }
  .footer { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}
