/* B-Cool — мобильный слой. Грузится последним, поэтому перекрывает инлайновые
   стили страниц. Правила: ничего шире экрана, блок = один экран (844px),
   шрифт ≥13px, тап-таргет ≥44px. Проверяется tools/mobile-audit.js. */

@media (max-width: 700px) {

  /* ---------- шапка: логотип сжимается, бургер всегда внутри экрана ---------- */
  .nav { gap: 8px; flex-wrap: nowrap; }
  .logo {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 15px;
  }
  .nav-call { display: none; }
  .lang {
    margin-left: 0; flex: none;
    min-height: 40px; display: inline-flex; align-items: center;
    padding: 6px 12px; font-size: 13px;
  }
  .burger {
    flex: none; display: block;
    min-width: 44px; min-height: 44px;
    font-size: 22px; line-height: 1;
    background: none; border: 0; padding: 0;
  }

  /* ---------- ничего не шире экрана ---------- */
  .steps,
  .why-g, .quote-g, .foot, .paths,
  .studio, .ba-g, .studio-t, .pj-close { grid-template-columns: minmax(0, 1fr) !important; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  img, video, canvas, table { max-width: 100%; }

  /* ---------- таблица сравнения → карточки (иначе колонки срезаны) ---------- */
  .tbl { border: 0; display: block; }
  .tbl thead { display: none; }
  .tbl tbody, .tbl tr, .tbl td { display: block; width: 100% !important; }
  .tbl tr {
    border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: 10px; overflow: hidden; background: #fff;
  }
  .tbl td {
    border: 0; border-top: 1px solid var(--line);
    display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
    padding: 9px 14px; font-size: 14px; text-align: right;
  }
  .tbl td:first-child {
    background: #F1F8EC; font-weight: 700; border-top: 0;
    display: block; text-align: left; font-size: 15px;
  }
  .tbl td[data-label]::before {
    content: attr(data-label);
    color: var(--mut); font-size: 12.5px; font-weight: 600;
    flex: 0 0 44%; text-align: left;
  }
  .tbl td.our {
    background: #F1F8EC; border-left: 3px solid var(--lime); border-right: 0;
    font-weight: 700;
  }
  .tbl td.our[data-label]::before { color: var(--lime-d); }
  /* четыре варианта — сеткой 2×2, иначе карточка растёт на пол-экрана */
  .tbl tr {
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .tbl td:first-child { grid-column: 1 / -1; }
  .tbl td {
    display: flex; justify-content: space-between; gap: 6px; align-items: baseline;
    text-align: right; line-height: 1.32;
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
    padding: 6px 10px; font-size: 13px;
  }
  .tbl td[data-label]::before { font-size: 11.5px; }
  .tbl td:first-child { padding: 7px 12px; font-size: 14px; }
  .tbl td:nth-child(2), .tbl td:nth-child(4) { border-left: 0; }
  .tbl td[data-label]::before {
    flex: 0 1 auto; text-align: left; margin: 0;
  }
  /* подсказка о свайпе таблицы больше не нужна — таблица стала карточками */
  .tbl-hint, .wrap > div.swipe-hint { display: none; }

  /* ---------- смысловой блок = один экран: длинные ряды карточек свайпом ---------- */
  #services .cards {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 10px; -webkit-overflow-scrolling: touch;
  }
  #services .cards .card { flex: 0 0 76vw !important; scroll-snap-align: start; }
  #services .cfaces { height: 168px; }

  #paths .paths {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px;
  }
  #paths .path { flex: 0 0 82vw; scroll-snap-align: start; }
  #paths .path.best { transform: none; }

  /* компактнее там, где блок всё ещё перерастает экран */
  section { padding: 40px 0; }
  #ba { padding: 32px 0; }
  #ba .ba-slider { min-height: 240px; }
  #ba .ba-side figure img { height: 150px; }
  .quote .form { padding: 22px 18px; }
  .q-points { gap: 9px; }
  .q-points li { font-size: 14px; }

  /* ---------- читаемость: мелкий шрифт запрещён ---------- */
  .p-fine, .p-unit, .of-pill, .f-note, .legal, .mix-note, .t-fine,
  .p-more summary, .faq details p, .step p, .card p, .foot p,
  .ba-side figcaption, .mix-hint, #binder,
  .p-list li, .p-list li span, .p-5y, .verdict { font-size: 13px !important; }
  .sub { font-size: 15.5px; }

  /* ---------- футер: две колонки вместо одной длинной ленты ---------- */
  .foot { grid-template-columns: 1fr 1fr !important; gap: 18px 14px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  footer { padding: 32px 0 96px; }
  .foot h4 { margin-bottom: 6px; }

  /* ---------- форма заявки компактнее ---------- */
  .quote { padding: 36px 0; }
  .quote .sub { margin-bottom: 20px; }
  .form input, .form select, .form textarea { padding: 11px 12px; margin-bottom: 10px; }
  .form .btn { padding: 14px 20px; }

  /* бренд-ссылка тоже палец */
  .logo { min-height: 44px; display: inline-flex; align-items: center; gap: .3em; }

  /* ---------- палец: тап-таргеты не меньше 44px ---------- */
  .nav-links a, .mnav a, footer a, .foot a,
  .preset, .sct, .p-more summary { min-height: 44px; display: flex; align-items: center; }
  .foot a { padding: 2px 0; }
  .mix-b, .mix-x { width: 40px; height: 40px; }
  .sw { min-height: 40px; }
  .pat-color { width: 30px; height: 30px; }

  /* нижняя панель: подписи в одну строку */
  .mbar a { font-size: 13px; white-space: nowrap; padding: 12px 6px; }

  /* ---------- студия цвета ---------- */
  .mix-top { grid-template-columns: 130px minmax(0, 1fr) !important; }
  .sw-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .presets { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sc-tabs { flex-wrap: wrap; }
  .sample-form { height: auto !important; margin-top: 12px !important; }

  /* остатки мелкого текста и мелких целей */
  .p-chip { font-size: 12px !important; }
  .sample-form p, .pcard b, .gal2 b, .p-more p { font-size: 13px !important; }
  .pat-color { width: 36px; height: 36px; }
  .pat-colors { flex-wrap: wrap !important; }
  .chip, .filters button, .filters a { min-height: 40px; display: inline-flex; align-items: center; }
  .mix-b, .mix-x { flex: none; }
  .sample-form button, .form .btn, .bcode-box button { min-height: 44px; }
  .fs-note { font-size: 13px !important; }
  .mix-b, .mix-x { width: 36px; height: 36px; }
  .mix-row { gap: 6px; padding: 5px 8px; }
  .mix-p { min-width: 38px; font-size: 13px; }
  .mix-row i { width: 18px; height: 18px; }
  #compare { padding: 30px 0; }
  #compare h2 { font-size: 25px; }
  #compare .sub { margin-bottom: 16px; }
  /* инлайновые стили в футере перебиваем — иначе ссылки высотой 17px */
  footer a { min-height: 40px !important; display: inline-flex !important; align-items: center; }
  .p-chip { font-size: 13px !important; }
  /* хлебные крошки, фильтры каталога, контактные ссылки — под палец */
  .crumbs a, .breadcrumbs a, nav.crumbs a,
  a[href^="tel:"], a[href^="sms:"], a[href^="https://wa.me"],
  .filters button, .gal-filters button, .chips button, button.on {
    min-height: 36px !important; display: inline-flex !important; align-items: center;
  }
  .filters button, .chips button, button.on { padding: 6px 14px; }
  /* фильтры галереи проектов (button[data-f]) */
  button[data-f] { min-height: 36px !important; display: inline-flex !important; align-items: center; padding: 6px 14px; }
}

/* === аккуратный масштаб: калибровка по эталону Smile Boutique mobile ===
   Мельче, ровнее, ничего на пол-экрана. Кнопки одной ширины, без эмодзи. */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .nav { height: 54px; }
  .logo { font-size: 13.5px; }
  .lang { min-height: 34px; padding: 4px 10px; font-size: 12px; }
  .burger { min-width: 40px; min-height: 40px; font-size: 20px; }
  header::after, footer::before { display: none; }

  .hero-in { padding: 40px 20px 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,30,36,.84) 0%, rgba(8,30,36,.62) 60%, rgba(8,30,36,.45) 100%); }
  .kicker { font-size: 11px; padding: 4px 10px; margin-bottom: 12px; }
  .hero h1 { font-size: 23px; margin-bottom: 10px; }
  .hero p { font-size: 14.5px; margin-bottom: 16px; }
  .hero-note { font-size: 12px; }
  h2 { font-size: 20px; margin-bottom: 8px; }
  .sec-k { font-size: 10.5px; margin-bottom: 6px; }
  .sub { font-size: 14px; margin-bottom: 20px; }

  .btn { width: 100%; margin: 0; padding: 12px 16px; font-size: 14px; border-radius: 10px; }
  .btn + .btn, .btn ~ .btn { margin-top: 8px; }
  .hero-ctas { flex-direction: column; gap: 8px; }
  .pj-btns { flex-direction: column; gap: 8px; width: 100%; }
  a.btn[style] { margin-left: 0 !important; }

  .trust .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 14px; padding-bottom: 14px; }
  .trust b { font-size: 15px; }
  .trust div { font-size: 11.5px; line-height: 1.35; }

  .card h3, .step h3 { font-size: 15.5px; }
  .p-price { font-size: 24px; }
  .p-chip { font-size: 11px; }
  .form h3 { font-size: 16px; }
  .form input, .form select, .form textarea { padding: 11px 12px; font-size: 14px; margin-bottom: 10px; }
  .form label { font-size: 12px; }
  .q-points li { font-size: 13px; }
  .faq summary { font-size: 14.5px; padding: 14px 16px; }
  .checks li { font-size: 14px; }
  .tick { flex: 0 0 22px; height: 22px; font-size: 12px; }

  .mbar { padding: 8px 10px; gap: 8px; }
  .mbar a { font-size: 13px; font-weight: 600; padding: 10px 4px; border-radius: 10px; text-align: center !important; display: block; }

  .studio-h h1 { font-size: 21px; }
  .studio-h p { font-size: 13px; }
  .sample-form button { width: 100%; }
}

/* === ПЛОТНОСТЬ (правка владельца): блок = один экран айфона, как у оригинала.
   Ничего обрезанного, ноль пустых полос. Этот слой ниже — перекрывает всё выше. === */
@media (max-width: 700px) {
  body { font-size: 14px; }
  section { padding: 24px 0 !important; }
  h2 { font-size: 19px; margin-bottom: 6px; }
  .sub { font-size: 13.5px; margin-bottom: 14px; line-height: 1.45; }
  .sec-k { font-size: 10px; margin-bottom: 4px; }

  /* герой + трастбар = один экран */
  .hero-in { padding: 22px 20px 26px; }
  .hero h1 { font-size: 20px; margin-bottom: 8px; }
  .hero p { font-size: 13.5px; margin-bottom: 12px; line-height: 1.5; }
  .kicker { font-size: 10.5px; margin-bottom: 10px; padding: 4px 9px; }
  .btn { padding: 10px 14px; font-size: 13.5px; border-radius: 9px; }
  .hero-ctas { gap: 6px; }
  .hero-note { margin-top: 10px; font-size: 11px; }
  .trust .wrap { padding-top: 10px; padding-bottom: 10px; gap: 6px 10px; }
  .trust b { font-size: 13.5px; }
  .trust div { font-size: 10.5px; line-height: 1.3; }

  /* услуги: сетка 2×4 — все 8 видны, без горизонтального свайпа */
  #services .cards { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px; overflow: visible; padding-bottom: 0; }
  #services .cards .card { flex: none !important; width: auto; }
  #services .cfaces { height: 86px; }
  .card div { padding: 8px 10px 10px; }
  .card h3 { font-size: 13px; margin-bottom: 2px; }
  .card p { display: none; }
  .card span { margin-top: 2px; font-size: 11.5px; }

  /* три пути: вертикально и сжато, без обрезанных карточек */
  #paths .paths { display: grid !important; grid-template-columns: 1fr !important; gap: 10px; overflow: visible; }
  #paths .path { flex: none; width: auto; padding: 14px 16px; }
  .p-chip { font-size: 10px; }
  .p-price { font-size: 20px; }
  .p-unit { font-size: 11px !important; }
  .p-list { gap: 4px; }
  .p-list li, .p-list li span { font-size: 12px !important; line-height: 1.35; }
  .p-5y { font-size: 12px !important; padding: 8px 10px; }
  .p-fine { font-size: 11px !important; }

  /* карусель проектов: ниже и плотнее */
  .pj-row img { height: 92px; width: 140px; border-radius: 10px; }
  .pj-row { gap: 8px; }
  .pj-marq { gap: 8px; margin: 12px 0; }
  .pj-close { padding: 12px 14px; gap: 8px; }
  .pj-close p { font-size: 13px; }

  /* before/after и тизер студии */
  #ba .ba-slider { min-height: 200px; }
  #ba .ba-side figure img { height: 100px; }
  .ba-side figcaption { font-size: 11.5px !important; }
  #blendMini { height: 150px; }
  .t-fine { font-size: 11px !important; margin-top: 6px; }

  /* шаги, чеки, сравнение */
  .steps { gap: 8px; }
  .step { padding: 13px 14px; }
  .step h3 { font-size: 14px; }
  .step p { font-size: 12px !important; }
  .checks { gap: 8px; }
  .checks li { font-size: 13px; gap: 9px; }
  .tbl tr { margin-bottom: 8px; }
  .tbl td { font-size: 12px; padding: 5px 9px; }
  .tbl td:first-child { font-size: 13px; padding: 6px 10px; }

  /* форма, faq, футер */
  .form { padding: 16px 14px; }
  .form input, .form select, .form textarea { padding: 10px 11px; margin-bottom: 8px; font-size: 13.5px; }
  .form h3 { font-size: 15px; }
  .q-points { gap: 6px; }
  .q-points li { font-size: 12.5px; }
  .faq summary { font-size: 13.5px; padding: 11px 13px; }
  .faq details p { padding: 0 13px 12px; font-size: 12.5px !important; }
  .foot { gap: 12px 10px; }
  footer { padding: 22px 0 84px; font-size: 12.5px; }
  .foot p { font-size: 12px !important; }
  .mbar a { font-size: 12.5px; padding: 9px 4px; }
  .mbar { padding: 6px 8px; gap: 6px; }
}

@media (max-width: 700px) {
  /* строка-шапка таблицы не нужна в карточном виде */
  .tbl tr:first-child { display: none; }
}

/* === калибровка по Mobbin (Thumbtack iOS): титул + текст, без декоративных
   кикеров; один визуальный ритм 16/24; CTA 44-48px === */
@media (max-width: 700px) {
  .sec-k { display: none; }
  h2 { font-size: 20px; line-height: 1.22; }
  .sub { font-size: 13px; margin-bottom: 12px; }
  .wrap { padding: 0 16px; }
  .btn { padding: 12px 14px; }
  .hero-ctas .btn-ghost { padding: 9px 14px; font-size: 13px; }
}

/* === копия паттернов Airbnb (Mobbin, explore cards) — не самодеятельность ===
   Карточка: фото r12 + подпись 13.5/600 + мета 12 muted. Без коробок, рамок,
   теней и «Learn more». Секция: заголовок одной строкой, суб 12.5 в 2 строки. */
@media (max-width: 700px) {
  h2 { font-size: 17px; font-weight: 700; }
  .sub { font-size: 12.5px; margin-bottom: 12px; }

  #services .cards { gap: 16px 12px; }
  .card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .card:hover { transform: none; box-shadow: none; }
  #services .cfaces { height: 118px; }
  .cfaces img, .card > img { border-radius: 12px; }
  .card div { padding: 7px 2px 0; }
  .card h3 { font-size: 13.5px; font-weight: 600; margin: 0; line-height: 1.3; }
  .card div > span { display: none; }
  .card .cflip { display: block; }

  /* бургер-меню: аккуратно в пол экрана, две колонки */
  #mnav { padding: 10px 16px calc(76px + env(safe-area-inset-bottom)); }
  #mnav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-content: start; }
  #mnav .mn-k { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 10px; }
  #mnav a { font-size: 14px; padding: 8px 2px; }
  #mnav .mn-call { grid-column: 1 / -1; margin-top: 12px; gap: 8px; }
  #mnav .mn-call a { padding: 11px; font-size: 14px; border-radius: 9px; }

  /* кнопки: как airbnb primary — 48px, r8, одна на экран доминирует */
  .btn { border-radius: 8px; }
}

/* === меню: одна колонка по донору Thumbtack (строки-список 40px, вес 500,
   волосяные разделители). Переносы запрещены везде. === */
@media (max-width: 700px) {
  #mnav.open { display: block; padding: 4px 16px calc(76px + env(safe-area-inset-bottom)); }
  #mnav a { font-size: 14.5px; font-weight: 500; padding: 11px 2px; white-space: nowrap; }
  #mnav .mn-k { font-size: 10px; font-weight: 600; margin: 12px 0 0; color: #8A958C; }
  #mnav .mn-call { display: flex; margin-top: 14px; gap: 8px; }
  #mnav .mn-call a { text-align: center !important; font-weight: 600; padding: 12px; white-space: nowrap; }

  /* никаких переносов в названиях карточек */
  .card h3 { font-size: 12.5px; white-space: nowrap; }
  .mbar a { text-align: center !important; }
}

/* === меню лендинга = меню бкула (размер, вес, разделители, бургер) === */
@media (max-width: 700px) {
  #mnav { padding: 8px 18px calc(76px + env(safe-area-inset-bottom)); }
  #mnav a { font-size: 17px; font-weight: 400; color: #222; padding: 14px 2px; border-bottom: 1px solid #eee; }
  #mnav .mn-k { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: #9aa39c; margin: 14px 0 0; }
  #mnav .mn-call { margin-top: 16px; gap: 10px; }
  #mnav .mn-call a { font-size: 16px; font-weight: 600; color: #fff; padding: 14px; border-radius: 10px; border-bottom: 0; }
  /* бургер: три линии, без рамки-пилюли */
  .burger { border: 0 !important; background: none !important; border-radius: 0; color: transparent; font-size: 0 !important; position: relative; min-width: 44px; min-height: 44px; }
  .burger::before { content: ""; position: absolute; left: 8px; right: 8px; top: 21px; height: 2.5px; background: #14343a; box-shadow: 0 -8px 0 #14343a, 0 8px 0 #14343a; }
}

/* === правка владельца: меню белое, буквы вдвое меньше, всё в один экран === */
@media (max-width: 700px) {
  #mnav { background: #fff !important; padding: 2px 18px calc(10px + env(safe-area-inset-bottom)); }
  #mnav a { font-size: 12.5px; padding: 5.5px 2px; line-height: 1.25; min-height: 0; display: block; }
  #mnav .mn-call a { min-height: 0; }
  #mnav .mn-k { font-size: 9px; margin: 6px 0 0; line-height: 1.3; }
  #mnav .mn-call { margin-top: 8px; gap: 8px; }
  #mnav .mn-call a { font-size: 13px; padding: 9px; border-radius: 9px; }
}

/* === точная копия образца (bm-drawer классики): 15px/500, разделители #eee,
   кнопки-полосы #4b6b52 и #25D366. Поля строк -3px от образца, чтобы 17
   пунктов уместились в один экран. === */
@media (max-width: 700px) {
  #mnav a { font-size: 15px; font-weight: 500; line-height: 1.3; color: #222; padding: 8.5px 2px; border-bottom: 1px solid #eee; }
  #mnav .mn-k { font-size: 10px; color: #9aa39c; margin: 7px 0 0; }
  #mnav .mn-call { flex-direction: column; gap: 9px; margin-top: 12px; }
  #mnav .mn-call a { width: 100%; font-size: 15px; font-weight: 600; padding: 13px; border-radius: 9px; background: #4b6b52; color: #fff; }
  #mnav .mn-call a.lime { background: #25D366; }
}

/* кнопки меню: текст строго по центру, WhatsApp зелёный как на образце */
@media (max-width: 700px) {
  #mnav .mn-call a { text-align: center !important; display: block; }
  #mnav .mn-call a.lime { background: #25D366 !important; }
}

/* кнопки меню — flex-центровка (display:flex из тап-таргетов игнорирует text-align) */
@media (max-width: 700px) {
  #mnav .mn-call a { display: flex !important; justify-content: center !important; align-items: center !important; }
}

/* правка владельца: вес обычный, кегль -15% */
@media (max-width: 700px) {
  #mnav a { font-weight: 400; font-size: 12.8px; }
}

/* === сравнение путей: карусель по образцу Смайл Бутик — наш в центре,
   соседи выглядывают по бокам, свайп + стрелки === */
@media (max-width: 700px) {
  #paths { position: relative; }
  #paths .paths { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 13vw 10px; scroll-padding: 0 13vw; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #paths .paths::-webkit-scrollbar { display: none; }
  #paths .path { flex: 0 0 72vw; scroll-snap-align: center; width: auto; }
  .pth-ar { position: absolute; top: 54%; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd; background: rgba(255,255,255,.92); font-size: 20px; line-height: 1; color: #14343a; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .pth-l { left: 6px; } .pth-r { right: 6px; }
}
@media (min-width: 701px) { .pth-ar { display: none; } }

/* рамка-селектор центральной карточки: объёмная, с тенью */
@media (max-width: 700px) {
  .sel-frame { position: absolute; z-index: 4; pointer-events: none; opacity: 0;
    border: 3px solid #E05B4B; border-radius: 19px;
    box-shadow: 0 14px 34px rgba(224,91,75,.28), 0 5px 16px rgba(0,0,0,.16); }
  .sel-frame.good { border-color: #4FBF2E;
    box-shadow: 0 14px 34px rgba(79,191,46,.30), 0 5px 16px rgba(0,0,0,.16); }
}
@media (min-width: 701px) { .sel-frame { display: none; } }

/* рамка-селектор: краснеет над минус-карточкой */
@media (max-width: 700px) {
  .sel-frame { transition: left .5s cubic-bezier(.2,1,.3,1), top .45s ease, width .45s ease, height .45s ease, border-color .15s, box-shadow .15s; }
}

/* ===== Color Studio: мобильное приложение в один экран ===== */
@media (max-width: 760px) {
  .mapp-hidden { display: none !important; }
  .studio-h { margin: 6px 0 8px; }
  .studio-h h1 { font-size: 17px; white-space: nowrap; }
  .studio-h p { display: none; }
  .studio-wrap { padding: 6px 12px 14px; }

  .mapp { display: flex; flex-direction: column; gap: 8px; }
  .mapp-stage { position: relative; border-radius: 14px; overflow: hidden; background: #E7EAE6; }
  #mScene { width: 100%; height: 216px; display: block; }
  .mapp-code { position: absolute; left: 8px; bottom: 8px; border: 0; border-radius: 8px;
    background: rgba(11,21,18,.72); color: #fff; font: 600 11px Inter, sans-serif;
    padding: 5px 9px; letter-spacing: .02em; }
  .mapp-code.copied::after { content: " ok"; color: #9BE06F; }

  .mapp-bar { display: flex; gap: 7px; }
  .mapp-sel { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); background: #fff;
    border-radius: 10px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; font: 600 13.5px Inter, sans-serif; color: var(--ink); }
  .mapp-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mapp-sel i { width: 0; height: 0; border: 4px solid transparent; border-top-color: #7d8a80; margin-left: 8px; margin-top: 4px; }

  .mapp-wheel { position: relative; align-self: center; width: 172px; height: 172px; }
  #mWheel { width: 172px; height: 172px; display: block; }
  .mapp-hub { position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; pointer-events: none; }
  .mapp-hub b { font: 800 26px Sora, sans-serif; color: var(--ink); line-height: 1; }
  .mapp-hub span { font: 600 10.5px Inter, sans-serif; color: #8A958C; margin-top: 2px; }

  .mapp-mix { min-height: 54px; }
  .mapp-bar-mix { display: flex; height: 34px; border-radius: 9px; overflow: hidden; position: relative; }
  .mseg { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
  .mseg b { font: 700 11.5px Inter, sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
  .mgrip { width: 12px; flex: none; margin: 0 -6px; z-index: 2; cursor: ew-resize; position: relative; touch-action: none; }
  .mgrip::before { content: ""; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 2px;
    transform: translateX(-50%); background: rgba(255,255,255,.9); border-radius: 2px; }
  .mapp-names { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; }
  .mapp-names span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #5C6B60; white-space: nowrap; }
  .mapp-names i { width: 9px; height: 9px; border-radius: 3px; }
  .mapp-empty { font-size: 12.5px; color: #8A958C; text-align: center; padding: 16px 0; }

  .mapp-presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mapp-presets::-webkit-scrollbar { display: none; }
  .mpreset { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
    padding: 5px 8px 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
  .mpreset.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
  .mp-strip { display: flex; width: 62px; height: 20px; border-radius: 5px; overflow: hidden; }
  .mp-strip i { height: 100%; }
  .mpreset em { font: 600 10.5px Inter, sans-serif; font-style: normal; color: var(--ink); white-space: nowrap; }

  .mapp-cta { display: flex; align-items: center; justify-content: center; height: 44px;
    background: var(--lime); color: #fff; border-radius: 10px; font: 700 14px Inter, sans-serif;
    text-decoration: none; white-space: nowrap; }

  /* шторка снизу */
  .msheet { position: fixed; inset: 0; z-index: 200; background: rgba(11,21,18,.42);
    display: none; align-items: flex-end; }
  .msheet.open { display: flex; }
  .msheet-card { width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 0 max(14px, env(safe-area-inset-bottom));
    animation: msheetUp .22s ease-out; max-height: 76vh; overflow-y: auto; }
  @keyframes msheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .msheet-grab { width: 38px; height: 4px; border-radius: 2px; background: #D6DCD7; margin: 0 auto 10px; }
  .msheet-title { font: 700 12px Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase;
    color: #8A958C; padding: 0 18px 6px; }
  .msheet-item { display: flex; width: 100%; align-items: center; justify-content: space-between;
    border: 0; background: none; padding: 13px 18px; font: 500 15.5px Inter, sans-serif;
    color: var(--ink); text-align: left; border-top: 1px solid #F0F3F0; }
  .msheet-item.on { font-weight: 700; color: var(--lime-d); }
  .msheet-item.on::after { content: "✓"; color: var(--lime-d); font-weight: 700; }

  /* текстовый слой уходит под сгиб и сворачивается */
  .ct h2 { font-size: 15px; }
}

/* сворачивающиеся списки цветов и смесей */
.ct-fold { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px; margin: 0 0 10px; }
.ct-fold > summary { cursor: pointer; list-style: none; padding: 12px 0; font: 600 14.5px Inter, sans-serif;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; white-space: nowrap; }
.ct-fold > summary::-webkit-details-marker { display: none; }
.ct-fold > summary::after { content: "+"; color: var(--lime-d); font-weight: 700; font-size: 18px; }
.ct-fold[open] > summary::after { content: "–"; }
.ct-fold > ul { padding-bottom: 14px; }
@media (max-width: 760px) { .ct-fold > summary { font-size: 13.5px; } }

/* шторка с формой заявки */
.msheet-form { padding: 4px 18px 8px; }
.msheet-form .sample-form { background: none; padding: 0; display: block; }
.msheet-form .sample-form h3 { color: var(--ink); font-size: 16px; margin-bottom: 4px; white-space: nowrap; }
.msheet-form .sample-form p { color: #5C6B60; margin-bottom: 10px; }
.msheet-form .sample-form input[type=text], .msheet-form .sample-form input[type=tel] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 13px;
  font: 500 15px Inter, sans-serif; margin-bottom: 9px; }
.msheet-form .sample-form button { width: 100%; height: 46px; border-radius: 10px; font-size: 15px; }

/* мобильное приложение: убираем дубли старого интерфейса */
@media (max-width: 760px) {
  .sc-tabs, .pat-color-row { display: none !important; }
  .mapp [hidden] { display: none !important; }
  .studio-h h1 { font-size: 17px !important; line-height: 1.2; margin: 0; }
  .studio-h { margin: 4px 0 8px !important; }
  #mScene { height: 200px; }
  .mapp-presets { padding-bottom: 0; }
  .mpreset { padding: 4px 7px 5px; }
  .mp-strip { height: 18px; width: 56px; }
}

/* финальная подгонка: всё приложение в один экран айфона */
@media (max-width: 760px) {
  .mapp { gap: 6px; }
  #mScene { height: 182px; }
  .mapp-wheel, #mWheel { width: 164px; height: 164px; }
  .mapp-mix { min-height: 50px; }
  .mapp-bar-mix { height: 32px; }
  .mpreset em { font-size: 10px; }
  .studio-wrap { padding: 4px 12px 12px; }
}

/* ===== перекладка конфигуратора: фото в центре внимания ===== */
@media (max-width: 760px) {
  .mapp { gap: 5px; }
  .mapp-stage { border-radius: 12px; overflow: hidden; }
  #mScene { width: 100%; aspect-ratio: 3 / 2; height: auto; display: block; }
  .mapp.has-pat #mScene { aspect-ratio: 1.9 / 1; }
  .mapp-code { display: none; }
  #presets, .mix-top, .sw-grid, .mix-info { display: none !important; }

  .mapp-patrow { display: flex; align-items: center; gap: 5px; overflow-x: auto;
    scrollbar-width: none; padding: 1px 0; }
  .mapp-patrow[hidden] { display: none; }
  .mapp-patrow::-webkit-scrollbar { display: none; }
  .mpat-lab { flex: none; font: 600 10px Inter, sans-serif; letter-spacing: .06em;
    text-transform: uppercase; color: #8A958C; padding-right: 3px; white-space: nowrap; }
  .mpat { flex: none; width: 26px; height: 26px; border-radius: 7px;
    border: 1.5px solid rgba(0,0,0,.12); padding: 0; }
  .mpat.on { outline: 2.5px solid var(--lime); outline-offset: 1px; border-color: #fff; }

  .mapp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mapp-swatch { flex: none; width: 120px; height: 120px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 3px 12px rgba(19,43,46,.16); }
  #mSwatch { width: 120px; height: 120px; display: block; }
  .mapp-wheel { position: relative; width: 132px; height: 132px; flex: none; margin: 0; }
  #mWheel { width: 132px; height: 132px; display: block; }
  .mapp-hub { display: none; }

  .mapp-mix { min-height: 48px; }
  .mapp-presets { padding: 0; }
}

/* подгонка в экран: режем служебные ряды, фото не трогаем */
@media (max-width: 760px) {
  .mapp { gap: 4px; }
  .mapp-swatch, #mSwatch { width: 112px; height: 112px; }
  .mapp-wheel, #mWheel { width: 122px; height: 122px; }
  .mapp-mix { min-height: 44px; }
  .mapp-bar-mix { height: 30px; }
  .mapp-names span { font-size: 11px; }
  .mpreset { padding: 3px 6px 4px; }
  .mp-strip { height: 16px; width: 52px; }
  .mapp-cta { height: 42px; }
}

/* кольцо слева, образец гранул растянут вправо: без пустоты по центру */
@media (max-width: 760px) {
  .mapp-row { display: flex; align-items: stretch; gap: 10px; justify-content: flex-start; }
  .mapp-wheel, #mWheel { width: 132px; height: 132px; flex: none; }
  .mapp-swatch { flex: 1 1 auto; width: auto; height: 132px; border-radius: 12px; }
  #mSwatch { width: 100%; height: 132px; }
  .mapp-cta { height: 40px; }
}

/* образец и кольцо: одинаковый размер, равные отступы по краям и в центре */
@media (max-width: 760px) {
  /* заголовок остаётся в разметке для поиска, но не занимает экран */
  .studio-h { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .mapp { gap: 3px; }
  .mapp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .mapp-swatch { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
  #mSwatch { width: 100%; height: 100%; }
  .mapp-wheel { width: 100%; height: auto; aspect-ratio: 1; }
  #mWheel { width: 100%; height: 100%; }
  .mapp-presets { padding: 0; }
  .mpreset { padding: 3px 6px 3px; }
  .mp-strip { height: 15px; }
  .mapp-mix { min-height: 42px; }
}

/* складки: специфичность выше инлайнового .ct details, иначе текст липнет к краю */
.ct details.ct-fold { padding: 2px 16px 0; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; margin: 0 0 10px; }
.ct details.ct-fold > summary { padding: 12px 0; }
.ct details.ct-fold > ul { padding: 0 0 14px; }
.ct details.ct-fold[open] { padding-bottom: 2px; }
@media (max-width: 760px) {
  .mapp { gap: 2px; }
  .ct details.ct-fold { padding: 2px 14px 0; }
}

/* доли: полоса-индикатор и степпер выбранного цвета (визуал компактный, тап-зона 44) */
@media (max-width: 760px) {
  .mgrip { display: none; }
  .mseg { transition: box-shadow .15s; }
  .mseg.on { box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 4px rgba(14,59,77,.5); }
  .mapp-names em { font-style: normal; font-size: 10.5px; color: #A7B0A8; margin-left: auto; white-space: nowrap; }
  .mapp-step { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
  .ms-dot { width: 11px; height: 11px; border-radius: 4px; flex: none; }
  .ms-name { font: 600 12.5px Inter, sans-serif; color: var(--ink); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .ms-btn, .ms-del { position: relative; flex: none; border: 1px solid var(--line); background: #fff;
    width: 30px; height: 26px; border-radius: 8px; font: 600 15px Inter, sans-serif;
    color: var(--ink); line-height: 1; padding: 0; }
  .ms-btn::after, .ms-del::after { content: ""; position: absolute; left: 50%; top: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%); }
  .ms-val { font: 700 13px Inter, sans-serif; min-width: 38px; text-align: center; }
  .ms-del { color: #B4543F; border-color: #ECD5CF; }
}

/* подгонка после степпера */
@media (max-width: 760px) {
  .mapp { gap: 1px; }
  .mapp-bar-mix { height: 28px; }
  .mapp-mix { min-height: 0; margin-top: 2px; }
  .mapp-step { margin-top: 4px; }
  .mapp-names { margin-top: 4px; }
  .mpreset { padding: 2px 6px 2px; }
  .mp-strip { height: 14px; }
  .mpreset em { font-size: 9.5px; }
  .mapp-cta { height: 38px; font-size: 13.5px; }
  .mapp-sel { height: 38px; }
}

/* воздух между разделами: 7px, равные отступы у образца и кольца сохранены */
@media (max-width: 760px) {
  .mapp { gap: 7px; }
  .mapp-row { display: flex; justify-content: space-evenly; align-items: center; gap: 0; }
  .mapp-swatch { flex: 0 0 150px !important; width: 150px; height: 150px; aspect-ratio: auto; }
  #mSwatch { width: 150px; height: 150px; }
  .mapp-wheel { flex: 0 0 150px !important; width: 150px; height: 150px; aspect-ratio: auto; }
  #mWheel { width: 150px; height: 150px; }
  .mapp-mix { margin-top: 0; }
  .mapp-step, .mapp-names { margin-top: 6px; }
  .mpreset { padding: 2px 6px 3px; }
  .studio-wrap { padding: 6px 12px 12px; }
}

/* счётчик выбранных цветов в центре кольца */
@media (max-width: 760px) {
  .mapp-hub { display: flex !important; position: absolute; inset: 0;
    flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none; }
  .mapp-hub b { font: 800 19px Sora, sans-serif; color: var(--ink); line-height: 1; white-space: nowrap; }
  .mapp-hub span { font: 600 9.5px Inter, sans-serif; letter-spacing: .07em;
    text-transform: uppercase; color: #8A958C; margin-top: 3px; white-space: nowrap; }
}

/* ползунок доли с точками-делениями и кнопки шага */
@media (max-width: 760px) {
  .mapp-step, .mapp-names { display: none; }
  .ms-head { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
  .ms-dot { width: 11px; height: 11px; border-radius: 4px; flex: none; }
  .ms-name { font: 600 12.5px Inter, sans-serif; color: var(--ink); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .ms-val { font: 800 13px Sora, sans-serif; color: var(--ink); flex: none; }
  .ms-del { flex: none; width: 26px; height: 22px; border: 1px solid #ECD5CF; background: #fff;
    color: #B4543F; border-radius: 7px; font-size: 14px; line-height: 1; padding: 0; }

  .ms-ctl { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .ms-btn { flex: none; width: 40px; height: 30px; border: 1px solid var(--line); background: #fff;
    border-radius: 9px; font: 600 17px Inter, sans-serif; color: var(--ink); line-height: 1; padding: 0; }
  .ms-btn:active { background: #F1F8EC; border-color: var(--lime); }
  .ms-track { position: relative; flex: 1 1 auto; min-width: 0; height: 30px; }
  .ms-ticks { position: absolute; left: 9px; right: 9px; top: 14px; height: 3px;
    display: flex; justify-content: space-between; pointer-events: none; }
  .ms-ticks i { width: 3px; height: 3px; border-radius: 50%; background: #C9D2CA; }
  .ms-range { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0;
    -webkit-appearance: none; appearance: none; background: none; }
  .ms-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
    background: #E2E8E0; margin-top: 13px; }
  .ms-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%; background: #fff;
    border: 2.5px solid var(--lime); box-shadow: 0 2px 6px rgba(19,43,46,.25); margin-top: -9px; }
  .ms-range::-moz-range-track { height: 4px; border-radius: 2px; background: #E2E8E0; }
  .ms-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff;
    border: 2.5px solid var(--lime); box-shadow: 0 2px 6px rgba(19,43,46,.25); }

  /* место под новый ряд */
  .mapp { gap: 6px; }
  .mapp-swatch { flex: 0 0 138px !important; width: 138px; height: 138px; }
  #mSwatch { width: 138px; height: 138px; }
  .mapp-wheel { flex: 0 0 138px !important; width: 138px; height: 138px; }
  #mWheel { width: 138px; height: 138px; }
  .mapp-hub b { font-size: 17px; }
  .mapp-bar-mix { height: 26px; }
  .mapp-sel { height: 36px; }
  .mpreset { padding: 2px 6px 2px; }
}

/* добор высоты под ползунок */
@media (max-width: 760px) {
  .mapp { gap: 5px; }
  .ms-head { margin-top: 4px; }
  .ms-ctl { margin-top: 2px; }
  .mp-strip { height: 13px; }
  .mpreset em { font-size: 9px; }
}
