@font-face {
  font-family: Onest;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #172648;
  --ink-soft: #4c5b74;
  --cobalt: #2549c2;
  --cobalt-deep: #17378e;
  --ice: #f8faff;
  --line: #dce4f1;
  --orange: #e36d1d;
  --orange-light: #fff1e5;
  --green-light: #eef4e4;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 Onest, system-ui, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.fizme-story a:focus-visible, .site-footer a:focus-visible { outline-color: var(--white); }
img { display: block; max-width: 100%; }
p { margin-block: 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
.wrap { width: min(100%, 1360px); margin-inline: auto; padding-inline: clamp(20px, 3.5vw, 52px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; border: 2px solid var(--cobalt); border-radius: 8px; padding: 11px 17px; background: var(--white); color: var(--cobalt); font-weight: 700; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .97); backdrop-filter: blur(12px); }
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex: none; align-items: baseline; gap: .25em; color: var(--cobalt); font-size: 24px; font-weight: 750; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .story-link:hover { color: var(--cobalt); }
.header-buy { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--cobalt); border-radius: 100px; padding: 8px 20px; color: var(--cobalt); font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-buy:hover { background: var(--cobalt); color: var(--white); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; border: 0; border-radius: 100px; padding: 13px 25px; font-size: 15px; font-weight: 750; line-height: 1.25; text-align: center; white-space: nowrap; }
.button-primary { background: var(--cobalt); color: var(--white); }
.button-primary:hover, .product-buy:hover { background: var(--cobalt-deep); }
.button-light { background: var(--orange); color: var(--ink); }
.button-light:hover { background: #f59046; }

.hero { overflow: hidden; background: var(--ice); }
.hero-grid { display: grid; min-height: 640px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: min(5vw, 70px); padding-block: 46px; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { margin-bottom: 28px; color: var(--cobalt-deep); font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.hero h1 { color: var(--cobalt); font-size: clamp(100px, 12vw, 182px); font-weight: 750; letter-spacing: .01em; line-height: .9; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-left: .18em; }
.hero-lead { max-width: 31ch; margin-block: 48px 26px; color: var(--ink); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; }
.hero-stage { position: relative; height: min(44vw, 570px); min-height: 475px; isolation: isolate; }
.hero-stage::before { position: absolute; inset: 5% 0 5% 10%; z-index: -2; border-radius: 36px; background: var(--cobalt); content: ""; }
.hero-stage img { position: absolute; border-radius: 18px; background: var(--white); object-fit: cover; box-shadow: 0 15px 35px rgb(17 39 97 / .18); }
.hero-omega { top: 12%; left: 4%; width: 46%; height: 74%; transform: rotate(-5deg); }
.hero-felicide { top: 4%; right: 3%; width: 46%; height: 81%; transform: rotate(5deg); }
.hero-stage .hero-fizme { bottom: -1%; left: 30%; z-index: 2; width: 38%; height: 38%; object-fit: contain; transform: rotate(-3deg); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 16px 20px; color: var(--ink-soft); font-size: 13px; }
.hero-bottom p { margin: 0; }
.hero-bottom span { color: var(--cobalt); font-size: 23px; line-height: 1; }

.catalog { padding-block: clamp(66px, 8vw, 112px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 38px; }
.section-kicker { margin-bottom: 12px; color: var(--cobalt); font-size: 15px; font-weight: 700; }
.section-heading h2, .faq-heading h2, .story-copy h2, .buy-inner h2 { font-size: clamp(38px, 4.2vw, 62px); font-weight: 850; letter-spacing: -.055em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--ink-soft); font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product { display: flex; min-width: 0; flex-direction: column; }
.product-image { display: grid; height: clamp(270px, 29vw, 390px); place-items: center; overflow: hidden; border-radius: 22px; padding: 16px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-omega .product-image { background: #eef3ff; }
.product-felicide .product-image { background: #e8edfc; }
.product-fizme .product-image { background: var(--orange-light); }
.product-omega .product-image img { transform: scale(.92); }
.product-felicide .product-image img { transform: scale(.9); }
.product-fizme .product-image img { transform: scale(.96); }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 22px 4px 0; }
.product-kind { margin: 0 0 9px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.product-copy h3 { margin-bottom: 14px; color: var(--ink); font-size: clamp(30px, 3vw, 42px); font-weight: 850; letter-spacing: -.05em; }
.product-copy > p:not(.product-kind) { max-width: 33ch; margin-bottom: 26px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.info-button { display: inline-flex; min-height: 48px; align-items: center; border: 0; background: transparent; padding: 10px 3px; color: var(--cobalt); font-size: 14px; font-weight: 750; }
.info-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-buy { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-left: auto; border-radius: 100px; background: var(--cobalt); padding: 11px 18px; color: var(--white); font-size: 14px; font-weight: 750; white-space: nowrap; }
.variant-control { margin-block: auto 20px; }
.variant-label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.variants { display: flex; flex-wrap: wrap; gap: 9px; }
.variant { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 100px; background: var(--white); padding: 9px 14px; color: var(--ink); font-size: 13px; font-weight: 650; }
.variant:hover { border-color: var(--cobalt); }
.variant[aria-pressed="true"] { border-color: var(--cobalt); background: #e8efff; color: var(--cobalt-deep); }
.variant[data-flavor="green"][aria-pressed="true"] { border-color: #668545; background: var(--green-light); color: #35511e; }

.fizme-story { background: var(--cobalt); color: var(--white); }
.story-grid { display: grid; min-height: 480px; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: center; gap: 6vw; padding-block: 56px; }
.story-copy { max-width: 470px; }
.story-copy .section-kicker { color: #c9d7ff; }
.story-copy h2 { max-width: 10ch; }
.story-copy > p:not(.section-kicker) { max-width: 46ch; margin-block: 22px 26px; color: #e5ebff; font-size: 17px; }
.story-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; border-bottom: 1px solid #abbefb; padding: 8px 0; color: var(--white); font-size: 15px; font-weight: 700; }
.story-link:hover { color: var(--white); border-color: var(--white); }
.story-images { position: relative; height: 370px; }
.story-images img { position: absolute; width: 58%; height: 90%; border-radius: 20px; background: var(--white); object-fit: contain; }
.story-orange { top: 0; left: 0; transform: rotate(-7deg); }
.story-green { right: 0; bottom: 0; transform: rotate(7deg); }

.faq-section { padding-block: clamp(68px, 8vw, 108px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8vw; }
.faq-heading h2 { max-width: 10ch; }
.faq-heading > p:not(.section-kicker) { max-width: 31ch; margin-top: 20px; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; cursor: pointer; font-size: 17px; font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cobalt); content: "+"; font-size: 21px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 55ch; margin: -2px 48px 24px 0; color: var(--ink-soft); font-size: 15px; }
.faq-list a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

.buy-banner { background: var(--ice); }
.buy-inner { display: flex; min-height: 285px; align-items: center; justify-content: space-between; gap: 36px; padding-block: 52px; }
.buy-kicker { margin-bottom: 10px; color: var(--cobalt); font-size: 15px; font-weight: 750; }
.buy-inner h2 { margin-bottom: 14px; }
.buy-inner p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 8vw; padding-block: 52px; }
.site-footer .logo { color: var(--white); }
.footer-brand p { margin-top: 17px; color: #d4dcef; font-size: 14px; }
.footer-note p { max-width: 80ch; margin-bottom: 10px; color: #d4dcef; font-size: 13px; line-height: 1.6; }
.footer-note p:last-child { margin-bottom: 0; }

dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; border: 0; border-radius: 24px; padding: 34px; background: var(--white); color: var(--ink); box-shadow: 0 24px 90px rgb(10 24 60 / .25); }
dialog::backdrop { background: rgb(11 27 67 / .66); }
.dialog-close { float: right; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #edf2fc; color: var(--ink); font-size: 25px; }
.dialog-close:hover { background: #dfe8f9; }
.dialog-kicker { margin: 8px 0 18px; color: var(--cobalt); font-size: 14px; font-weight: 750; }
dialog h2 { margin-bottom: 20px; font-size: 38px; font-weight: 850; letter-spacing: -.05em; }
dialog > p:not(.dialog-kicker) { color: var(--ink-soft); font-size: 16px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.dialog-dismiss { min-height: 48px; border: 0; background: transparent; padding: 10px; color: var(--cobalt); font-weight: 700; }
.dialog-dismiss:hover { text-decoration: underline; text-underline-offset: 4px; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .hero h1 { font-size: clamp(86px, 12vw, 128px); }
  .hero-stage { min-height: 430px; }
  .product-image { height: 300px; }
  .product-actions { align-items: stretch; }
  .product-buy { margin-left: 0; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 108px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-top: 70px; }
  .hero h1 { font-size: clamp(100px, 19vw, 158px); }
  .hero-lead { margin-top: 38px; }
  .hero-stage { width: min(100%, 660px); height: 440px; min-height: 0; margin-inline: auto; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-fizme { grid-column: span 2; }
  .product-fizme .product-image { height: 360px; }
  .story-grid, .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-images { max-width: 650px; width: 100%; margin-inline: auto; }
  .faq-heading h2 { max-width: none; }
  .buy-inner { min-height: 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 116px; }
  .nav { min-height: 108px; flex-wrap: wrap; gap: 0 12px; padding-block: 12px; }
  .logo { font-size: 21px; }
  .header-buy { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 16px; }
  .nav-links a { min-height: 44px; font-size: 13px; }
  .hero-grid { gap: 10px; padding-top: 58px; }
  .hero-kicker { margin-bottom: 22px; font-size: 13px; }
  .hero h1 { font-size: clamp(75px, 22vw, 116px); }
  .hero h1 span + span { margin-left: .18em; }
  .hero-lead { max-width: 26ch; margin-block: 32px 22px; font-size: 18px; }
  .hero-stage { height: 330px; }
  .hero-stage::before { inset: 4% 0 4% 4%; border-radius: 24px; }
  .hero-omega { width: 47%; height: 75%; }
  .hero-felicide { width: 47%; height: 81%; }
  .hero-fizme { width: 39%; height: 40%; }
  .hero-bottom { font-size: 12px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 46px; }
  .product-fizme { grid-column: auto; }
  .product-image, .product-fizme .product-image { height: 320px; }
  .product-omega .product-image img, .product-felicide .product-image img { transform: scale(.86); }
  .product-copy h3 { font-size: 34px; }
  .story-grid { padding-block: 66px 52px; }
  .story-images { height: 275px; }
  .story-images img { width: 61%; height: 89%; }
  .faq-list summary { min-height: 70px; font-size: 16px; }
  .buy-inner { display: block; }
  .buy-inner .button { margin-top: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
  .nav-links { gap: 8px; }
  .hero h1 { font-size: 72px; }
  .hero-stage { height: 270px; }
  .hero-bottom p { max-width: 25ch; }
  .product-image, .product-fizme .product-image { height: 270px; }
  .product-actions { gap: 8px 12px; }
  .product-buy { padding-inline: 14px; }
  .story-images { height: 230px; }
  .buy-inner .button { width: 100%; white-space: normal; }
  dialog { padding: 25px; }
}

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