/* Original component styles, scoped to the transferred modules. */
@scope (.imported) {
/* ==========================================================================
 * НАВИГАЦИЯ ПО СТИЛЯМ
 * Ищите названия блоков: ПАЛИТРА, ОСНОВА, КНОПКИ, ШАПКА, ПЕРВЫЙ ЭКРАН,
 * КАТАЛОГ, КАК МЫ РАБОТАЕМ, ДОСТАВКА, КОНТАКТЫ, ФОРМЫ, КАРТА, ПОДВАЛ,
 * ОКНО ЗАКАЗА, ДОКУМЕНТЫ, АДАПТИВНОСТЬ.
 * Порядок каскада сохранён. Адаптивные уточнения подписаны по ширине экрана.
 * ========================================================================== */

/*
 * THE FLOWER SHOP — все стили проекта.
 * Общая палитра и шрифты задаются переменными :root.
 * Используется обычный CSS, без сборки; Tailwind CDN подключён в HTML.
 */

/* ==========================================================================
 * ПАЛИТРА И ШРИФТЫ
 * Основные цвета и шрифты сайта меняйте здесь.
 * ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #353535;
  --catalog-bg: #353535;
  --stone: #e6e6e6;
  --surface: #353535;
  --surface-2: #353535;
  --gold: #e6e6e6;
  --gold-hover: #e6e6e6;
  --champagne: #e6e6e6;
  --text: #f2f2f2;
  --muted: #e6e6e6;
  --line: rgba(255,255,255,.13);
  --serif: "Cormorant Garamond",Georgia,serif;
  --sans: "Inter",Arial,sans-serif;
}

/* ==========================================================================
 * ОСНОВА СТРАНИЦЫ
 * Сброс отступов, типографика, ссылки и доступность.
 * ========================================================================== */

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  scrollbar-gutter: stable;
}

body.font-sans {
  font-family: var(--sans);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 400;
}

h1,h2,h3,.font-serif {
  font-family: var(--serif);
}

a {
  color: inherit;
  text-decoration: none;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img,svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

::selection {
  background: var(--gold);
  color: #121212;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

section:focus,main:focus {
  outline: none;
}

/* ==========================================================================
 * ОБЩИЕ КОНТЕЙНЕРЫ И ЗАГОЛОВКИ
 * Ширина страницы, отступы секций и подписи.
 * ========================================================================== */

.shell {
  width: min(1280px,calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--champagne);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--champagne);
  opacity: .65;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(38px,4vw,56px);
  line-height: 1.05;
  letter-spacing: .005em;
  margin-top: 16px;
}

.section-note {
  max-width: 285px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.icon {
  width: 23px;
  height: 23px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
 * КНОПКИ И ТЕКСТОВЫЕ ССЫЛКИ
 * ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  transition: background .2s,border-color .2s,transform .2s,color .2s;
}

.btn-primary {
  background: var(--gold);
  color: #121212;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(230,230,230,.45);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(230,230,230,.07);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne);
  transition: color .2s;
}

.text-link:hover {
  color: var(--gold);
}

/* ==========================================================================
 * ЛОГОТИП И ШАПКА
 * ========================================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  background: var(--gold);
  color: #121212;
  padding: 12px 20px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(53,53,53,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .2s,box-shadow .2s;
}

.site-header.scrolled {
  background: rgba(53,53,53,.94);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 56px;
  color: var(--text);
  flex: none;
  fill: currentColor;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: .15em;
  white-space: nowrap;
}

.brand-descriptor {
  display: block;
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #e6e6e6;
  margin-top: 7px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--champagne);
  transition: border-color .2s,background .2s;
}

.icon-link:hover {
  border-color: rgba(230,230,230,.6);
  background: rgba(230,230,230,.07);
}

.icon-link .icon {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
 * ПЕРВЫЙ ЭКРАН
 * ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 35%,rgba(173,173,173,.17),transparent 58%),var(--bg);
}

.hero-main {
  min-height: 654px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 18px;
  padding-block: 48px 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 36px;
}

.hero h1 {
  margin-top: 30px;
  font-size: clamp(58px,6.5vw,91px);
  line-height: .99;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent {
  color: var(--champagne);
  font-style: italic;
  letter-spacing: -.025em;
}

.hero-description {
  max-width: 375px;
  margin-top: 28px;
  color: #e6e6e6;
  font-size: 15px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-fineprint {
  max-width: 355px;
  margin-top: 20px;
  color: #a3a3a3;
  font-size: 10px;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin-right: -40px;
  background: #353535;
  border-radius: 12px;
  isolation: isolate;
}

.hero-visual>img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: none;
  border-radius: inherit;
}

.hero-visual::after {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(90deg,var(--bg) 0%,rgba(53,53,53,.04) 21%,transparent 49%),linear-gradient(0deg,var(--bg),transparent 20%,transparent 90%,rgba(53,53,53,.25));
  pointer-events: none;
  z-index: 1;
}

.hero-caption {
  position: absolute;
  right: 28px;
  bottom: 46px;
  z-index: 2;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.15;
  color: #e6e6e6;
  text-shadow: 0 2px 12px #000000;
}

.hero-caption small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 8px;
  letter-spacing: .22em;
  margin-top: 14px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  padding-block: 26px 31px;
  border-top: 1px solid var(--line);
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #e6e6e6;
  font-size: 12px;
}

.benefit:not(:last-child) {
  border-right: 1px solid var(--line);
}

.benefit .icon {
  color: var(--champagne);
  width: 24px;
  height: 24px;
}

/* ==========================================================================
 * КАТАЛОГ: ОБЫЧНАЯ СЕТКА БЕЗ JS И ГОРИЗОНТАЛЬНЫЕ СТРАНИЦЫ С JS.
 * ========================================================================== */

.catalog {
  background: radial-gradient(ellipse at 85% 0%,rgba(230,230,230,.07),transparent 55%),var(--catalog-bg);
  border-top: 1px solid var(--line);
}

.catalog-range {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--champagne);
}

.catalog-toolbar {
  margin-bottom: 28px;
}

.budget-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}

.budget-chip {
  padding: 10px 17px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  background: transparent;
  color: #e6e6e6;
  font-size: 11px;
  transition: color .2s,background .2s,border-color .2s;
}

.budget-chip:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--champagne);
}

.budget-chip[aria-pressed="true"] {
  background: var(--stone);
  color: #353535;
  border-color: var(--stone);
}

.catalog-viewport {
  --columns: 4;
  scroll-margin-top: 120px;
}

.catalog-grid, .catalog-page {
  display: grid;
  grid-template-columns: repeat(var(--columns),minmax(0,1fr));
  gap: 24px;
}

.catalog-viewport.is-paginated {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border-radius: 12px;
}

.is-paginated .catalog-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.is-paginated .catalog-page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(155deg,#353535,var(--surface));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s,background .25s;
}

.product-card:hover {
  border-color: rgba(230,230,230,.65);
}

.product-media {
  position: relative;
  aspect-ratio: 1/1.08;
  overflow: hidden;
  background: linear-gradient(135deg,#747474,#464646);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.product-occasion {
  min-height: 16px;
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .06em;
  color: var(--champagne);
}

.product-body h3 {
  font-size: 28px;
  line-height: 1.1;
  min-height: 62px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.composition {
  margin: 10px 0 22px;
  min-height: 38px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.product-bottom .btn {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 11px;
  gap: 7px;
  border-color: rgba(230,230,230,.4);
}

.product-bottom .icon {
  width: 15px;
  height: 15px;
}

.catalog-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#catalog-count {
  font-size: 12px;
  color: var(--text);
}

#catalog-hint {
  font-size: 10px;
  color: var(--muted);
}

.pagination,.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-arrow,.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
  transition: background .2s,border-color .2s;
}

.page-number {
  border-color: transparent;
}

.page-number[aria-current="page"] {
  background: var(--stone);
  border-color: var(--stone);
  color: #353535;
}

.page-arrow:not(:disabled):hover,.page-number:not([aria-current="page"]):hover {
  background: rgba(255,255,255,.08);
  border-color: var(--champagne);
}

.page-arrow:disabled {
  opacity: .28;
}

.arrow-back {
  transform: rotate(180deg);
}

.page-position {
  display: none;
}

.catalog-empty {
  padding: 40px 0;
  color: var(--muted);
}

.catalog-bottom {
  margin-top: 34px;
  text-align: center;
}

.catalog-bottom .btn {
  max-width: 100%;
  font-weight: 400;
}

.catalog-disclaimer {
  margin: 18px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

/* ==========================================================================
 * КАК МЫ РАБОТАЕМ
 * Блок этапов заказа и карточки шагов.
 * ========================================================================== */

.service {
  --text: #353535;
  --muted: #616161;
  --champagne: #686868;
  --line: rgba(53,53,53,.17);
  color-scheme: light;
  color: var(--text);
  background: radial-gradient(ellipse at 75% 20%,rgba(255,255,255,.7),transparent 65%),var(--stone);
  border-block: 1px solid rgba(255,255,255,.25);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  padding: 10px 30px 8px;
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step:not(:last-child) {
  border-right: 1px solid var(--line);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  color: var(--champagne);
}

.step-number {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
}

.step-top .icon {
  width: 27px;
  height: 27px;
  opacity: .8;
}

.step h3 {
  font-size: 25px;
  line-height: 1.2;
  min-height: 60px;
}

.step p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

/* ==========================================================================
 * ДОСТАВКА И ОПЛАТА
 * Сетка и информационные карточки.
 * ========================================================================== */

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.info-card {
  padding: 30px 24px;
  background: linear-gradient(145deg,#353535,#353535);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(230,230,230,.3);
  border-radius: 10px;
  color: var(--champagne);
  margin-bottom: 25px;
}

.info-card h3 {
  font-size: 26px;
  line-height: 1.2;
  min-height: 62px;
}

.info-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* ==========================================================================
 * КОНТАКТЫ
 * Адрес, часы работы, телефон и мессенджеры.
 * ========================================================================== */

.contacts {
  background: radial-gradient(ellipse at 0 100%,rgba(230,230,230,.1),transparent 60%),#353535;
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.02fr;
  gap: 26px;
  align-items: stretch;
}

.contact-details {
  padding: 10px 10px 0 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 28px;
}

.contact-item>.icon {
  color: var(--champagne);
  width: 21px;
  height: 21px;
  margin-top: 4px;
}

.contact-label {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.contact-value {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

.contact-value a:hover {
  color: var(--champagne);
}

/* ==========================================================================
 * ФОРМЫ СВЯЗИ
 * Карточка формы, поля, сообщения и согласие.
 * ========================================================================== */

.callback-card {
  --text: #353535;
  --champagne: #636363;
  --gold: #8d8d8d;
  color-scheme: light;
  color: var(--text);
  padding: 30px;
  background: #e6e6e6;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.callback-card h3 {
  font-size: 29px;
  line-height: 1.15;
}

.callback-card>p {
  margin-top: 12px;
  margin-bottom: 25px;
  font-size: 12px;
  color: #b2b2b2;
  line-height: 1.85;
}

.callback-card .btn-primary {
  width: 100%;
  padding-inline: 10px;
  font-size: 11px;
}

.form-note {
  color: #a6a6a6;
  font-size: 10px;
  line-height: 1.85;
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  color: var(--champagne);
  font-size: 12px;
  line-height: 1.7;
}

.form-status a {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 5px;
}

/* ==========================================================================
 * КАРТА: БАЗОВЫЕ СТИЛИ
 * ========================================================================== */

.map-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #353535;
  isolation: isolate;
}

/* ==========================================================================
 * ПОДВАЛ
 * ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 25px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer .brand-mark {
  height: 45px;
  width: 29px;
}

.site-footer .brand-name {
  font-size: 17px;
}

.footer-phrase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--champagne);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 30px;
  font-size: 10px;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--champagne);
}

/* ==========================================================================
 * ОКНО ЗАКАЗА
 * ========================================================================== */

dialog {
  color: var(--text);
  font-family: var(--sans);
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgba(53,53,53,.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.order-dialog {
  position: fixed;
  inset: 0;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(440px,calc(100% - 24px));
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.dialog-inner {
  position: relative;
  padding: 36px;
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #e6e6e6;
}

.dialog-close:hover {
  border-color: var(--gold);
}

.dialog-close .icon {
  width: 18px;
  height: 18px;
}

.order-dialog .btn-primary {
  width: 100%;
  margin-top: 4px;
}

/* ==========================================================================
 * ОШИБКИ ФОТОГРАФИЙ И СООБЩЕНИЕ БЕЗ JAVASCRIPT
 * ========================================================================== */

.media-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  color: #e6e6e6;
  background: radial-gradient(ellipse at 40% 35%,#464646,#353535 65%);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
}

.media-error small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  margin-top: 12px;
  color: #afafaf;
}

.noscript-note {
  padding: 16px 24px;
  text-align: center;
  background: #353535;
  color: #e6e6e6;
  font-size: 12px;
}

/* ==========================================================================
 * АДАПТИВНОСТЬ
 * ========================================================================== */

/* ==========================================================================
 * АДАПТИВНОСТЬ: (min-width:1600px)
 * ========================================================================== */

@media(min-width:1600px) {
  .hero-visual {
    margin-right: -70px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:1150px)
 * ========================================================================== */

@media(max-width:1150px) {
  .brand-name {
    font-size: 19px;
  }

  .contacts-grid {
    gap: 18px;
  }

  .callback-card {
    padding: 24px;
  }

  .info-card {
    padding: 25px 20px;
  }

  .step {
    padding-inline: 22px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:1023px)
 * ========================================================================== */

@media(max-width:1023px) {
  .shell {
    width: calc(100% - 48px);
  }

  .header-inner {
    height: 78px;
  }

  .section {
    padding-block: 80px;
  }

  .hero-main {
    min-height: 590px;
    grid-template-columns: 1.05fr 1fr;
  }

  .hero h1 {
    font-size: clamp(50px,7vw,73px);
  }

  .hero-visual {
    min-height: 510px;
    margin-right: -24px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .btn {
    padding-inline: 18px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-benefits {
    gap: 20px;
  }

  .benefit {
    font-size: 10px;
    gap: 10px;
  }

  .delivery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
  }

  .info-card h3 {
    min-height: 0;
  }

  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .map-card {
    grid-column: 1/-1;
    min-height: 290px;
  }

  .step {
    padding-inline: 16px;
  }

  .step h3 {
    font-size: 22px;
    min-height: 54px;
  }

  .step p {
    font-size: 11px;
  }

  .footer-phrase {
    font-size: 21px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:767px)
 * ========================================================================== */

@media(max-width:767px) {
  html {
    scroll-padding-top: 90px;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .section {
    padding-block: 72px;
  }

  .header-inner {
    height: 72px;
  }

  .brand-mark {
    width: 27px;
    height: 46px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-descriptor {
    font-size: 7px;
    letter-spacing: .23em;
  }

  .brand {
    gap: 10px;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding-top: 37px;
    padding-bottom: 0;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
    z-index: 2;
  }

  .hero h1 {
    font-size: clamp(51px,10.7vw,76px);
    margin-top: 25px;
    max-width: 560px;
  }

  .hero-description {
    font-size: 14px;
    max-width: 420px;
    margin-top: 22px;
  }

  .hero-buttons {
    margin-top: 26px;
    gap: 12px;
  }

  .hero-buttons .btn {
    min-height: 50px;
  }

  .hero-fineprint {
    max-width: 430px;
    font-size: 9px;
    margin-top: 16px;
  }

  .hero-visual {
    align-self: auto;
    width: calc(100% + 40px);
    height: 400px;
    min-height: 0;
    margin: 10px -20px 0;
    border-radius: 0;
  }

  .hero-visual>img {
    object-position: 50% 44%;
  }

  .hero-visual::after {
    background: linear-gradient(0deg,var(--bg),transparent 25%,transparent 70%,var(--bg)),linear-gradient(90deg,rgba(53,53,53,.2),transparent 40%);
  }

  .hero-caption {
    right: 28px;
    bottom: 45px;
    font-size: 25px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 24px 0 28px;
  }

  .benefit {
    font-size: 12px;
    gap: 13px;
  }

  .benefit:not(:last-child) {
    border: 0;
  }

  .benefit .icon {
    width: 21px;
    height: 21px;
  }

  .section-head {
    display: block;
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 43px;
    margin-top: 14px;
  }

  .section-note {
    margin-top: 20px;
    max-width: 390px;
    font-size: 12px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .step,.step:first-child,.step:last-child {
    padding: 0;
  }

  .step:not(:last-child) {
    border: 0;
  }

  .step-top {
    margin-bottom: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .step-number {
    font-size: 42px;
  }

  .step h3 {
    font-size: 25px;
    min-height: 58px;
  }

  .step p {
    font-size: 11px;
  }

  .delivery-grid {
    gap: 16px;
  }

  .info-card {
    padding: 24px 19px;
  }

  .icon-frame {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
  }

  .info-card h3 {
    font-size: 25px;
    min-height: 60px;
  }

  .info-card p {
    font-size: 11px;
    line-height: 1.85;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-details {
    padding: 0;
  }

  .contact-item {
    margin-bottom: 24px;
  }

  .contact-value {
    font-size: 14px;
  }

  .callback-card {
    padding: 28px;
  }

  .callback-card h3 {
    font-size: 31px;
  }

  .callback-card .btn-primary {
    font-size: 12px;
  }

  .map-card {
    grid-column: auto;
    min-height: 330px;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-phrase {
    order: 3;
    flex-basis: 100%;
    font-size: 23px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 9px;
    margin-top: 26px;
  }

  .site-footer .brand-name {
    font-size: 15px;
  }

  .site-footer .brand-descriptor {
    font-size: 6px;
  }

  .footer-socials {
    gap: 8px;
  }

  .footer-socials .icon-link {
    width: 35px;
    height: 35px;
  }

  .dialog-inner {
    padding: 30px 24px;
  }

  .dialog-inner h2 {
    font-size: 34px;
  }

  .dialog-inner>.eyebrow {
    font-size: 8px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:370px)
 * ========================================================================== */

@media(max-width:370px) {
  .shell {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-descriptor {
    font-size: 6px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-visual {
    width: calc(100% + 32px);
    margin-inline: -16px;
    height: 350px;
  }

  .delivery-grid,.steps {
    grid-template-columns: 1fr;
  }

  .step h3,.info-card h3 {
    min-height: 0;
  }

  .info-card {
    padding: 26px;
  }

  .info-card p {
    font-size: 12px;
  }

  .footer-socials {
    gap: 6px;
  }

  .site-footer .brand-mark {
    width: 22px;
  }

  .site-footer .brand-name {
    font-size: 13px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (prefers-reduced-motion:reduce)
 * ========================================================================== */

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }

  .product-card:hover,.product-card:hover .product-media img,.btn-primary:hover {
    transform: none;
  }
}

/* ==========================================================================
 * СКРЫТЫЙ БИБЛИОТЕЧНЫЙ СПРАЙТ ИКОНОК.
 * ========================================================================== */

.svg-sprite {
  position: absolute;
  overflow: hidden;
}

/* ==========================================================================
 * СВЕТЛЫЕ ЭЛЕМЕНТЫ КОНТАКТОВ И УМЕРЕННЫЙ КОНТРАСТ ТЁМНЫХ СЛОЁВ.
 * ========================================================================== */

.delivery {
  background: #353535;
}

.service .section-head h2 {
  color: #353535;
}

.callback-card > p,.callback-card .form-note {
  color: #5e5e5e;
}

.callback-card .btn-primary {
  background: #353535;
  color: #f2f2f2;
}

.callback-card .btn-primary:hover {
  background: #464646;
}

.callback-card .form-status {
  color: #464646;
}

/* ==========================================================================
 * КАТАЛОГ: ЧИСЛО КОЛОНОК СИНХРОНИЗИРУЕТСЯ С JS ЧЕРЕЗ --COLUMNS.
 * ========================================================================== */

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:1199px)
 * ========================================================================== */

@media(max-width:1199px) {
  .catalog-viewport {
    --columns: 3;
  }

  .catalog-grid,.catalog-page {
    gap: 20px;
  }

  .product-body {
    padding: 20px;
  }

  .product-body h3 {
    font-size: 27px;
  }

  .product-bottom {
    flex-wrap: wrap;
  }

  .product-bottom .btn {
    flex: 1;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:767px)
 * ========================================================================== */

@media(max-width:767px) {
  .catalog-viewport {
    --columns: 2;
  }

  .catalog-grid,.catalog-page {
    gap: 14px;
  }

  .catalog .section-head {
    margin-bottom: 26px;
  }

  .catalog .section-note {
    margin-top: 16px;
  }

  .catalog-toolbar {
    margin-bottom: 22px;
  }

  .budget-filters {
    gap: 8px;
  }

  .filter-label {
    flex-basis: 100%;
    margin: 0 0 3px;
  }

  .budget-chip {
    font-size: 10px;
    padding: 9px 13px;
  }

  .product-media {
    aspect-ratio: 1/1.15;
  }

  .product-body {
    padding: 17px 13px;
  }

  .product-occasion {
    min-height: 30px;
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .product-body h3 {
    font-size: 25px;
    min-height: 56px;
  }

  .composition {
    font-size: 10px;
    min-height: 54px;
    margin: 10px 0 16px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 14px;
  }

  .product-bottom .price {
    font-size: 29px;
  }

  .product-bottom .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
  }

  .catalog-navigation {
    gap: 14px;
    align-items: center;
    padding: 22px 0;
  }

  #catalog-count {
    font-size: 11px;
  }

  #catalog-hint {
    max-width: 180px;
    font-size: 9px;
  }

  .page-numbers {
    display: none;
  }

  .page-position {
    display: block;
    min-width: 42px;
    text-align: center;
    font-size: 12px;
  }

  .pagination {
    gap: 5px;
  }

  .catalog-bottom {
    margin-top: 28px;
  }

  .catalog-bottom .btn {
    padding: 15px 17px;
    font-size: 11px;
  }

  .catalog-disclaimer {
    font-size: 9px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:359px)
 * ========================================================================== */

@media(max-width:359px) {
  .catalog-viewport {
    --columns: 1;
  }

  .product-media {
    aspect-ratio: 1/1.04;
  }

  .product-body {
    padding: 22px;
  }

  .product-body h3,.product-occasion,.composition {
    min-height: 0;
  }

  .product-body h3 {
    font-size: 30px;
  }

  .product-occasion {
    font-size: 10px;
  }

  .product-bottom {
    flex-direction: row;
    align-items: center;
  }

  .product-bottom .btn {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  #catalog-hint {
    display: none;
  }
}

/* ==========================================================================
 * ШАПКА: КОМПАКТНЫЙ ЛОГОТИП ПРИ ПРОКРУТКЕ. КОНТАКТЫ — В БЛОКЕ «Шапка: телефон» НИЖЕ.
 * ========================================================================== */

.logo-only {
  --logo-scale: 1;
  --logo-shift: 0px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.logo-only.scrolled {
  background: transparent;
  box-shadow: none;
}

.logo-only .header-inner {
  justify-content: flex-start;
  gap: 0;
}

.logo-only .brand {
  pointer-events: auto;
  padding: 9px 15px;
  margin-left: -15px;
  border: 1px solid transparent;
  border-radius: 12px;
  transform: translateY(var(--logo-shift)) scale(var(--logo-scale));
  transform-origin: left center;
  transition: background .25s,border-color .25s,box-shadow .25s;
}

.logo-only.scrolled .brand {
  background: rgba(53,53,53,.94);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ==========================================================================
 * КОНТАКТЫ: СОЦИАЛЬНЫЕ СЕТИ
 * ========================================================================== */

.contact-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact-socials .icon-link,.footer-socials .icon-link {
  width: 44px;
  height: 44px;
}

.contact-socials .icon,.footer-socials .icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
 * ПРЯМОЙ ЗВОНОК ВМЕСТО ФОРМЫ ИМЕНИ/ТЕЛЕФОНА.
 * ========================================================================== */

.call-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.call-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(53,53,53,.22);
  border-radius: 50%;
  margin-bottom: 23px;
  color: #626262;
}

.call-emblem .icon {
  width: 22px;
  height: 22px;
}

.call-card h3 {
  font-size: 34px;
}

.call-card>p {
  margin-bottom: 18px;
}

.call-card .call-number {
  font-family: var(--serif);
  font-size: 29px;
  color: #353535;
  margin: 0 0 23px;
  line-height: 1.2;
}

.call-card .btn-primary {
  margin-top: 20px;
  min-height: 52px;
  font-size: 13px;
}

.call-card .form-note {
  margin-bottom: 0;
  font-size: 10px;
}

.call-card .form-status:empty {
  display: none;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  gap: 11px;
  margin: 16px 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.consent-row input {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
  flex: none;
}

.consent-row label {
  cursor: pointer;
}

.consent-row input[aria-invalid="true"] {
  outline: 2px solid #9f9f9f;
  outline-offset: 3px;
}

.legal-inline {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.call-card .consent-row {
  color: #464646;
  margin: 0;
}

.call-card .consent-row input {
  accent-color: #464646;
}

.call-card .consent-row input[aria-invalid="true"] {
  outline-color: #464646;
}

.call-card .legal-inline {
  color: #464646;
}

.call-card :focus-visible {
  outline-color: #636363;
}

/* ==========================================================================
 * ВСТРОЕННАЯ КАРТА НЕ ЗАТЕМНЯЕТСЯ CSS-ФИЛЬТРАМИ, ЛОГОТИПЫ ЯНДЕКСА НЕ ПЕРЕКРЫВАЮТСЯ.
 * ========================================================================== */

.yandex-card {
  display: flex;
  flex-direction: column;
  background: #353535;
  min-height: 420px;
}

.map-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.map-heading>.icon {
  width: 18px;
  height: 18px;
  color: var(--champagne);
}

.map-provider {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 340px;
  background: #353535;
}

.map-stage iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: normal;
}

.map-placeholder {
  min-height: 340px;
  height: 100%;
  padding: 25px 23px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%,rgba(230,230,230,.1),transparent 70%),#353535;
}

.map-placeholder-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230,230,230,.35);
  border-radius: 50%;
  color: var(--champagne);
  margin-bottom: 18px;
}

.map-placeholder-icon .icon {
  width: 27px;
  height: 27px;
}

.map-shop-name {
  font-family: var(--serif);
  letter-spacing: .1em;
  font-size: 21px;
}

.map-address {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.map-placeholder .btn {
  margin-top: 21px;
  min-height: 46px;
  padding: 11px 17px;
  font-size: 11px;
}

.map-privacy {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 17px;
  max-width: 290px;
}

.map-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--champagne);
}

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.map-footer .text-link {
  font-size: 10px;
  gap: 7px;
}

.map-footer .icon {
  width: 15px;
  height: 15px;
}

.map-toggle {
  border: 0;
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  padding: 7px 0;
}

.map-status {
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 10px;
}

.map-status:empty {
  display: none;
}

/* ==========================================================================
 * ДОКУМЕНТЫ: ПОЛНОЦЕННЫЕ ТЕКСТЫ И САМОСТОЯТЕЛЬНЫЕ СТРАНИЦЫ, НЕ ПУСТЫЕ ССЫЛКИ.
 * ========================================================================== */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 28px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.footer-legal a {
  padding: 6px 0;
  text-underline-offset: 4px;
}

.footer-legal a:hover {
  color: var(--champagne);
  text-decoration: underline;
}

.footer-legal+.footer-bottom {
  margin-top: 18px;
}

.legal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(800px,calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(230,230,230,.3);
  border-radius: 16px;
  background: #e6e6e6;
  color: #353535;
  color-scheme: light;
  box-shadow: 0 30px 100px #00000088;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 65px;
  padding: 24px 75px 20px 30px;
  background: #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #5c5c5c;
}

.legal-dialog-bar .dialog-close {
  color: #353535;
  border-color: #e6e6e6;
  top: 12px;
}

.legal-content {
  padding: 34px 38px 45px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
}

.legal-content h1 {
  font-size: clamp(30px,4vw,45px);
  line-height: 1.12;
  margin: 0 0 12px;
  color: #353535;
  text-transform: none;
  letter-spacing: 0;
}

.legal-content h1:focus {
  outline: none;
}

.legal-content h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 32px 0 12px;
  color: #353535;
}

.legal-content p {
  margin: 13px 0;
}

.legal-content a {
  color: #464646;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-version {
  color: #666666;
  font-size: 11px;
}

.legal-draft {
  padding: 16px 19px;
  margin: 25px 0;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
  background: #e6e6e6;
  font-size: 12px;
  color: #464646;
  line-height: 1.7;
}

.legal-draft strong {
  font-weight: 600;
}

.legal-content [data-legal-field] {
  white-space: normal;
}

.legal-dialog :focus-visible,.legal-page :focus-visible {
  outline-color: #686868;
}

.requisites-list {
  margin: 26px 0;
}

.requisites-list dt {
  font-size: 11px;
  color: #656565;
  margin-top: 17px;
}

.requisites-list dd {
  margin: 5px 0 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}

.legal-page {
  background: #353535;
}

.legal-page-shell {
  max-width: 900px;
  width: calc(100% - 40px);
  margin: 40px auto 70px;
}

.legal-back {
  display: inline-flex;
  padding: 12px 0;
  margin-bottom: 22px;
  color: var(--champagne);
  font-size: 12px;
}

.legal-page .legal-content {
  background: #e6e6e6;
  color: #353535;
  border-radius: 14px;
  padding: 45px 50px;
}

.legal-page-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:1023px)
 * ========================================================================== */

@media(max-width:1023px) {
  .yandex-card {
    min-height: 420px;
  }

  .map-stage,.map-placeholder {
    min-height: 340px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:767px)
 * ========================================================================== */

@media(max-width:767px) {
  .logo-only .brand {
    padding: 8px 12px;
    margin-left: -12px;
  }

  .logo-only .brand-name {
    font-size: 17px;
  }

  .logo-only .brand-descriptor {
    font-size: 7px;
  }

  .contact-socials {
    gap: 12px;
  }

  .footer-socials {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 25px;
    padding-top: 23px;
  }

  .footer-legal a {
    padding: 6px 0;
  }

  .call-card .call-number {
    font-size: 31px;
  }

  .consent-row {
    font-size: 12px;
  }

  .call-card .form-note {
    font-size: 11px;
  }

  .map-provider {
    font-size: 10px;
  }

  .map-footer .text-link,.map-toggle {
    font-size: 11px;
  }

  .map-privacy {
    font-size: 11px;
  }

  .legal-content {
    padding: 25px 23px 35px;
    font-size: 13px;
  }

  .legal-dialog-bar {
    padding-left: 23px;
    font-size: 9px;
  }

  .legal-page-shell {
    margin-top: 20px;
  }

  .legal-page .legal-content {
    padding: 28px 23px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (max-width:359px)
 * ========================================================================== */

@media(max-width:359px) {
  .logo-only .brand-name {
    font-size: 14px;
  }

  .logo-only .brand-descriptor {
    font-size: 6px;
  }

  .call-card {
    padding: 24px;
  }

  .call-card .call-number {
    font-size: 27px;
  }

  .map-heading {
    padding-inline: 14px;
  }

  .map-footer {
    padding-inline: 14px;
  }
}

/* ==========================================================================
 * АДАПТИВНОСТЬ: (prefers-reduced-motion:reduce)
 * ========================================================================== */

@media(prefers-reduced-motion:reduce) {
  .logo-only .brand {
    transform: none!important;
  }
}

/* ==========================================================================
 * ОБЕ ФОРМЫ ЗВОНКА ОФОРМЛЕНЫ ОДИНАКОВО. ДОПОЛНИТЕЛЬНАЯ КАРТОЧКА ТОВАРА В ОКНЕ УБРАНА.
 * ========================================================================== */

.call-card .call-promise {
  align-self: center;
  max-width: 310px;
  margin: 17px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #5e5e5e;
}

/* ==========================================================================
 * ВСПЛЫВАЮЩЕЕ ОКНО НЕ ДОБАВЛЯЕТ ТЁМНУЮ РАМКУ И ОТСТУПЫ ВОКРУГ СВЕТЛОЙ ФОРМЫ.
 * ========================================================================== */

.order-dialog .dialog-inner {
  padding: 0;
}

.order-dialog .dialog-close {
  z-index: 2;
  top: 12px;
  right: 12px;
  color: #353535;
  background: #e6e6e6;
  border-color: rgba(40,40,40,.2);
}

.order-dialog .dialog-close:hover {
  border-color: #737373;
}

/* ==========================================================================
 * ШАПКА: ТЕЛЕФОН И МЕССЕНДЖЕРЫ РЯДОМ С ЛОГОТИПОМ
 * ========================================================================== */
.logo-only .header-inner { justify-content: space-between; gap: 20px; }
.header-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(53,53,53,.94);
  pointer-events: auto;
}
.header-phone { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 13px; }
.header-phone>.icon { width: 17px; height: 17px; color: var(--champagne); }
.header-phone:hover { color: var(--champagne); }
.header-messengers { display: flex; gap: 8px; }
.header-messengers .icon-link { width: 36px; height: 36px; }
.header-messengers .icon { width: 19px; height: 19px; }
@media(max-width:767px) {
  .logo-only .header-inner { gap: 8px; }
  .header-contact { flex-direction: column; gap: 6px; padding: 7px 8px; }
  .header-phone { gap: 0; font-size: 11px; }
  .header-phone>.icon { display: none; }
  .header-messengers { gap: 8px; }
  .header-messengers .icon-link { width: 30px; height: 30px; }
  .header-messengers .icon { width: 17px; height: 17px; }
  .logo-only .brand { gap: 8px; }
  .logo-only .brand-mark { width: 24px; height: 40px; }
  .logo-only .brand-name { font-size: 15px; letter-spacing: .08em; }
}
@media(max-width:359px) {
  .site-header .shell { width: calc(100% - 32px); }
  .header-contact { padding-inline: 6px; }
  .header-phone { font-size: 10px; }
  .header-messengers { gap: 6px; }
  .logo-only .brand { padding-inline: 6px; margin-left: -6px; gap: 6px; }
  .logo-only .brand-mark { width: 20px; height: 34px; }
  .logo-only .brand-name { font-size: 12px; }
}

/* FAQ ПЕРЕД КОНТАКТАМИ: один открытый ответ, крупная зона нажатия. */
.faq { background: var(--bg); }
.faq-list { max-width: 960px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; min-height: 64px; list-style: none; cursor: pointer; color: var(--text); font-size: 15px; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; width: 28px; color: var(--champagne); text-align: center; font-size: 25px; font-weight: 300; }
.faq-list details[open]>summary::after { content: '−'; }
.faq-list details[open]>summary { color: var(--champagne); }
.faq-answer { max-width: 780px; padding: 0 42px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.faq-answer .btn { margin-top: 18px; }
@media(max-width:767px) {
  .faq-list summary { padding-block: 19px; font-size: 14px; gap: 14px; }
  .faq-answer { padding-right: 0; font-size: 12px; }
}

/* ==========================================================================
 * МЕССЕНДЖЕРЫ ВО ВСЕХ ФОРМАХ: ИКОНКИ, ПОДПИСЬ И СОСТОЯНИЯ
 * ========================================================================== */
.form-messengers {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(40,40,40,.14);
  text-align: center;
  color: #5e5e5e;
  font-size: 11px;
}
.form-messenger-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.form-messenger-links .icon-link {
  width: 44px;
  height: 44px;
  border-color: rgba(40,40,40,.22);
  color: #464646;
}
.form-messenger-links .icon-link:hover {
  background: rgba(115,115,115,.1);
  border-color: #737373;
}
.form-messenger-links .icon { width: 21px; height: 21px; }

/* ==========================================================================
 * ИНДИВИДУАЛЬНЫЙ ЗАКАЗ: ПОЛЯ, СЕТКА И СВЕТЛАЯ ФОРМА
 * ========================================================================== */
.custom-dialog { width: min(560px,calc(100% - 24px)); }
.request-form { color-scheme: light; }
.request-form .form-eyebrow {
  margin: 0 0 12px;
  color: #676767;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.request-fields { display: grid; gap: 16px; margin-bottom: 22px; }
.request-field { display: grid; gap: 7px; min-width: 0; }
.request-field>span { color: #464646; font-size: 11px; }
.request-field input,.request-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #e6e6e6;
  border-radius: 7px;
  background: #f2f2f2;
  color: #353535;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.request-field textarea { resize: vertical; max-height: 200px; }
.request-field input::placeholder,.request-field textarea::placeholder { color: #838383; }
.request-field input:focus,.request-field textarea:focus { border-color: #737373; outline: 2px solid rgba(115,115,115,.2); outline-offset: 1px; }
.request-field input[aria-invalid="true"] { border-color: #464646; }
.request-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.request-form .form-note { margin-bottom: 0; color: #5e5e5e; }
.request-form .form-status a { color: #464646; text-decoration: underline; }

/* ==========================================================================
 * ЛОВЕЦ ЛИДОВ: КНОПКА ПОМОЩИ И КАРТОЧКА БЕЗ БЛОКИРОВКИ СТРАНИЦЫ
 * ========================================================================== */
.lead-launcher {
  position: fixed;
  right: max(22px,env(safe-area-inset-right));
  bottom: max(22px,env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 19px;
  border: 1px solid #919191;
  border-radius: 30px;
  background: #e6e6e6;
  color: #353535;
  box-shadow: 0 8px 30px #00000044;
  font-size: 12px;
  transition: transform .2s,background .2s;
}
.lead-launcher:hover { background: #e6e6e6; transform: translateY(-2px); }
.lead-launcher .icon { width: 20px; height: 20px; }
.lead-capture {
  position: fixed;
  right: max(22px,env(safe-area-inset-right));
  bottom: max(22px,env(safe-area-inset-bottom));
  z-index: 45;
  width: min(370px,calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  border-radius: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 65px #00000066;
}
.lead-form { position: relative; padding: 30px 26px 24px; }
.lead-form .dialog-close { top: 10px; right: 10px; width: 32px; height: 32px; color: #464646; border-color: #e6e6e6; }
.lead-form h3 { padding-right: 12px; font-size: 30px; }
.lead-form>p { font-size: 11px; margin-bottom: 16px; }
.lead-form .request-fields { gap: 12px; margin-bottom: 16px; }
.lead-form .consent-row { font-size: 10px; }
.lead-form .form-messengers { margin-top: 16px; padding-top: 14px; }
.lead-form .btn-primary { margin-top: 16px; }
@media(max-width:767px) {
  .custom-dialog .callback-card { padding: 30px 24px; }
  .request-field input,.request-field textarea { font-size: 16px; }
  .lead-launcher { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); font-size: 11px; }
  .lead-capture { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); max-height: calc(100dvh - 32px); }
  .lead-form { padding: 28px 22px 22px; }
}
@media(max-width:359px) {
  .request-field-pair { grid-template-columns: 1fr; }
  .custom-dialog .callback-card { padding: 28px 20px; }
}

/* ==========================================================================
 * MOBILE-FIRST: КАРТОЧКА БУКЕТА И ЗАКАЗ В ОДНОМ ОКНЕ
 * Ищите: ОКНА, ГАЛЕРЕЯ, ОБЪЁМЫ, ДОПОЛНЕНИЯ, ОТКРЫТКА, ДОСТАВКА, НИЖНЯЯ ПАНЕЛЬ.
 * База — телефон; широкие экраны уточняются в конце. Цвета — переменные ниже.
 * ========================================================================== */
.shop-dialog {
  --shop-bg: #f2f2f2;
  --shop-ink: #353535;
  --shop-muted: #6f6f6f;
  --shop-line: #e6e6e6;
  --shop-accent: #464646;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  background: var(--shop-bg);
  color: var(--shop-ink);
  color-scheme: light;
  overflow: hidden;
  overscroll-behavior: contain;
  font-size: 14px;
  line-height: 1.5;
}
.shop-dialog[open] { display: flex; flex-direction: column; }
.shop-dialog * { box-sizing: border-box; }
.shop-dialog button,.shop-dialog a,.shop-dialog input { -webkit-tap-highlight-color: transparent; }
.shop-dialog button { font: inherit; cursor: pointer; }
.shop-dialog button:disabled { opacity: .45; cursor: default; }
.shop-dialog :focus-visible { outline: 2px solid #696969; outline-offset: 3px; }
.shop-dialog h2,.shop-dialog h3,.shop-dialog p { margin: 0; }
.shop-dialog h2 { font-size: 32px; line-height: 1.07; }
.shop-dialog h3 { font-size: 23px; line-height: 1.2; }
.shop-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.shop-muted { color: var(--shop-muted); }
.shop-small { font-size: 11px; line-height: 1.65; }
.shop-section { margin-top: 26px; }
.shop-section>h3 { margin-bottom: 12px; }
.shop-topbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--shop-line);
  min-height: 56px;
}
.shop-brand { flex: 1; font-size: 9px; letter-spacing: .1em; text-align: center; }
.shop-back,.shop-icon { min-height: 44px; min-width: 44px; border: 0; background: transparent; color: var(--shop-ink); }
.shop-back { padding: 8px 4px; font-size: 12px !important; }
.shop-icon { font-size: 24px !important; border-radius: 50%; }
.shop-icon[aria-pressed="true"] { color: #464646; background: #e6e6e6; }
.shop-status { font-size: 12px; color: #464646; line-height: 1.6; overflow-wrap: anywhere; }
.shop-status:not(:empty) { margin-top: 14px; padding: 12px; background: #e6e6e6; border-radius: 8px; }
.shop-status a { text-decoration: underline; color: #464646; }
.shop-text-button { border: 0; padding: 10px 0; min-height: 44px; background: transparent; color: #5e5e5e; text-align: left; font-size: 12px !important; text-decoration: underline; text-underline-offset: 4px; }

/* ГАЛЕРЕЯ ПО МАКЕТУ: фото 4:5, подписи снизу и точки перелистывания. */
.detail-layout { background: #e6e6e6; }
.detail-gallery { position: relative; width: min(100%,max(180px,calc((100svh - 430px) * .8))); height: auto; aspect-ratio: 4/5; margin-inline: auto; background: #e6e6e6; }
.detail-gallery>img,.detail-gallery>video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* СМЕНА РАЗМЕРА: предыдущее фото остаётся поверх нового до его загрузки. */
.detail-gallery { overflow: hidden; isolation: isolate; }
.detail-gallery>.detail-photo-outgoing { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gallery-labels,.gallery-navigation,.gallery-dots { z-index: 2; }
.size-option { transition: background-color .2s,border-color .2s,box-shadow .2s,transform .2s; }
.size-option:active { transform: scale(.97); }
.detail-image-error { display: grid; place-content: center; height: 100%; padding: 30px; text-align: center; color: #606060; font-size: 14px; background: radial-gradient(ellipse,#e6e6e6,#e6e6e6); }
.gallery-labels { position: absolute; bottom: 58px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.gallery-labels>* { border: 0; border-radius: 30px; background: #f2f2f2ed; padding: 9px 12px; font-size: 11px; pointer-events: auto; }
.gallery-navigation { position: absolute; bottom: 8px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; }
.gallery-navigation button { pointer-events: auto; }
.gallery-dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.gallery-dots button { display: grid; place-items: center; width: 32px; min-height: 44px; border: 0; background: transparent; padding: 0; }
.gallery-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; border: 1px solid #5d5d5d; }
.gallery-dots button[aria-current="true"]::before { background: #464646; }
.gallery-navigation button { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #f2f2f2ed; }
#gallery-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.detail-info { padding: 18px 20px 28px; background: var(--shop-bg); }
.detail-info h2 { margin: 10px 0 16px; }
.detail-availability { color: #464646; font-size: 12px; font-weight: 500; }
.product-preview { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 10px 16px; min-height: 44px; border: 1px solid #e6e6e6; border-radius: 24px; background: #f2f2f2ed; color: #464646; font-size: 11px; }

/* ОБЪЁМЫ: действительные цены и отдельные фото каждого размера. */
.shop-fieldset { padding: 0; margin: 18px 0 0; border: 0; min-width: 0; }
.shop-fieldset legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 500; }
.detail-variants { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.size-option { display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; border: 1px solid var(--shop-line); border-radius: 9px; background: transparent; color: var(--shop-ink); text-align: left; min-height: 68px; }
.size-option span,.size-option small { font-size: 11px; }
.size-option strong { font-size: 17px; }
.size-option[aria-pressed="true"] { border-color: #6c6c6c; background: #e6e6e6; box-shadow: inset 0 0 0 1px #6c6c6c; }
.size-on-request { border-style: dashed; }
.size-on-request strong { font-size: 12px; font-weight: 500; }
.size-on-request small { color: var(--shop-muted); font-size: 9px; }

/* ДОПОЛНЕНИЯ И КОМПЛЕКТАЦИЯ: крупные области нажатия вместо мелких галочек. */
.extra-option { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--shop-line); cursor: pointer; }
.extra-option input,.shop-check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--shop-accent); }
.extra-option strong { display: block; font-weight: 500; font-size: 13px; }
.extra-option small { display: block; margin-top: 5px; color: var(--shop-muted); font-size: 11px; line-height: 1.6; }
.included-note { display: flex; align-items: flex-start; gap: 12px; padding: 18px; margin-top: 20px; background: #e6e6e6; border-radius: 9px; font-size: 12px; }
.included-note strong,.included-note small { display: block; margin-top: 5px; font-weight: 400; }
.included-note small { color: var(--shop-muted); font-size: 10px; }
.shop-accordions { margin-top: 20px; }
.shop-accordions details { border-bottom: 1px solid var(--shop-line); }
.shop-accordions summary { padding: 17px 0; cursor: pointer; font-size: 12px; font-weight: 500; }
.shop-accordions details p { margin-bottom: 14px; color: var(--shop-muted); font-size: 12px; line-height: 1.7; }
.shop-accordions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.shop-accordions summary::-webkit-details-marker,.checkout-step summary::-webkit-details-marker { display: none; }
.shop-accordions summary::after,.checkout-step>summary::after { content: '+'; flex: none; font-family: var(--sans); font-size: 20px; font-weight: 400; }
.shop-accordions details[open]>summary::after,.checkout-step[open]>summary::after { content: '−'; }
/* ПАМЯТКА: пронумерованные шаги внутри аккордеона карточки букета. */
.care-steps { display: grid; gap: 14px; margin: 0 0 18px; padding-left: 22px; color: var(--shop-muted); font-size: 12px; line-height: 1.7; }
.care-steps li::marker { color: var(--shop-accent); font-weight: 600; }
.care-steps strong { display: block; margin-bottom: 3px; color: var(--shop-ink); font-weight: 500; }
.shipped-photos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shipped-photos figure { flex: 0 0 120px; scroll-snap-align: start; }
.shipped-photos img { width: 120px; height: 145px; object-fit: cover; border-radius: 8px; }
.shipped-photos figcaption { padding-top: 6px; font-size: 10px; }

/* НИЖНЯЯ ПАНЕЛЬ: вне прокручиваемой области, учитывает safe-area телефона. */
.shop-bottom { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--shop-bg); border-top: 1px solid var(--shop-line); }
.shop-primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px; border: 1px solid var(--shop-accent); border-radius: 9px; background: var(--shop-accent); color: #ffffff; font-size: 13px !important; }
.shop-primary:hover { background: #464646; }
.shop-primary strong { white-space: nowrap; font-weight: 500; }
.product-bottom-bar .shop-primary { flex: 1; }
.product-chat-links { display: flex; gap: 5px; }
.product-chat-links a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 48px; padding: 3px; color: #464646; }
.product-chat-links .icon { width: 23px; height: 23px; }
.product-chat-links span { font-size: 8px; }

/* ОФОРМЛЕНИЕ: один лист, поля и детали расположены в последовательности заказа. */
#checkout-form { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.checkout-content { padding: 22px 20px 28px; }
.shop-intro { margin-top: 8px !important; font-size: 12px; }
.order-summary { display: flex; gap: 16px; align-items: center; padding: 20px 0 10px; }
.order-summary img { flex: none; width: 72px; height: 88px; border-radius: 8px; object-fit: cover; background: #e6e6e6; }
.order-summary h3 { font-size: 21px; margin-bottom: 6px; }
.order-summary strong { font-size: 14px; }
.order-summary p { margin-top: 5px; }
.checkout-vase { padding: 12px; background: #e6e6e6; border: 0; border-radius: 8px; margin-top: 10px; }
.shop-label { display: grid; gap: 7px; margin-top: 14px; color: #5c5c5c; font-size: 11px; }
.shop-label input,.shop-label textarea,.order-copy-text {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--shop-line); border-radius: 8px; padding: 12px;
  background: #ffffff; color: var(--shop-ink); font: inherit; font-size: 16px; line-height: 1.5;
}
.shop-label textarea { resize: vertical; }
.shop-label input[aria-invalid="true"] { border-color: #5a5a5a; }
.shop-label textarea:disabled { opacity: .5; }
.shop-field-pair { display: grid; gap: 0 12px; }
.shop-check { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; font-size: 12px; cursor: pointer; }
.shop-check small { display: block; color: var(--shop-muted); font-size: 10px; margin-top: 5px; }
.reminder-check { margin-top: 12px; padding: 14px; background: #e6e6e6; border: 1px solid #e6e6e6; border-radius: 8px; }
.shop-consent { color: #5c5c5c; font-size: 10px; }
.shop-consent a { text-decoration: underline; }
.checkout-bottom .shop-primary { width: 100%; }
.checkout-totals { margin: 26px 0 20px; padding: 18px 0; border-block: 1px solid var(--shop-line); }
.checkout-totals>div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.checkout-totals>div strong { font-size: 18px; white-space: nowrap; }
.checkout-totals p { color: var(--shop-muted); font-size: 10px; line-height: 1.6; margin-top: 12px; }

/* ОТКРЫТКА, СЛОТЫ И КАНАЛЫ: кнопки и переключатели с зоной касания от 44 px. */
.theme-chips,.slot-chips,.channel-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.theme-chips button,.slot-chips button { min-height: 44px; border: 1px solid var(--shop-line); border-radius: 24px; background: transparent; padding: 9px 13px; color: var(--shop-ink); font-size: 11px !important; }
.theme-chips button[aria-pressed="true"],.slot-chips button[aria-pressed="true"] { background: #e6e6e6; border-color: #6f6f6f; color: #464646; }
.channel-options label { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--shop-line); border-radius: 8px; font-size: 11px; cursor: pointer; }
.channel-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--shop-accent); }
.channel-options .icon { width: 17px; height: 17px; }
.channel-options label:has(input:checked) { border-color: #6f6f6f; background: #e6e6e6; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border: 1px solid var(--shop-line); border-radius: 10px; background: #e6e6e6; }
.segmented-control label { display: flex; align-items: center; justify-content: center; min-height: 48px; gap: 6px; padding: 9px; border-radius: 6px; cursor: pointer; font-size: 11px; text-align: center; }
.segmented-control input { width: 15px; height: 15px; accent-color: var(--shop-accent); }
.segmented-control .is-active { background: #ffffff; box-shadow: 0 2px 6px #00000011; }
.surprise-note { margin-top: 14px !important; padding: 14px; border-radius: 8px; background: #e6e6e6; font-size: 12px; line-height: 1.7; color: #464646; }
.order-copy-text { display: block; height: 150px; margin: 12px 0; font-size: 12px; }

/* АВТОСВОРАЧИВАЕМОЕ ОФОРМЛЕНИЕ: один открытый раздел вместо длинного списка полей. */
.checkout-step { margin-top: 14px; border: 1px solid var(--shop-line); border-radius: 10px; background: #ffffff55; }
.checkout-step>summary { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 15px 14px; list-style: none; cursor: pointer; font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.checkout-step>summary::after { margin-left: auto; }
.checkout-step-number { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid #e6e6e6; border-radius: 50%; font: 10px var(--sans); color: #6c6c6c; }
.checkout-step[open] { background: #ffffff; border-color: #e6e6e6; }
.checkout-step-content { padding: 0 14px 16px; }
.checkout-step-content .shop-section { margin-top: 0; }

/* ПЛАНШЕТЫ И ДЕСКТОП: та же логика в окне, галерея и описание рядом. */
@media(min-width:700px) {
  .shop-dialog { inset: 24px; width: min(1000px,calc(100% - 48px)); height: calc(100dvh - 48px); max-height: calc(100dvh - 48px); margin: auto; border-radius: 16px; box-shadow: 0 24px 100px #00000066; }
  .detail-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .detail-gallery { position: sticky; top: 0; width: 100%; height: auto; aspect-ratio: 4/5; max-height: 70dvh; }
  .detail-info { padding: 26px; }
  .shop-dialog h2 { font-size: 38px; }
  .shop-topbar { padding-inline: 24px; }
  .shop-bottom { padding-inline: 26px; }
  .product-chat-links { gap: 16px; }
  .product-chat-links a { flex-direction: row; gap: 8px; }
  .product-chat-links span { font-size: 12px; }
  .product-bottom-bar .shop-primary { margin-left: auto; flex: 0 1 350px; }
  .checkout-dialog { width: min(650px,calc(100% - 48px)); }
  .checkout-content { padding: 28px 36px; }
  .shop-field-pair { grid-template-columns: 1fr 1fr; }
}
@media(max-width:359px) {
  .detail-info,.checkout-content { padding-inline: 16px; }
  .shop-dialog h2 { font-size: 29px; }
  .shop-bottom { padding-inline: 10px; gap: 6px; }
  .shop-primary { padding-inline: 12px; font-size: 11px !important; }
  .shop-brand { font-size: 8px; letter-spacing: 0; }
}
@media(prefers-reduced-motion:reduce) {
  .shop-dialog * { scroll-behavior: auto; }
  .size-option { transition: none; }
  .size-option:active { transform: none; }
}

}
