:root {
  --bg: #020307;
  --bg-soft: #070b13;
  --panel: rgba(8, 13, 23, 0.82);
  --panel-strong: rgba(2, 5, 12, 0.94);
  --text: #f4fbff;
  --muted: #9ab3c5;
  --line: rgba(119, 209, 255, 0.22);
  --blue: #35b9ff;
  --blue-soft: #9adfff;
  --blue-deep: #106dff;
  --black: #000;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(34, 177, 255, 0.2);
  --container: min(1180px, calc(100vw - 40px));
  --title-hero-size: clamp(26px, 3.6vw, 48px);
  --title-catalog-size: clamp(19px, 2.15vw, 28px);
  --title-promo-size: clamp(19px, 2.15vw, 28px);
  --title-about-size: clamp(19px, 2.15vw, 28px);
  --title-delivery-size: clamp(19px, 2.15vw, 28px);
  --title-contacts-size: clamp(19px, 2.15vw, 28px);
  --title-catalog-page-size: clamp(28px, 3.6vw, 46px);
  --title-product-size: clamp(24px, 2.7vw, 36px);
  --title-checkout-size: clamp(28px, 3.6vw, 46px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 185, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #000 0%, var(--bg) 44%, #01050b 100%);
  font-family: Inter, Manrope, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-lock {
  overflow: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 24px);
  padding: clamp(28px, 7vh, 76px) 20px;
  background: #000;
  transition: opacity 0.34s ease, visibility 0.34s ease;
  will-change: opacity;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__bloom {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 0 0 auto;
  width: clamp(218px, 24vw, 342px);
  aspect-ratio: 1;
  border-radius: 0;
  background: url("../images/intro-flower-cutout.png?v=1") center / contain no-repeat;
  filter: none;
  animation: introFlowerFade 0.78s ease both;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.intro__bloom::before {
  content: none;
}

.intro__bloom span {
  display: none;
}

.intro__bloom span:nth-child(1) { --angle: 0deg; animation-delay: 0.03s; }
.intro__bloom span:nth-child(2) { --angle: 60deg; animation-delay: 0.08s; }
.intro__bloom span:nth-child(3) { --angle: 120deg; animation-delay: 0.13s; }
.intro__bloom span:nth-child(4) { --angle: 180deg; animation-delay: 0.18s; }
.intro__bloom span:nth-child(5) { --angle: 240deg; animation-delay: 0.23s; }
.intro__bloom span:nth-child(6) { --angle: 300deg; animation-delay: 0.28s; }

.intro__bloom::after {
  content: none;
}

.intro__logo {
  position: relative;
  flex: 0 0 auto;
  width: min(248px, 54vw);
  margin-top: clamp(-34px, -3.4vh, -14px);
  aspect-ratio: 1119 / 519;
  display: block;
  background: var(--intro-logo, url("../images/akemi-wordmark-intro.png?v=3")) center / contain no-repeat;
  opacity: 1;
  pointer-events: none;
  animation: logoReveal 0.46s ease 0.08s both;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.intro.is-leaving .intro__bloom {
  animation: bloomExit 0.26s ease forwards;
}

.intro.is-leaving .intro__logo {
  animation: logoExit 0.26s ease forwards;
}

.topline {
  position: relative;
  z-index: 30;
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
  color: var(--blue-soft);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 34px;
  white-space: nowrap;
}

.topline__track {
  display: inline-flex;
  gap: 38px;
  min-width: max-content;
  padding-left: 38px;
  animation: marquee 24s linear infinite;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 70px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(119, 209, 255, 0.14);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header--home {
  background: rgba(0, 0, 0, 0.82);
}

.header.is-scrolled {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 154px;
  height: 58px;
  overflow: hidden;
}

.header--home .brand {
  width: 154px;
  height: 58px;
}

.brand img {
  width: 132px;
  filter:
    drop-shadow(0 0 6px rgba(154, 223, 255, 0.62))
    drop-shadow(0 0 14px rgba(53, 185, 255, 0.36));
}

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

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(119, 209, 255, 0.24);
  border-radius: 50%;
  color: var(--text);
  background: rgba(53, 185, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button__icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter:
    invert(82%) sepia(36%) saturate(905%) hue-rotate(170deg) brightness(106%) contrast(101%)
    drop-shadow(0 0 8px rgba(154, 223, 255, 0.56));
}

.icon-button:hover,
.icon-button:focus-visible,
.header.is-search-open [data-search-toggle] {
  transform: translateY(-1px);
  border-color: rgba(154, 223, 255, 0.74);
  background: rgba(53, 185, 255, 0.12);
  box-shadow: 0 0 24px rgba(53, 185, 255, 0.2);
}

.cart-button.is-filled::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 12px rgba(154, 223, 255, 0.92);
}

.site-search {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  top: calc(100% + 10px);
  width: min(410px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(119, 209, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(53, 185, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.header.is-search-open .site-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-search input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(119, 209, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.site-search input:focus {
  border-color: rgba(154, 223, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 185, 255, 0.1);
}

.site-search__submit {
  width: 44px;
  height: 44px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-catalog-stack {
  position: relative;
  isolation: isolate;
  background: #000;
}

.hero {
  position: relative;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px 54px;
  overflow: hidden;
  padding: 72px max(20px, calc((100vw - 1180px) / 2)) 72px;
  background: #000;
}

.hero-catalog-stack .hero {
  position: sticky;
  top: 70px;
  z-index: 1;
  min-height: calc(100svh - 70px);
}

.hero__backdrop {
  position: absolute;
  inset: -12px;
  z-index: -3;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 34%, rgba(0, 0, 0, 0.18) 100%),
    var(--hero-bg-image, url("../images/hero-sakura-pattern.jpg")) center / cover no-repeat;
  opacity: 0.74;
  filter: blur(var(--hero-bg-blur, 2.4px)) saturate(0.82) contrast(0.94);
  transform: scale(1.018);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 42%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
  z-index: -2;
}

.hero__petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.petal-dot {
  position: absolute;
  width: var(--size);
  height: calc(var(--size) * 1.45);
  left: var(--left);
  top: -12%;
  border-radius: 70% 70% 55% 55%;
  background: linear-gradient(180deg, rgba(169, 225, 255, 0.95), rgba(29, 151, 255, 0.8));
  opacity: 0.58;
  filter: blur(0.1px) drop-shadow(0 0 10px rgba(53, 185, 255, 0.55));
  animation: fall var(--duration) linear var(--delay) infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  align-self: center;
  padding-bottom: 12px;
}

.hero__signature {
  width: min(520px, 47vw);
  margin: 0 0 28px -8px;
  filter:
    drop-shadow(0 0 10px rgba(154, 223, 255, 0.78))
    drop-shadow(0 0 28px rgba(53, 185, 255, 0.56));
}

.hero__content h1 {
  margin-bottom: 18px;
  color: #eef8ff;
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: clamp(13px, 1.05vw, 17px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(154, 223, 255, 0.2);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-soft);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: var(--title-hero-size);
  line-height: 1.04;
  font-family: Inter, Manrope, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(63, 183, 255, 0.18);
}

h2 {
  margin-bottom: 14px;
  font-size: var(--title-about-size);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.hero__text {
  max-width: 440px;
  margin-bottom: 30px;
  color: #b9c8d5;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #00101d;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  box-shadow: 0 0 28px rgba(53, 185, 255, 0.34);
}

.button--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.42);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(154, 223, 255, 0.66);
  box-shadow: 0 0 22px rgba(53, 185, 255, 0.18);
}

.button--collection {
  min-width: 250px;
  min-height: 54px;
  padding-inline: 30px;
  border-color: rgba(154, 223, 255, 0.58);
  border-radius: 2px;
  color: #07131d;
  background:
    linear-gradient(135deg, rgba(169, 225, 255, 0.96), rgba(53, 185, 255, 0.88)),
    #35b9ff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 26px rgba(53, 185, 255, 0.34);
  letter-spacing: 0.12em;
}

.button--collection:hover,
.button--collection:focus-visible {
  border-color: rgba(238, 248, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 34px rgba(53, 185, 255, 0.48);
}

.hero__collection {
  display: grid;
  grid-template-columns: 48px auto;
  gap: 14px;
  align-items: center;
  margin-top: 48px;
}

.hero__collection > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(154, 223, 255, 0.95), rgba(53, 185, 255, 0.4) 42%, transparent 43%),
    url("../images/akemi-flower-dark.jpg") center / cover no-repeat;
  border: 1px solid rgba(154, 223, 255, 0.35);
  box-shadow: 0 0 22px rgba(53, 185, 255, 0.42);
}

.hero__collection strong {
  display: block;
  color: #a9dfff;
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__collection small {
  display: block;
  margin-top: 5px;
  color: #8fa4b5;
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 42px;
  border: 1px solid rgba(154, 223, 255, 0.48);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  transform: translateX(-50%);
  animation: cue 1.6s ease-in-out infinite;
}

.section {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  padding: 108px 0;
}

.section--tight {
  padding-top: 86px;
}

.catalog-section {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: calc(100svh - 70px);
  margin: -1px 0 0;
  padding: 108px max(20px, calc((100vw - 1180px) / 2));
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 16%, rgba(53, 185, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(2, 6, 12, 0.96) 52%, #000 100%);
  box-shadow: 0 -34px 90px rgba(0, 0, 0, 0.7);
}

.catalog-section .section__head,
.catalog-section .catalog {
  width: var(--container);
  max-width: var(--container);
  margin-inline: auto;
}

.catalog-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 104px);
  background:
    radial-gradient(circle at 76% 12%, rgba(53, 185, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 12% 50%, rgba(53, 185, 255, 0.1), transparent 26rem),
    #000;
}

.catalog-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/sakura-pattern.jpg") center / 560px auto repeat;
  opacity: 0.055;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.catalog-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0 26px;
}

.catalog-hero h1 {
  margin-bottom: 16px;
  font-size: var(--title-catalog-page-size);
  line-height: 1.04;
}

.catalog-hero p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.catalog-section--page {
  min-height: auto;
  padding-top: 42px;
  padding-bottom: 112px;
  border-top: 0;
  box-shadow: none;
  background: transparent;
}

.product-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(circle at 82% 4%, rgba(53, 185, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(5, 10, 18, 0.4), transparent 34rem),
    #000;
}

.product-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/sakura-pattern.jpg") center / 560px auto repeat;
  opacity: 0.026;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, transparent 82%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, transparent 82%);
}

.product-detail {
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.66fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.product-gallery__main {
  position: sticky;
  top: 92px;
  min-height: min(720px, calc(100vh - 116px));
  border: 1px solid rgba(119, 209, 255, 0.16);
  border-radius: 0;
  overflow: hidden;
  background: #02070d;
  box-shadow: none;
  cursor: zoom-in;
  touch-action: pan-y;
}

.product-gallery__main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(53, 185, 255, 0.035), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.product-gallery__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.product-gallery__thumbs button {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(119, 209, 255, 0.14);
  border-radius: 0;
  overflow: hidden;
  background: #02070d;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-gallery__thumbs button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(53, 185, 255, 0.025), rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.product-gallery__thumbs img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-gallery__thumbs button:hover,
.product-gallery__thumbs button.is-active {
  opacity: 1;
  border-color: rgba(154, 223, 255, 0.58);
  box-shadow: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.image-lightbox__image {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1180px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(119, 209, 255, 0.22);
  background: #000;
  box-shadow: 0 0 70px rgba(53, 185, 255, 0.16);
}

.image-lightbox__close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(119, 209, 255, 0.3);
  border-radius: 50%;
  background: rgba(3, 8, 15, 0.78);
  cursor: pointer;
}

.image-lightbox__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #edf8ff;
  transform-origin: center;
}

.image-lightbox__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-lightbox__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.product-info {
  position: sticky;
  top: 104px;
  min-width: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(119, 209, 255, 0.22);
  background: transparent;
  backdrop-filter: none;
}

.product-info h1 {
  margin: 20px 0 14px;
  color: #f7fbff;
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: var(--title-product-size);
  font-style: normal;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: none;
}

.product-info__price {
  margin-bottom: 24px;
  color: var(--blue-soft);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-info__description {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-info__options {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(119, 209, 255, 0.14);
}

.product-info__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-page .chip {
  min-width: 44px;
  min-height: 38px;
  border-radius: 0;
  border-color: rgba(119, 209, 255, 0.18);
  background: transparent;
}

.product-page .chip.is-active,
.product-page .chip:hover,
.product-page .chip:focus-visible {
  color: #00101d;
  border-color: transparent;
  background: var(--blue-soft);
}

.product-page .swatch {
  border-radius: 50%;
}

.product-page .button {
  width: 100%;
  border-radius: 0;
}

.product-page .button--primary {
  box-shadow: none;
}

.product-page .button--ghost {
  background: transparent;
}

.product-info__status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
}

.product-accordion {
  margin-top: 26px;
  min-width: 0;
  border-top: 1px solid rgba(119, 209, 255, 0.16);
}

.product-accordion details {
  border-bottom: 1px solid rgba(119, 209, 255, 0.16);
}

.product-accordion summary {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 36px 0 0;
  color: #edf8ff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid rgba(154, 223, 255, 0.8);
  border-right: 2px solid rgba(154, 223, 255, 0.8);
  transform: translateY(-35%) rotate(-45deg);
  transition: transform 0.2s ease;
}

.product-accordion details:not([open]) summary::after {
  transform: translateY(-65%) rotate(135deg);
}

.product-accordion__content {
  min-width: 0;
  max-width: 100%;
  padding: 0 0 28px;
  color: var(--muted);
}

.product-accordion__content--text {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.product-accordion__content p {
  margin: 0;
}

.size-table {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.size-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 13px;
}

.size-table th,
.size-table td {
  min-width: 70px;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(119, 209, 255, 0.12);
  text-align: center;
  font-weight: 500;
}

.size-table thead th {
  color: #edf8ff;
  font-size: 14px;
}

.size-table tbody th {
  color: #9fb4c4;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section__head {
  max-width: 680px;
  margin-bottom: 30px;
}

.catalog-section .section__head h2 {
  font-size: var(--title-catalog-size);
}

.contacts__content h2 {
  font-size: var(--title-contacts-size);
}

.section__head p,
.about__content p,
.contacts__content p,
.promo-band p,
.info-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.product-card {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 15, 0.7);
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card.is-hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(154, 223, 255, 0.52);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 30px rgba(53, 185, 255, 0.12);
}

.product-card:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
  border-color: rgba(154, 223, 255, 0.7);
}

.product-card__image {
  position: relative;
  height: 340px;
  border-radius: 6px;
  overflow: hidden;
  background: #02070d;
  touch-action: pan-y;
}

.product-card__image::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 70% 26%, rgba(154, 223, 255, 0.28), transparent 28%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.product-card__image::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.product-card__slider {
  position: absolute;
  inset: 0;
  display: flex;
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 0.42s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.product-card__slide {
  flex: 0 0 100%;
  background: #02070d;
}

.product-card__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__steps {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.product-card__steps span {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.product-card__steps span.is-active {
  background: var(--blue-soft);
  box-shadow: 0 0 10px rgba(154, 223, 255, 0.72);
}

.product-card__body {
  padding: 16px 4px 2px;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.product-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
}

.product-card__price {
  flex: 0 0 auto;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 650;
}

.catalog-empty {
  display: none;
  width: var(--container);
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(4, 8, 15, 0.72);
}

.catalog-empty.is-visible {
  display: block;
}

.option-group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.option-group__label {
  color: #d7ecf8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(154, 223, 255, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip.is-active,
.chip:hover,
.chip:focus-visible {
  color: #00101d;
  border-color: transparent;
  background: var(--blue-soft);
}

.swatch {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch);
}

.swatch.is-active {
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--blue-soft);
}

.promo-band {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 70px max(20px, calc((100vw - 1180px) / 2));
  border-block: 1px solid var(--line);
  background: #000;
}

.promo-band__pattern {
  position: absolute;
  inset: -14px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.42) 100%),
    var(--promo-bg-image, url("../images/sakura-pattern.jpg")) center / cover no-repeat;
  opacity: 0.72;
  filter: blur(var(--promo-bg-blur, 0px)) saturate(0.86) contrast(0.96);
  transform: scale(1.04);
}

.promo-band__content {
  position: relative;
  max-width: 660px;
}

.promo-band h2 {
  max-width: 720px;
  font-size: var(--title-promo-size);
}

.about-delivery-stack {
  position: relative;
  isolation: isolate;
  background: #000;
}

.about {
  position: sticky;
  top: 70px;
  z-index: 1;
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  background:
    radial-gradient(circle at 16% 42%, rgba(53, 185, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 64%, rgba(53, 185, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #000 0%, #020307 100%);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.88)),
    url("../images/hero-sakura-pattern.jpg") center / cover no-repeat;
  opacity: 0.18;
  filter: blur(1.6px) saturate(0.78);
  transform: scale(1.02);
  pointer-events: none;
}

.about::after {
  content: "";
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2));
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 209, 255, 0.24), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.about__visual-stack {
  position: relative;
  width: min(500px, 100%);
  min-height: 570px;
  justify-self: center;
  touch-action: pan-y pinch-zoom;
}

.about__visual-stack > figure {
  will-change: left, right, top, bottom, width, transform, opacity;
  transition:
    left 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    right 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    top 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    bottom 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    width 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    transform 0.68s cubic-bezier(0.2, 0.72, 0.18, 1),
    opacity 0.44s ease,
    box-shadow 0.68s ease,
    filter 0.68s ease;
}

.about__visual-stack.is-swapping > figure {
  filter: saturate(0.92) contrast(1.02);
}

.about__visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 48%, rgba(69, 192, 255, 0.16), transparent 58%),
    rgba(3, 8, 15, 0.86);
  box-shadow: 0 34px 90px rgba(31, 161, 236, 0.12);
}

.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 42%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.about__visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about__visual--mark {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 74%;
  z-index: 2;
}

.about__photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(119, 209, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 10, 18, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.54) 100%);
  pointer-events: none;
}

.about__photo--top {
  right: 0;
  top: 0;
  z-index: 1;
  width: 39%;
  height: 44%;
}

.about__photo--bottom {
  right: 8%;
  bottom: 2%;
  z-index: 3;
  width: 48%;
  height: 46%;
}

.about__visual-stack [data-about-slot] {
  position: absolute;
  overflow: hidden;
}

.about__visual-stack [data-about-slot] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__visual-stack [data-about-slot="main"] {
  left: 6%;
  right: auto;
  top: 8%;
  bottom: auto;
  z-index: 4;
  width: 74%;
  height: auto;
  aspect-ratio: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 36px 96px rgba(31, 161, 236, 0.16);
}

.about__visual-stack [data-about-slot="top"] {
  left: auto;
  right: 0;
  top: 0;
  bottom: auto;
  z-index: 1;
  width: 39%;
  height: auto;
  aspect-ratio: 0.78;
  opacity: 0.82;
  transform: translate3d(0, 0, 0) scale(0.98);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.about__visual-stack [data-about-slot="front"] {
  left: auto;
  right: 8%;
  top: auto;
  bottom: 2%;
  z-index: 5;
  width: 48%;
  height: auto;
  aspect-ratio: 1.04;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.46);
}

.about__content {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.about__content h2 {
  font-size: var(--title-about-size);
}

.about__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about__lead {
  max-width: 620px;
  margin-top: 18px;
  color: #edf9ff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 650;
  line-height: 1.34;
}

.about__story {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin-top: 24px;
}

.about__story p,
.about__statement {
  margin: 0;
  color: rgba(198, 218, 231, 0.76);
  font-size: 14px;
  line-height: 1.72;
}

.about__statement {
  position: relative;
  max-width: 560px;
  margin-top: 24px;
  padding: 18px 0 0 22px;
  border-top: 1px solid rgba(119, 209, 255, 0.18);
}

.about__statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 1px;
  height: calc(100% - 19px);
  background: linear-gradient(180deg, rgba(133, 221, 255, 0.62), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.about__grid div,
.info-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.about__grid div {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
}

.about__grid div::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133, 221, 255, 0.42), transparent);
}

.about__grid strong {
  display: block;
  margin-bottom: 20px;
  color: var(--blue-soft);
  font-size: 12px;
}

.about__grid span {
  display: block;
  color: #e9f8ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.about__grid small {
  display: block;
  margin-top: 10px;
  color: rgba(181, 205, 221, 0.66);
  font-size: 11px;
  line-height: 1.45;
}

.section--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 3;
  width: 100%;
  min-height: calc(100svh - 70px);
  margin-top: -1px;
  display: grid;
  align-content: center;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.86) 42%, rgba(1, 24, 40, 0.92) 100%),
    radial-gradient(circle at 82% 10%, rgba(53, 185, 255, 0.22), transparent 28rem),
    #000;
  box-shadow: 0 -34px 90px rgba(0, 0, 0, 0.7);
}

#delivery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 42%, rgba(76, 194, 255, 0.12), transparent 25rem),
    radial-gradient(circle at 50% 58%, rgba(76, 194, 255, 0.06), transparent 30rem);
  opacity: 0.86;
  pointer-events: none;
}

.section--dark .section__head {
  width: var(--container);
  margin-inline: auto;
  margin-bottom: 26px;
  text-align: center;
}

#delivery .section__head h2 {
  font-size: var(--title-delivery-size);
}

.delivery-lead {
  max-width: 610px;
  margin: 14px auto 0;
  color: rgba(195, 217, 232, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.info-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid article {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 30px 30px 28px;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, 0.92), rgba(2, 8, 15, 0.96)),
    radial-gradient(circle at 86% 18%, rgba(72, 191, 255, 0.12), transparent 11rem);
  box-shadow:
    inset 0 1px 0 rgba(170, 230, 255, 0.05),
    0 22px 54px rgba(0, 0, 0, 0.26);
}

#delivery .info-grid article::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133, 221, 255, 0.56), transparent);
  opacity: 0.8;
}

#delivery .info-grid article::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(131, 220, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 204, 255, 0.08), transparent 64%);
  opacity: 0.9;
  pointer-events: none;
}

.info-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(71, 188, 255, 0.04);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(73, 195, 255, 0.1);
}

#delivery .info-grid h3 {
  margin-bottom: 14px;
  color: #f4fbff;
  font-size: 17px;
  line-height: 1.25;
}

#delivery .info-grid p {
  max-width: 320px;
}

html.is-touch-device .about,
html.is-touch-device .contacts {
  grid-template-columns: 1fr;
}

html.is-touch-device .about {
  position: relative;
  top: auto;
  min-height: auto;
}

html.is-touch-device .section--dark {
  min-height: auto;
  display: block;
  padding-inline: 14px;
}

html.is-touch-device .delivery-lead {
  display: none;
}

html.is-touch-device .section--dark .section__head {
  margin-bottom: 28px;
  text-align: left;
}

html.is-touch-device #delivery .info-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 74%);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 14px;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html.is-touch-device #delivery .info-grid::-webkit-scrollbar {
  display: none;
}

html.is-touch-device .about__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

html.is-touch-device .about__grid div {
  min-height: 78px;
  padding: 10px;
}

html.is-touch-device .about__grid strong {
  margin-bottom: 12px;
  font-size: 10px;
}

html.is-touch-device .about__grid span {
  font-size: 11px;
  line-height: 1.28;
}

html.is-touch-device #delivery .info-grid article {
  min-height: 148px;
  padding: 18px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-shadow: none;
}

html.is-touch-device #delivery .info-grid span {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  font-size: 11px;
  box-shadow: none;
}

html.is-touch-device #delivery .info-grid h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.22;
}

@media (hover: none), (pointer: coarse), (any-pointer: coarse), (max-device-width: 1180px) {
  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .about {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .section--dark {
    min-height: auto;
    display: block;
    padding-inline: 14px;
  }

  .delivery-lead {
    display: none;
  }

  .section--dark .section__head {
    margin-bottom: 28px;
    text-align: left;
  }

  #delivery .info-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 74%);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 14px;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #delivery .info-grid::-webkit-scrollbar {
    display: none;
  }

  .about__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .about__grid div {
    min-height: 78px;
    padding: 10px;
  }

  .about__grid strong {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .about__grid span {
    font-size: 11px;
    line-height: 1.28;
  }

  #delivery .info-grid article {
    min-height: 148px;
    padding: 18px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: none;
  }

  #delivery .info-grid span {
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    font-size: 11px;
    box-shadow: none;
  }

  #delivery .info-grid h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.22;
  }
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: end;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(119, 209, 255, 0.25);
  border-radius: 50%;
  color: #dff4ff;
  background: rgba(53, 185, 255, 0.07);
  box-shadow: inset 0 0 18px rgba(53, 185, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(154, 223, 255, 0.74);
  background: rgba(154, 223, 255, 0.13);
  box-shadow: 0 0 26px rgba(53, 185, 255, 0.2), inset 0 0 18px rgba(53, 185, 255, 0.1);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.subscribe {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.1), rgba(53, 185, 255, 0.02)),
    var(--panel-strong);
}

.subscribe label {
  display: block;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.18;
  text-transform: uppercase;
}

.subscribe div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.subscribe input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.subscribe input:focus {
  border-color: rgba(154, 223, 255, 0.7);
}

.checkout-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 104px);
  background:
    radial-gradient(circle at 78% 8%, rgba(53, 185, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 8% 62%, rgba(53, 185, 255, 0.1), transparent 26rem),
    #000;
}

.checkout-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/sakura-pattern.jpg") center / 520px auto repeat;
  opacity: 0.06;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
}

.checkout-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0 34px;
}

.checkout-hero h1 {
  margin-bottom: 14px;
  font-size: var(--title-checkout-size);
  line-height: 1.04;
}

.checkout-hero p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.checkout-layout {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 20px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-panel,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.07), rgba(53, 185, 255, 0.015)),
    rgba(3, 7, 14, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.checkout-panel {
  padding: 24px;
}

.checkout-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.checkout-panel__head span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.checkout-panel__head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
}

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

.checkout-fields .checkout-field--wide {
  grid-column: 1 / -1;
}

.checkout-fields label,
.checkout-comment {
  display: grid;
  gap: 8px;
  color: #d7ecf8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-fields input,
.checkout-comment textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(119, 209, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-fields input {
  height: 50px;
  padding: 0 14px;
}

.checkout-comment textarea {
  min-height: 116px;
  padding: 14px;
  resize: vertical;
}

.checkout-fields input:focus,
.checkout-comment textarea:focus {
  border-color: rgba(154, 223, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(53, 185, 255, 0.1);
}

.checkout-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

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

.checkout-choice label {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 16px 16px 44px;
  border: 1px solid rgba(119, 209, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-choice label:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 223, 255, 0.5);
}

.checkout-choice label:has(input:checked) {
  border-color: rgba(154, 223, 255, 0.76);
  background: rgba(53, 185, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(154, 223, 255, 0.16), 0 0 28px rgba(53, 185, 255, 0.1);
}

.checkout-choice input {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.checkout-choice span {
  color: #f4fbff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.checkout-choice small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-comment {
  margin-top: 2px;
}

.checkout-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-agree input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.checkout-submit {
  width: fit-content;
  min-width: 230px;
}

.checkout-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--blue-soft);
  font-weight: 800;
}

.checkout-summary {
  position: sticky;
  top: 94px;
  overflow: hidden;
}

.checkout-summary__image {
  min-height: 360px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.04), rgba(0, 0, 0, 0.78)),
    var(--summary-bg, url("../images/akemi-flower-dark.jpg")) center / cover no-repeat;
}

.checkout-summary__content {
  padding: 24px;
}

.checkout-summary__content h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 32px);
}

.checkout-summary__content p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.checkout-summary__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.checkout-summary__meta div {
  padding: 14px;
  border: 1px solid rgba(119, 209, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.checkout-summary__meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-summary__meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.checkout-total {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(119, 209, 255, 0.18);
}

.checkout-total div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.checkout-total div:last-child {
  padding-top: 12px;
  color: #f4fbff;
  font-size: 18px;
}

.checkout-total strong {
  color: var(--blue-soft);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 26%, rgba(53, 185, 255, 0.16), transparent 30rem),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.product-modal__dialog {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 223, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.08), rgba(53, 185, 255, 0.02)),
    rgba(2, 5, 12, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 54px rgba(53, 185, 255, 0.16);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}

.product-modal.is-open .product-modal__dialog {
  transform: translateY(0) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(154, 223, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.54);
  cursor: pointer;
}

.product-modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1px;
  background: var(--text);
}

.product-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.product-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.product-modal__image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #02070d;
}

.product-modal__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 64% 24%, rgba(154, 223, 255, 0.24), transparent 30%),
    linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.product-modal__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-modal__content {
  min-width: 0;
  align-self: center;
  padding: 52px 42px 38px;
}

.product-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.product-modal__top h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.product-modal__top span {
  flex: 0 0 auto;
  margin-top: 8px;
  color: var(--blue-soft);
  font-size: 16px;
  font-weight: 700;
}

.product-modal__text {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-modal__options {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

.product-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 82px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer span {
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes introPulse {
  0% { transform: scale(0.86) rotate(-12deg); }
  72% { transform: scale(1.04) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes introFlowerAlive {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.74) rotate(-1.5deg);
    filter:
      blur(8px)
      drop-shadow(0 0 6px rgba(154, 223, 255, 0.16));
  }
  68% {
    opacity: 1;
    transform: translateY(0) scale(1.025) rotate(0.35deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes introFlowerFade {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introFlowerBreathe {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-2px) scale(1.018); }
}

@keyframes introFlowerGlow {
  from { opacity: 0.42; transform: scale(0.94); }
  to { opacity: 0.72; transform: scale(1.02); }
}

@keyframes introSparkle {
  from { opacity: 0.26; transform: rotate(-1deg) scale(0.98); }
  to { opacity: 0.5; transform: rotate(1deg) scale(1.02); }
}

@keyframes petalOpen {
  0% {
    opacity: 0;
    transform: translate(-50%, -88%) rotate(var(--angle)) scale(0.08);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -88%) rotate(var(--angle)) scale(1);
  }
}

@keyframes centerPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes logoReveal {
  from {
    opacity: 0.72;
    transform: translateY(2px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bloomExit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes logoExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(0) scale(0.96);
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% { opacity: 0.58; }
  100% {
    transform: translate3d(var(--drift), 116vh, 0) rotate(420deg);
    opacity: 0;
  }
}

@keyframes floatFlower {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -16px, 0) rotate(2deg); }
}

@keyframes flowerSpin {
  to { transform: rotate(360deg); }
}

@keyframes cue {
  0% { transform: translate(-50%, 0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(-50%, 18px); opacity: 0; }
}

@media (max-height: 680px), (max-width: 420px) {
  .intro {
    gap: clamp(8px, 2vh, 18px);
    padding-block: clamp(24px, 6vh, 48px);
  }

  .intro__bloom {
    width: min(72vw, 286px);
  }

  .intro__logo {
    width: min(250px, 62vw);
    margin-top: -22px;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-catalog-stack .hero {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .catalog-section {
    min-height: auto;
    padding: 86px max(20px, calc((100vw - 1180px) / 2));
  }

  .hero__signature {
    width: min(500px, 72vw);
  }

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

  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .about {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .section--dark {
    min-height: auto;
    display: block;
  }

  .delivery-lead {
    display: none;
  }

  .section--dark .section__head {
    margin-bottom: 28px;
    text-align: left;
  }

  #delivery .info-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 74%);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 14px;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #delivery .info-grid::-webkit-scrollbar {
    display: none;
  }

  .about__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .about__grid div {
    min-height: 78px;
    padding: 10px;
  }

  .about__grid strong {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .about__grid span {
    font-size: 11px;
    line-height: 1.28;
  }

  #delivery .info-grid article {
    min-height: 148px;
    padding: 18px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #delivery .info-grid span {
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    font-size: 11px;
  }

  #delivery .info-grid h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.22;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-info,
  .product-gallery__main {
    position: relative;
    top: auto;
  }

  .checkout-summary {
    position: relative;
    top: auto;
    order: -1;
  }

  .checkout-summary__image {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .topline {
    height: 30px;
    line-height: 30px;
    font-size: 11px;
  }

  .header {
    height: 62px;
    padding-inline: 14px;
  }

  .brand {
    width: 96px;
    height: 52px;
  }

  .brand img {
    width: 88px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .site-search {
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    width: auto;
  }

  .hero {
    padding: 54px 14px 54px;
  }

  h1 {
    font-size: min(var(--title-hero-size), 34px);
  }

  h2 {
    font-size: min(var(--title-about-size), 28px);
  }

  .hero__text {
    font-size: 13px;
    line-height: 1.65;
  }

  .hero__actions,
  .subscribe div {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero__content h1 {
    font-size: clamp(12px, 4vw, 16px);
    letter-spacing: 0.14em;
  }

  .hero__signature {
    width: min(360px, 90vw);
    margin-bottom: 22px;
  }

  .button--collection {
    min-width: 0;
  }

  .hero__collection {
    margin-top: 34px;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .section {
    padding: 72px 0;
  }

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

  #delivery .info-grid {
    grid-auto-columns: minmax(220px, 74%);
    gap: 14px;
  }

  .section__head p,
  .about__content p,
  .contacts__content p,
  .promo-band p,
  .info-grid p {
    font-size: 13px;
    line-height: 1.58;
  }

  .product-card {
    padding: 6px;
  }

  .product-card__image {
    height: auto;
    aspect-ratio: 3 / 4.35;
    border-radius: 5px;
  }

  .product-card__slide {
    background: #02070d;
  }

  .product-card__slide img {
    object-fit: contain;
  }

  .product-card__body {
    padding: 10px 2px 2px;
  }

  .product-card__top {
    display: grid;
    gap: 5px;
  }

  .product-card h3 {
    font-size: 13px;
    line-height: 1.18;
  }

  .product-card__price {
    font-size: 12px;
  }

  .promo-band {
    min-height: 360px;
    padding: 56px 14px;
  }

  .section--dark {
    padding-inline: 14px;
  }

  .info-grid article {
    min-height: 148px;
  }

  .subscribe {
    padding: 18px;
  }

  .subscribe label {
    font-size: 16px;
  }

  .product-modal {
    padding: 12px;
    align-items: end;
  }

  .product-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .product-modal__image {
    min-height: 300px;
  }

  .product-modal__content {
    padding: 26px 18px 18px;
  }

  .product-modal__top {
    display: grid;
    gap: 6px;
  }

  .product-modal__top h2 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .product-modal__top span {
    margin-top: 0;
  }

  .product-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-page {
    min-height: calc(100vh - 92px);
  }

  .catalog-page {
    min-height: calc(100vh - 92px);
  }

  .catalog-hero {
    padding: 58px 0 20px;
  }

  .catalog-hero h1 {
    max-width: 100%;
    font-size: min(var(--title-catalog-page-size), 36px);
    line-height: 1.06;
    overflow: hidden;
  }

  .catalog-hero p:last-child {
    font-size: 13px;
  }

  .catalog-section--page {
    padding-top: 28px;
    padding-bottom: 76px;
  }

  .product-detail {
    width: min(100vw - 28px, 1180px);
    overflow: hidden;
    padding: 48px 0 48px;
    gap: 22px;
  }

  .product-gallery__main {
    min-height: 360px;
  }

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

  .product-gallery__thumbs button {
    min-height: 78px;
  }

  .product-info {
    min-width: 0;
    padding: 18px 0 0;
  }

  .product-info h1 {
    font-size: min(var(--title-product-size), 32px);
  }

  .product-info__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-accordion summary {
    min-height: 58px;
    font-size: 13px;
  }

  .size-table table {
    min-width: 500px;
  }

  .checkout-hero {
    padding: 58px 0 24px;
  }

  .checkout-hero h1 {
    font-size: min(var(--title-checkout-size), 36px);
  }

  .checkout-hero p:last-child {
    font-size: 13px;
  }

  .checkout-layout {
    gap: 14px;
    padding-bottom: 72px;
  }

  .checkout-panel,
  .checkout-summary__content {
    padding: 18px;
  }

  .checkout-fields,
  .checkout-fields--address,
  .checkout-choice,
  .checkout-choice--payment,
  .checkout-summary__meta {
    grid-template-columns: 1fr;
  }

  .checkout-choice label {
    min-height: 94px;
  }

  .checkout-submit {
    width: 100%;
  }

  .checkout-summary__image {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .product-card__image {
    height: auto;
    aspect-ratio: 3 / 4.45;
  }

  .catalog {
    gap: 10px;
  }

  .catalog-hero h1 {
    font-size: min(var(--title-catalog-page-size), 34px);
  }

  .social-links {
    gap: 10px;
  }

  .checkout-choice label {
    padding-right: 14px;
  }
}

@media (hover: none), (pointer: coarse), (any-pointer: coarse), (max-width: 760px) {
  .about {
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 58px;
  }

  .about::after {
    display: none;
  }

  .about__visual-stack {
    width: min(100%, 440px);
    min-height: 360px;
    margin-inline: auto;
  }

  .about__visual--mark {
    left: 50%;
    top: 0;
    width: min(76vw, 320px);
    transform: translateX(-50%);
  }

  .about__photo--top {
    right: 3%;
    top: 22px;
    width: 30%;
    height: 44%;
  }

  .about__photo--bottom {
    left: 5%;
    right: auto;
    bottom: 10px;
    width: 42%;
    height: 42%;
  }

  .about__visual-stack [data-about-slot="main"] {
    left: 50%;
    right: auto;
    top: 0;
    bottom: auto;
    width: min(76vw, 320px);
    aspect-ratio: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  .about__visual-stack [data-about-slot="top"] {
    left: auto;
    right: 3%;
    top: 22px;
    bottom: auto;
    width: 30%;
    aspect-ratio: 0.72;
    opacity: 0.84;
    transform: translate3d(0, 0, 0) scale(0.98);
  }

  .about__visual-stack [data-about-slot="front"] {
    left: 5%;
    right: auto;
    top: auto;
    bottom: 10px;
    width: 42%;
    aspect-ratio: 1.06;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .about__content {
    max-width: none;
  }

  .about__eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .about__lead {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.32;
  }

  .about__story {
    gap: 10px;
    margin-top: 16px;
  }

  .about__story p,
  .about__statement {
    font-size: 12px;
    line-height: 1.6;
  }

  .about__statement {
    margin-top: 16px;
    padding: 14px 0 0 16px;
  }

  .about__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .about__grid div {
    min-height: 110px;
    padding: 12px 10px;
  }

  .about__grid strong {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .about__grid span {
    font-size: 11px;
    line-height: 1.22;
  }

  .about__grid small {
    display: none;
  }

  html.is-touch-device #delivery .info-grid,
  #delivery .info-grid {
    width: calc(100vw - 40px);
    grid-auto-columns: clamp(260px, calc(100vw - 92px), 430px);
    gap: 14px;
    scroll-padding-inline: 0 18px;
  }

  html.is-touch-device #delivery .info-grid article,
  #delivery .info-grid article {
    opacity: 1;
    transform: none;
    min-height: clamp(218px, 38vh, 270px);
    padding: 24px 22px;
  }

  html.is-touch-device #delivery .info-grid span,
  #delivery .info-grid span {
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
  }

  html.is-touch-device #delivery .info-grid h3,
  #delivery .info-grid h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  html.is-touch-device #delivery .info-grid p,
  #delivery .info-grid p {
    max-width: 250px;
    font-size: 14px;
    line-height: 1.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .intro {
    display: none;
  }

  body {
    overflow: auto;
  }
}

/* Legal footer, documents and payment-result pages */
.footer.footer--legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-content: stretch;
  gap: 18px;
  min-height: 132px;
  padding: 24px 0 28px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.footer__top span {
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer__top a,
.footer__legal-links a,
.checkout-agree a,
.legal-document a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__top a:hover,
.footer__legal-links a:hover,
.checkout-agree a:hover,
.legal-document a:hover {
  color: #fff;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(119, 209, 255, 0.12);
  font-size: 12px;
  line-height: 1.4;
}

.checkout-agree--secondary {
  margin-top: 8px;
}

.checkout-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.checkout-status[data-status-type="error"] {
  color: #ff9da7;
}

.checkout-status[data-status-type="success"] {
  color: #a9f6cb;
}

.legal-page,
.payment-result-page {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 76px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(53, 185, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 7% 68%, rgba(53, 185, 255, 0.08), transparent 25rem),
    #000;
}

.legal-page::before,
.payment-result-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../images/sakura-pattern.jpg") center / 520px auto repeat;
  opacity: 0.035;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.legal-container,
.payment-result {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

.legal-hero p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal-notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 193, 92, 0.5);
  border-radius: var(--radius);
  color: #ffe2a6;
  background: rgba(255, 174, 46, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.legal-document {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.065), rgba(53, 185, 255, 0.012)),
    rgba(3, 7, 14, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.legal-document h2 {
  margin: 34px 0 12px;
  color: #f4fbff;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: #e9f8ff;
  font-size: 17px;
}

.legal-document p,
.legal-document li,
.legal-document dd,
.legal-document dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.legal-document p + p {
  margin-top: 12px;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document dl {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid rgba(119, 209, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-document dt,
.legal-document dd {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(119, 209, 255, 0.12);
}

.legal-document dt {
  color: #dff5ff;
  font-weight: 800;
  background: rgba(53, 185, 255, 0.04);
}

.legal-document dt:last-of-type,
.legal-document dd:last-of-type {
  border-bottom: 0;
}

.legal-placeholder {
  color: #ffe2a6 !important;
  font-weight: 800;
}

.legal-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(119, 209, 255, 0.14);
  color: var(--muted);
  font-size: 12px;
}

.payment-result {
  max-width: 720px;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.08), rgba(53, 185, 255, 0.018)),
    rgba(3, 7, 14, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.payment-result__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border: 1px solid rgba(154, 223, 255, 0.55);
  border-radius: 50%;
  color: var(--blue-soft);
  font-size: 30px;
  box-shadow: 0 0 42px rgba(53, 185, 255, 0.16);
}

.payment-result[data-state="paid"] .payment-result__icon {
  color: #a9f6cb;
  border-color: rgba(169, 246, 203, 0.6);
}

.payment-result[data-state="failed"] .payment-result__icon,
.payment-result[data-state="expired"] .payment-result__icon,
.payment-result[data-state="error"] .payment-result__icon {
  color: #ff9da7;
  border-color: rgba(255, 157, 167, 0.58);
}

.payment-result h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
}

.payment-result__text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.payment-result__details {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(119, 209, 255, 0.15);
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.payment-result__details div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.payment-result__details strong {
  color: #f2fbff;
  text-align: right;
}

.payment-result__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.payment-result__technical {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .footer.footer--legal {
    padding-top: 22px;
  }

  .footer__top {
    align-items: flex-start;
  }

  .footer__legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  .legal-page,
  .payment-result-page {
    padding: 52px 0 72px;
  }

  .legal-document dl {
    grid-template-columns: 1fr;
  }

  .legal-document dt,
  .legal-document dd {
    border-bottom: 1px solid rgba(119, 209, 255, 0.12);
  }

  .legal-document dd:last-of-type {
    border-bottom: 0;
  }

  .payment-result__details div {
    display: grid;
    gap: 4px;
  }

  .payment-result__details strong {
    text-align: left;
  }
}

/* Commerce: delivery widgets */
.checkout-choice--delivery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-choice label.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.checkout-choice label.is-disabled:hover {
  transform: none;
  border-color: rgba(119, 209, 255, 0.22);
}

.checkout-delivery-message,
.checkout-delivery-selected {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-delivery-message[data-status-type="pending"] {
  color: var(--blue-soft);
}

.checkout-delivery-message[data-status-type="success"],
.checkout-delivery-selected {
  color: #a9f6cb;
}

.checkout-delivery-message[data-status-type="error"] {
  color: #ff9da7;
}

.checkout-delivery-selected {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 246, 203, 0.25);
  border-radius: var(--radius);
  background: rgba(169, 246, 203, 0.055);
}

.checkout-delivery-widget {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(119, 209, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.checkout-delivery-widget[hidden] {
  display: none;
}

.checkout-delivery-widget__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.checkout-delivery-widget__head div {
  display: grid;
  gap: 5px;
}

.checkout-delivery-widget__head strong {
  color: #f4fbff;
  font-size: 15px;
}

.checkout-delivery-widget__head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}


.checkout-cdek-city-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.checkout-cdek-city-search label {
  display: grid;
  gap: 8px;
  color: #d7ecf8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-cdek-city-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(119, 209, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: #101923;
  outline: none;
}

.checkout-cdek-city-search input:focus {
  border-color: rgba(119, 209, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 185, 255, 0.09);
}

.checkout-cdek-city-search .button {
  min-height: 50px;
  white-space: nowrap;
}

.checkout-cdek-pvz-area {
  margin-top: 16px;
}

.checkout-cdek-pvz-area[hidden] {
  display: none;
}

.checkout-cdek-step-title {
  margin: 0 0 10px;
  color: #f4fbff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-cdek-map {
  position: relative;
}

.checkout-cdek-map.is-loading::after {
  content: "Загружаем карту и ПВЗ СДЭК…";
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #dff4ff;
  font-weight: 800;
  text-align: center;
  background: rgba(5, 13, 20, 0.76);
  backdrop-filter: blur(3px);
}

.checkout-cdek-map .leaflet-container {
  font-family: inherit;
}

.checkout-cdek-map .leaflet-popup-content-wrapper,
.checkout-cdek-map .leaflet-popup-tip {
  color: #eaf8ff;
  background: #0d1822;
}

.checkout-cdek-map .leaflet-popup-content {
  line-height: 1.45;
}

.checkout-cdek-map .leaflet-popup-content span {
  color: #a8bfcd;
}

.checkout-cdek-map .leaflet-control-attribution {
  font-size: 9px;
}

.checkout-cdek-map {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(119, 209, 255, 0.16);
  border-radius: calc(var(--radius) - 3px);
  background: rgba(255, 255, 255, 0.035);
}

.checkout-post-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.checkout-post-search label,
.checkout-post-select {
  display: grid;
  gap: 8px;
  color: #d7ecf8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-post-search input,
.checkout-post-select select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(119, 209, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: #101923;
  outline: none;
}

.checkout-post-search .button {
  min-height: 50px;
  white-space: nowrap;
}

.checkout-post-select {
  margin-top: 12px;
}

.checkout-fields input[readonly] {
  color: #dff4ff;
  background: rgba(53, 185, 255, 0.04);
  cursor: default;
}

.checkout-status[data-status-type="pending"] {
  color: var(--blue-soft);
}

@media (max-width: 760px) {
  .checkout-choice--delivery,
  .checkout-post-search,
  .checkout-cdek-city-search {
    grid-template-columns: 1fr;
  }

  .checkout-cdek-map {
    min-height: 430px;
  }

  .checkout-post-search .button,
  .checkout-cdek-city-search .button {
    width: 100%;
  }
}


.subscribe__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.subscribe__consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.subscribe__consent a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-cdek-map__placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8ba8b9;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(rgba(66, 167, 219, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 167, 219, .055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.checkout-cdek-map.leaflet-container .checkout-cdek-map__placeholder { display: none; }

/* CDEK checkout v16: suggestions + MapLibre/OpenFreeMap */
.checkout-cdek-city-suggestions {
  display: grid;
  gap: 8px;
  max-height: 250px;
  margin: 2px 0 10px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(119, 209, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 15, 22, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.checkout-cdek-city-suggestions[hidden] {
  display: none;
}

.checkout-cdek-city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 5px);
  color: #eefaff;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.checkout-cdek-city-option:hover,
.checkout-cdek-city-option:focus-visible {
  border-color: rgba(119, 209, 255, 0.38);
  background: rgba(53, 185, 255, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.checkout-cdek-city-option strong {
  font-size: 14px;
}

.checkout-cdek-city-option span {
  color: #8ba8b9;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.checkout-cdek-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(119, 209, 255, 0.2);
  border-radius: calc(var(--radius) - 2px);
  background: #111820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.checkout-cdek-map {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 0;
  background: #111820;
}

.checkout-cdek-map .maplibregl-canvas {
  outline: none;
}

.checkout-cdek-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(13, 24, 34, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.checkout-cdek-map .maplibregl-ctrl-group button {
  background-color: transparent;
}

.checkout-cdek-map .maplibregl-ctrl-group button + button {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.checkout-cdek-map .maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.7);
}

.checkout-cdek-map .maplibregl-ctrl-attrib {
  color: #879cab;
  background: rgba(8, 14, 20, 0.82);
}

.checkout-cdek-map .maplibregl-popup-content {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(119, 209, 255, 0.24);
  border-radius: 14px;
  color: #ebf9ff;
  background: rgba(10, 20, 29, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.checkout-cdek-map .maplibregl-popup-tip {
  border-top-color: rgba(10, 20, 29, 0.98);
  border-bottom-color: rgba(10, 20, 29, 0.98);
}

.checkout-cdek-popup {
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 13px 14px;
}

.checkout-cdek-popup strong {
  color: #78d8ff;
  font-size: 13px;
  letter-spacing: .06em;
}

.checkout-cdek-popup p {
  margin: 0;
  color: #eefaff;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-cdek-popup small {
  color: #9bb2c0;
  font-size: 11px;
  line-height: 1.4;
}

.checkout-cdek-popup b {
  margin-top: 2px;
  color: #a9f6cb;
  font-size: 11px;
}

.checkout-cdek-marker {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 8px;
  color: #06131c;
  background: #7bddff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(53, 185, 255, 0.12);
  cursor: pointer;
  transform: rotate(-45deg);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.checkout-cdek-marker span {
  font-size: 12px;
  font-weight: 950;
  transform: rotate(45deg);
}

.checkout-cdek-marker:hover,
.checkout-cdek-marker:focus-visible,
.checkout-cdek-marker.is-active {
  background: #a9f6cb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 0 0 6px rgba(169, 246, 203, 0.18);
  transform: rotate(-45deg) scale(1.13);
  outline: none;
}

.checkout-cdek-map.is-loading::after {
  z-index: 20;
  border-radius: inherit;
  background: rgba(6, 13, 19, 0.72);
  backdrop-filter: blur(5px);
}

@media (max-width: 760px) {
  .checkout-cdek-map {
    min-height: 390px;
  }

  .checkout-cdek-city-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .checkout-cdek-city-option span {
    text-align: left;
  }
}


/* CDEK checkout v17: official CDEK Widget 3.11.1 + Yandex Maps */
.checkout-cdek-official-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(119, 209, 255, 0.18);
  border-radius: calc(var(--radius) - 2px);
  background: #f4f7f9;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.checkout-cdek-official {
  width: 100%;
  height: 620px;
  background: #f4f7f9;
}

.checkout-cdek-official .checkout-cdek-map__placeholder {
  height: 100%;
  min-height: 0;
  color: #55636c;
  background: #f4f7f9;
}

@media (max-width: 760px) {
  .checkout-cdek-official {
    height: 600px;
  }
}


/* CDEK checkout v18: explicit CDEK city search + official Yandex/CDEK map */
.checkout-cdek-city-search--official {
  margin: 2px 0 8px;
}

.checkout-cdek-city-search--official + .checkout-cdek-city-suggestions {
  margin-bottom: 10px;
}

.checkout-cdek-official-shell {
  margin-top: 14px;
}

.checkout-cdek-official {
  min-height: 620px;
}

@media (max-width: 760px) {
  .checkout-cdek-official {
    height: 560px;
    min-height: 560px;
  }
}

/* CDEK checkout v19: CDEK API + direct Yandex Maps JS API 3 */
.checkout-cdek-pvz-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 12px;
}

.checkout-cdek-pvz-tools[hidden],
.checkout-cdek-browser[hidden] {
  display: none;
}

.checkout-cdek-pvz-filter {
  display: grid;
  gap: 7px;
  color: #b8cad5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-cdek-pvz-filter input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(119, 209, 255, .22);
  border-radius: 10px;
  color: #eefaff;
  background: rgba(255, 255, 255, .045);
  outline: none;
}

.checkout-cdek-pvz-filter input:focus {
  border-color: rgba(119, 209, 255, .62);
  box-shadow: 0 0 0 3px rgba(53, 185, 255, .08);
}

.checkout-cdek-pvz-types {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(119, 209, 255, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}

.checkout-cdek-pvz-types button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #8fa8b7;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  background: transparent;
  cursor: pointer;
}

.checkout-cdek-pvz-types button:hover,
.checkout-cdek-pvz-types button:focus-visible,
.checkout-cdek-pvz-types button.is-active {
  color: #06131c;
  background: #79d8ff;
  outline: none;
}

.checkout-cdek-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(119, 209, 255, .2);
  border-radius: calc(var(--radius) - 2px);
  background: #0a1219;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.checkout-cdek-map-shell {
  min-width: 0;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background: #eef2f5;
}

.checkout-cdek-yandex-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #eef2f5;
}

.checkout-cdek-yandex-map .checkout-cdek-map__placeholder {
  height: 100%;
  min-height: 520px;
  color: #536672;
  background: linear-gradient(135deg, #f7f9fb, #eaf0f4);
}

.checkout-cdek-map__placeholder--error {
  color: #7f363e !important;
  background: #fff0f1 !important;
}

.checkout-cdek-map__placeholder small {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-cdek-pvz-panel {
  display: flex;
  min-width: 0;
  max-height: 520px;
  flex-direction: column;
  border-left: 1px solid rgba(119, 209, 255, .16);
  background: linear-gradient(180deg, rgba(8, 18, 26, .98), rgba(4, 11, 17, .98));
}

.checkout-cdek-pvz-panel__head {
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(119, 209, 255, .14);
}

.checkout-cdek-pvz-panel__head strong {
  color: #eefaff;
  font-size: 13px;
  letter-spacing: .03em;
}

.checkout-cdek-pvz-panel__head small {
  color: #819aa9;
  font-size: 10px;
  line-height: 1.4;
}

.checkout-cdek-pvz-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-cdek-pvz-card {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(119, 209, 255, .14);
  border-radius: 11px;
  color: #dcecf4;
  text-align: left;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.checkout-cdek-pvz-card:hover,
.checkout-cdek-pvz-card:focus-visible,
.checkout-cdek-pvz-card.is-active {
  border-color: rgba(119, 209, 255, .62);
  background: rgba(53, 185, 255, .1);
  transform: translateY(-1px);
  outline: none;
}

.checkout-cdek-pvz-card.is-active {
  box-shadow: inset 3px 0 0 #79d8ff;
}

.checkout-cdek-pvz-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-cdek-pvz-card__top b {
  color: #79d8ff;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-cdek-pvz-card__top em {
  color: #9feac2;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-cdek-pvz-card > strong {
  color: #f1f9fd;
  font-size: 12px;
  line-height: 1.42;
}

.checkout-cdek-pvz-card > small {
  color: #8ba3b1;
  font-size: 10px;
  line-height: 1.4;
}

.checkout-cdek-pvz-empty {
  padding: 24px 14px;
  color: #869eac;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-cdek-yandex-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  color: #06131c;
  background: #64d0ff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .35), 0 0 0 3px rgba(53, 185, 255, .16);
  cursor: pointer;
  transform: translate(-50%, -100%) rotate(-45deg);
  transform-origin: 50% 100%;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}

.checkout-cdek-yandex-marker span {
  font-size: 11px;
  font-weight: 950;
  transform: rotate(45deg);
}

.checkout-cdek-yandex-marker:hover,
.checkout-cdek-yandex-marker:focus-visible,
.checkout-cdek-yandex-marker.is-active {
  z-index: 5;
  background: #9feac2;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .42), 0 0 0 6px rgba(159, 234, 194, .2);
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.12);
  outline: none;
}

@media (max-width: 980px) {
  .checkout-cdek-browser {
    grid-template-columns: 1fr;
  }
  .checkout-cdek-map-shell,
  .checkout-cdek-yandex-map,
  .checkout-cdek-yandex-map .checkout-cdek-map__placeholder {
    min-height: 430px;
  }
  .checkout-cdek-pvz-panel {
    max-height: 360px;
    border-top: 1px solid rgba(119, 209, 255, .16);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .checkout-cdek-pvz-tools {
    grid-template-columns: 1fr;
  }
  .checkout-cdek-pvz-types {
    width: 100%;
  }
  .checkout-cdek-pvz-types button {
    flex: 1;
  }
  .checkout-cdek-map-shell,
  .checkout-cdek-yandex-map,
  .checkout-cdek-yandex-map .checkout-cdek-map__placeholder {
    min-height: 360px;
  }
  .checkout-cdek-pvz-panel {
    max-height: 420px;
  }
}
