@font-face {
  font-family: Onest;
  src: url('/assets/onest-cyrillic.woff2') format('woff2');
  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('/assets/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --font: Onest, Arial, sans-serif;
  --ink: #000;
  --muted: rgb(0 0 0 / 60%);
  --line-width: 1px;
  --border: rgb(0 0 0 / 20%);
  --field-hover: var(--pink-hover);
  --field-focus: var(--pink-active);
  --paper: #fff;
  --page: #e6f0f0;
  --band: rgb(0 120 160 / 10%);
  --pink: #ff5078;
  --pink-hover: #ff6478;
  --pink-active: #ff466e;
  --green-focus: #00b48c;
  --gutter: 32px;
  --section-space: 128px;
  --panel-radius: 64px;
  --info-radius: 32px;
  --panel-padding: 64px;
  --control-radius: 16px;
  --motion: 200ms cubic-bezier(.2,.75,.25,1);
  --gap: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.5 var(--font); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: 3rem; line-height: 4rem; }
h2 { font-size: 2rem; line-height: 3rem; }
h3 { font-size: 1.5rem; line-height: 2rem; }
small { font-size: .75rem; line-height: 1rem; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: var(--line-width) solid var(--green-focus); outline-offset: 4px; }
.container { width: min(1216px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { margin-top: var(--section-space); }
.band { background: var(--band); padding-block: var(--section-space); }
.panel { background: var(--paper); border-radius: var(--panel-radius); overflow: hidden; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.topbar { min-height: 120px; }
.topbar nav, .contacts { display: flex; align-items: center; gap: 16px; }
.button, .step {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  border: var(--line-width) solid transparent; border-radius: var(--control-radius);
  background: var(--pink); color: var(--paper); padding: 15px 31px;
}
.button:hover { background: var(--pink-hover); }
.button:active { background: var(--pink-active); }
.button.plain { color: var(--ink); background: transparent; }
.button.plain:hover { background: rgb(255 80 120 / 10%); }
.icon { flex: 0 0 auto; }

.hero { min-height: 600px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.hero-media, .product-media { position: relative; min-width: 0; }
.hero-media { isolation: isolate; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; padding: var(--panel-padding); z-index: 1; }
.hero-copy p { font-size: 1.5rem; line-height: 2rem; }
.hero-copy .button { margin-top: auto; inline-size: min(320px, 100%); min-block-size: 56px; flex-shrink: 0; white-space: nowrap; }
.photo { position: absolute; pointer-events: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .overlay { position: absolute; inset: 0; }
.hero-photo { width: 1200px; height: 1600px; left: 50%; top: calc(50% + 140px); transform: translate(-50%, -50%); }
.carousel { display: flex; align-items: center; gap: 8px; position: absolute; bottom: var(--panel-padding); left: var(--panel-padding); z-index: 2; }
.step { background: var(--paper); border-color: var(--pink); padding: 15px; }
.slide-label { min-inline-size: 168px; }
.step:hover { background: #fff0f3; }
.slide-label, .price { display: grid; background: var(--paper); border-radius: var(--control-radius); padding: 8px 32px; }
.slide-label small, .price small, .product-copy header p, dt, .info-card p { color: var(--muted); }

.section-heading { padding-inline: var(--panel-padding); margin-bottom: var(--gap); }
.section-heading p { margin-top: 8px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 184px); gap: var(--gap); padding: var(--gap); }
.info-card { position: relative; isolation: isolate; padding: var(--gap); border: var(--line-width) solid var(--border); border-radius: var(--info-radius); overflow: hidden; }
.info-card h3, .info-card p { position: relative; z-index: 1; }
.info-card p { margin-top: 8px; }
.info-card img { width: 320px; height: 320px; object-fit: cover; position: absolute; right: -40px; top: 50%; transform: translateY(calc(-50% + 20px)); }
.info-large { grid-row: span 2; }
@media (min-width: 1001px) {
  .info-large { display: flex; flex-direction: column; }
  .info-large picture { position: relative; flex: 1; margin-top: 32px; }
  .info-large img { width: 512px; height: 512px; top: calc(50% + 60px); left: calc(50% + 64px); right: auto; transform: translate(-50%, -50%); }
}

.product { min-height: 464px; display: grid; position: relative; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--panel-padding); }
.product + .product { margin-top: var(--gap); }
.product-copy { display: flex; flex-direction: column; gap: var(--gap); align-items: flex-start; z-index: 1; }
.product-copy h3 { margin-top: 8px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; }
.specs > div, .contacts > * { display: flex; align-items: center; gap: 8px; }
dt { font-size: .75rem; line-height: 1rem; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 56px; height: 56px; border: var(--line-width) solid transparent; border-radius: var(--control-radius); }
.swatch-0 { background: #c8dc78; }
.swatch-1 { background: #f0b4b4; }
.swatch-2 { background: #cda77f url('/assets/6758f.png') center / cover; }
.swatch[aria-pressed="true"] { border-color: var(--pink); }
.swatch:disabled { cursor: default; }
.product-photo { width: 900px; height: 1200px; left: 50%; top: calc(50% + 100px); transform: translate(-50%, -50%); }
.price { position: absolute; z-index: 2; right: var(--panel-padding); bottom: var(--panel-padding); }

.order { min-height: 464px; position: relative; display: flex; justify-content: flex-end; padding: var(--panel-padding); }
.order-photo { left: calc((100% - 352px) / 2); transform: translate(-50%, -50%); top: 50%; width: 696px; height: 464px; }
form { width: min(320px, 100%); position: relative; display: grid; gap: 16px; align-content: start; }
.field { width: 100%; min-width: 0; border: var(--line-width) solid var(--border); border-radius: var(--control-radius); background: var(--paper); padding: 15px; }
textarea.field { height: 104px; min-height: 56px; resize: vertical; }
form .button { margin-top: 16px; }
#order-form .button {
  display: grid; justify-items: center; padding-inline: clamp(10px, 4vw, 31px);
}
.button-label {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 16px;
  visibility: hidden; opacity: 0;
}
#order-form .button:not([data-state]) [data-label="ready"],
#order-form .button[data-state="sending"] [data-label="sending"],
#order-form .button[data-state="sent"] [data-label="sent"] {
  visibility: visible; opacity: 1; translate: 0 0;
}
.button[data-state]:is(:hover, :active) { background: var(--pink); translate: none; scale: none; }
.form-status { font-size: .875rem; }
.form-status[data-announce-only] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  .button-label {
    translate: 0 5px;
    transition: opacity 220ms ease, translate 220ms ease, visibility 220ms;
  }
  .button[data-state="sending"] [data-label="sending"] .icon {
    animation: order-plane-flight 1s ease-in-out infinite;
  }
  @keyframes order-plane-flight {
    0%, 100% { transform: translate(-2px, 2px) rotate(-7deg); }
    50% { transform: translate(4px, -4px) rotate(7deg); }
  }
}


@media (max-width: 1000px) {
  :root { --gutter: 32px; }
  .topbar picture img { width: 55px; height: 50px; object-fit: contain; }
  .hero { min-height: 0; height: 800px; display: block; position: relative; }
  .hero-media { position: absolute; inset: 0; }
  .hero-photo { width: 1050px; height: 1400px; left: calc(50% + 85px); top: calc(50% + 280px); }
  .carousel { left: auto; right: var(--panel-padding); }
  .hero-copy { position: absolute; inset: 0; gap: 24px; pointer-events: none; }
  .hero-copy .button { pointer-events: auto; inline-size: 173px; }
  .info-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 184px); }
  .info-large { grid-row: auto; }
  .info-large img { width: 320px; height: 320px; top: 50%; right: -40px; left: auto; transform: translateY(calc(-50% + 20px)); }
  .product { min-height: 632px; grid-template-columns: 1fr 1.4fr; }
  .specs { grid-template-columns: 1fr; }
  .product-photo { width: 900px; height: 1200px; top: 50%; }
  .footer { align-items: flex-start; }
  .footer .contacts { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section-space: 64px; --panel-radius: 32px; --info-radius: 16px; --panel-padding: 32px; --gap: 16px; }
  h1 { font-size: 2rem; line-height: 3rem; }
  .topbar { min-height: 152px; align-items: flex-start; padding-block: 32px; }
  .topbar nav { flex-direction: column; align-items: flex-end; gap: 8px; }
  .topbar .button { padding: 0; border: var(--line-width) solid transparent; margin: -1px; }
  .topbar nav .button.plain:is(:hover, :active) { background: transparent; translate: none; scale: none; }
  .topbar nav .button.plain:hover { color: var(--pink-hover); }
  .topbar nav .button.plain:active { color: var(--pink-active); }
  .hero { height: 720px; }
  .hero-copy { gap: 16px; }
  .hero-copy p { font-size: 1rem; line-height: 1.5rem; }
  .hero-copy .button { align-self: stretch; inline-size: auto; }
  .hero-photo { width: 750px; height: 1000px; top: calc(50% + 220px); left: 50%; }
  .carousel { display: none; }

  .info-grid { grid-template-rows: repeat(3, 320px); }
  .section-heading, .product + .product { margin-top: 0; }
  .section-heading { margin-bottom: 32px; }
  .product + .product { margin-top: 32px; }
  .info-card { display: flex; flex-direction: column; }
  .info-card picture { position: relative; flex: 1; margin-top: 16px; }
  .info-card img, .info-large img {
    width: 384px; height: 384px;
    top: calc(50% + 38px); left: calc(50% + 48px);
    right: auto; transform: translate(-50%, -50%);
  }
  .product { display: block; min-height: 600px; }
  .product-copy { position: relative; gap: 32px; }
  .specs { display: none; }
  .swatch { width: 40px; height: 40px; }
  .product-media { position: absolute; inset: 0; }
  .product-photo { width: 675px; height: 900px; top: 40px; transform: translateX(-50%); }
  .price { position: static; padding: 0; border-radius: 0; background: transparent; }
  .order { min-height: 400px; height: auto; justify-content: center; }
  .order-photo { display: none; }
  .order form { width: 100%; }
  .footer { flex-direction: column; align-items: center; gap: 32px; }
  .footer .contacts { align-items: center; width: 100%; }
  .footer .logo { max-width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



@media (min-width: 601px) and (max-width: 740px) {
  .topbar .button { padding-inline: 12px; }
  .carousel { bottom: 136px; left: var(--panel-padding); right: auto; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .order form { width: calc((100% - 32px) / 2); }
  .order-photo { width: 864px; height: 576px; left: auto; right: calc(50% - 12px); transform: translateY(-50%); }
}


.panel, .info-card, .button, .step, .slide-label, .price, .swatch, .field { corner-shape: squircle; }
[data-smooth-corner] { clip-path: var(--smooth-path); border-color: transparent !important; }
.info-card[data-smooth-corner] { overflow: visible; }
.button, .step, .slide-label, .swatch, .field { position: relative; }
[data-smooth-corner]::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--smooth-border-width, 0px));
  background: var(--smooth-stroke-color, transparent);
  mask: var(--smooth-stroke) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 3;
}
.step, .swatch[aria-pressed="true"] { --smooth-stroke-color: var(--pink); }
.info-card { --smooth-stroke-color: var(--border); }
.field[data-smooth-corner] { background-image: var(--smooth-field-border); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; }
[data-smooth-corner]:focus-visible { outline: none; --smooth-stroke-color: var(--green-focus); }

.hero-photo > img, .variant-photo { position: absolute; inset: 0; }
.variant-photo { opacity: 0; }
.variant-photo.is-current { opacity: 1; }
.step { color: var(--ink); }
.contacts { flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.contacts a { white-space: nowrap; gap: 16px; padding: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .button, .step, .swatch, .field, .slide-label, .contacts a, .topbar .logo {
    transition: background-color var(--motion), color var(--motion), translate var(--motion), scale var(--motion);
  }
  .button:hover, .step:hover, .swatch:hover, .slide-label:hover, .topbar .logo:hover { translate: 0 -2px; }
  .button:active, .step:active, .swatch:active { scale: .96; }
  .hero-copy .button:active { scale: 1; }
}

.field { color: var(--ink); caret-color: #4080ff; }
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus::placeholder { opacity: 0; }
.field:hover { border-color: var(--field-hover); }
.field:focus, .phone-field:focus-within { border-color: var(--field-focus); }
.field[data-smooth-corner]:hover { background-image: var(--smooth-field-hover); }
.field[data-smooth-corner]:focus, .phone-field[data-smooth-corner]:focus-within { background-image: var(--smooth-field-focus); }
.field:focus-visible, .field[data-smooth-corner]:focus-visible {
  clip-path: var(--smooth-path, none);
  outline: none;
}

.phone-field { display: flex; align-items: center; gap: 8px; }
.phone-prefix { flex: none; font-variant-numeric: tabular-nums; }
.phone-field:not(:focus-within):not([data-filled]):not([data-open]) :is(.phone-prefix, .phone-country-button) { display: none; }
.phone-field[data-open] { visibility: hidden; }
.phone-country-button {
  display: grid; place-items: center; flex: none;
  border: 0; background: transparent; padding: 0; color: inherit;
}
.phone-field #order-phone {
  min-width: 0; width: 100%; padding: 0; border: 0; background: transparent;
  color: inherit; caret-color: inherit; outline: none;
}
.phone-field #order-phone::placeholder { color: var(--muted); opacity: 1; }
.phone-countries {
  --phone-menu-height: 256px;
  position: fixed; inset: auto; margin: 0; padding: 7px;
  appearance: none; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: var(--line-width) solid var(--field-focus); border-radius: var(--control-radius);
  corner-shape: squircle; box-shadow: 0 32px 64px rgb(0 30 40 / 16%);
  max-height: var(--phone-menu-height);
}
.phone-country-options {
  display: grid; gap: 8px; grid-auto-rows: max-content; align-content: start;
  min-height: 0; padding-inline-end: 8px;
  overflow-y: auto; overscroll-behavior: contain;
}
.phone-country-options::-webkit-scrollbar { width: 4px; }
.phone-country-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.phone-countries [role="option"] {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 24px; gap: 8px;
  align-items: center; width: 100%; padding: 8px; min-height: 40px;
  background: transparent; border: 0; border-radius: 8px; corner-shape: squircle;
  color: inherit; text-align: start; cursor: pointer;
}
.phone-countries [role="option"] > :nth-child(2) { color: var(--muted); overflow-wrap: anywhere; }
.phone-countries [role="option"]:is(:hover, :focus-visible) { background: rgb(255 80 120 / 10%); outline: none; }
.phone-countries[popover]:popover-open { display: flex; flex-direction: column; }
.phone-country-check { visibility: hidden; }
.phone-countries [aria-selected="true"] .phone-country-check { visibility: visible; }
.phone-countries[data-smooth-corner] {
  clip-path: none;
  background-color: transparent;
  background-image: var(--smooth-menu-shape);
  background-size: 100% 100%;
  background-origin: border-box;
}
