/* IGO SERVICE — единый визуальный слой для каталога и главной */
:root {
  --igo-cream:#f8f7f3;
  --igo-gold:#ffca28;
  --igo-gold-deep:#b88600;
  --igo-ink:#1a1b1d;
  --igo-subtle:#666b70;
  --igo-border:#e9e7df;
}
html { scroll-padding-top:90px; }
body { background:var(--igo-cream); }
a,button { -webkit-tap-highlight-color:transparent; }
:where(button,a,input,select):focus-visible { outline:3px solid #d4a300; outline-offset:3px; }
:where(.choice-card,.category-card,.collection-card,.card,.news-card,.repair-card) { transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }

/* Original logo, never cropped or reconstructed */
.site-header .brand { display:flex;align-items:center;justify-content:flex-start;overflow:visible;min-width:128px;width:128px;height:68px; }
.site-header .brand img { position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;mix-blend-mode:normal; }
body:has(#cards) header .logo { overflow:visible; }
body:has(#cards) header .logo img { object-fit:contain; }

/* Desktop first screen: warm white, not a heavy dark panel */
@media(min-width:761px) {
  .choice-hero {
    display:block;min-height:0;margin-top:22px;padding:0;border:1px solid #ece8d9;
    background:radial-gradient(ellipse at 93% 8%,#ffe9a8 0,transparent 38%),linear-gradient(140deg,#ffffff 0%,#fffdf7 70%,#fff4d7 100%);
    color:var(--igo-ink);box-shadow:0 22px 56px #43350a0c;
  }
  .choice-hero::before { left:auto;top:-190px;right:-220px;background:radial-gradient(circle,#ffd25a40,transparent 67%); }
  .choice-main { max-width:100%;padding:68px clamp(28px,5vw,78px) 64px; }
  .choice-main h1 { max-width:1000px;font-size:clamp(52px,5.8vw,82px);letter-spacing:-3.8px;line-height:1.02;color:var(--igo-ink); }
  .choice-main h1 .hero-title-main { color:var(--igo-ink); }
  .choice-main h1 #heroTitleAccent { color:#a87a00; }
  .choice-main .eyebrow { color:var(--igo-gold-deep); }
  .choice-lead { max-width:590px;color:#5c5b56;font-size:15px;margin-top:22px; }
  .choice-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:35px; }
  .choice-card {
    min-height:166px;padding:22px;border:1px solid #e9e6df;border-radius:20px;
    background:#fff;color:var(--igo-ink);box-shadow:0 10px 25px #25201208;
  }
  .choice-card svg { color:#a77b00; }
  .choice-card small,.choice-card .choice-number { color:#716d64; }
  .choice-card:hover { transform:translateY(-4px);border-color:#e2be49;box-shadow:0 18px 34px #322a1014; }
  .choice-buy { background:linear-gradient(145deg,#ffd954,#ffc523);border-color:#f0bc1a; }
  .choice-buy svg,.choice-buy strong { color:#20201d; }
  .choice-buy small { color:#574915; }
  .choice-repair { background:#fffdfa; }
}

/* Shared content rhythm */
.section { scroll-margin-top:82px; }
.category-card { border:1px solid var(--igo-border);background:#fff;border-radius:20px;box-shadow:0 7px 25px #25200f06; }
.category-card>span { background:#f7f6f1; }
.category-card:hover,.collection-card:hover { transform:translateY(-3px);box-shadow:0 15px 36px #221d0d12; }
.collection-card { border:1px solid #e6e2d7;box-shadow:0 8px 28px #221d0d08; }
.repair-card { box-shadow:0 12px 34px #2520120d; }
.contact-banner { background:#fff;border:1px solid #e8e5dd;color:var(--igo-ink);box-shadow:0 16px 40px #27200c0b; }
.contact-banner h2,.contact-number strong { color:var(--igo-ink); }
.contact-banner .contact-place p,.contact-number small { color:#65615a; }
.contact-banner .contact-pin { color:#9c7300;background:#fff4ca; }
.contact-number { background:#fbfaf6;border:1px solid #e9e5dc;border-radius:15px; }
.contact-buttons a { border-radius:13px; }
.route-preview { background:#f9f6ed;color:var(--igo-ink);border:1px solid #eae5d5; }
.route-preview:hover { border-color:#d6b851; }
.route-copy small { color:#9b7100; }
.route-copy span { color:#6b6760; }
.news-card { border-radius:18px;overflow:hidden;box-shadow:0 9px 29px #201b0d0a; }
.news-carousel__controls button { min-width:42px;min-height:42px; }

/* A single discreet and truthful price-update notice, below primary content */
.site-sync-footer {
  display:flex;align-items:center;justify-content:center;min-height:32px;
  max-width:1460px;margin:0 auto 22px;padding:0 20px;color:#85827b;
  font:500 10px/1.55 Manrope,Arial,sans-serif;text-align:center;
}
.site-sync-footer #priceStatus { display:inline!important;visibility:visible!important;color:inherit;font:inherit; }
body:has(#cards) .mobile-price-pill { display:none!important; }

/* Catalogue cards: image, details, selected version and CTA in clear hierarchy */
body:has(#cards) .cards { align-items:stretch; }
body:has(#cards) .card {
  overflow:hidden;border:1px solid #e8e6de;border-radius:23px;background:#fff;
  box-shadow:0 10px 32px #3029160c;
}
body:has(#cards) .card .visual { background:linear-gradient(160deg,#fff,#faf9f6); }
body:has(#cards) .card .title-button h2 { letter-spacing:-.6px;line-height:1.17; }
body:has(#cards) .card .variant-option,
body:has(#cards) .detail .variant-option { border-radius:10px;min-height:38px; }
body:has(#cards) .card .variant-option.chosen,
body:has(#cards) .detail .variant-option.chosen { border-color:#d3a62a;background:#fff4d0;color:#3b2f0a; }
body:has(#cards) .card .more { min-height:47px;border-radius:13px; }
body:has(#cards) .detail { background:#fff; }
body:has(#cards) #details { border:1px solid #e5e2d8;border-radius:22px; }
body:has(#cards) .card .card-share,body:has(#cards) .card .card-favorite { min-width:40px;min-height:40px; }
body:has(#cards) .card--waiting .visual img { filter:grayscale(.25); }

/* Existing mobile navigation and page structure remain intact */
@media(max-width:760px) {
  html { scroll-padding-top:70px; }
  .site-header .brand { min-width:0;width:112px;height:57px; }
  .choice-hero {
    display:flex;flex-direction:column;margin-top:10px;padding:0;min-height:0;
    background:linear-gradient(145deg,#fff 0%,#fffdf6 60%,#ffedb8 100%);
    border:1px solid #eae4d5;color:var(--igo-ink);border-radius:20px;box-shadow:none;
  }
  .choice-hero::before { display:none; }
  .choice-main { padding:25px 18px 22px; }
  .choice-main .eyebrow { color:#987000; }
  .choice-main h1 { color:var(--igo-ink);font-size:clamp(33px,9vw,43px);line-height:1.04;letter-spacing:-1.9px; }
  .choice-main h1 .hero-title-main { color:var(--igo-ink);white-space:normal; }
  .choice-main h1 #heroTitleAccent { color:#a57900; }
  .choice-lead { color:#5f5d55;font-size:12px;line-height:1.6;margin-top:14px; }
  .choice-grid { grid-template-columns:1fr;gap:9px;margin-top:22px; }
  .choice-card {
    display:grid;grid-template-columns:37px minmax(0,1fr) 20px;grid-template-rows:auto auto;
    align-items:center;column-gap:12px;min-height:75px;padding:13px 14px;
    border:1px solid #e5e1d7;border-radius:14px;background:#fff;color:var(--igo-ink);box-shadow:0 5px 15px #2a24100a;
  }
  .choice-card svg { grid-column:1;grid-row:1/3;width:26px;height:26px;margin:0;color:#a77b00; }
  .choice-card strong { grid-column:2;grid-row:1;font-size:13px;color:var(--igo-ink); }
  .choice-card small { grid-column:2;grid-row:2;max-width:none;margin:4px 0 0;color:#716c62;font-size:10px; }
  .choice-card>i { position:static;grid-column:3;grid-row:1/3;font-size:20px;align-self:center; }
  .choice-buy { background:#ffcf3e;border-color:#f4c22c; }
  .choice-buy svg,.choice-buy small { color:#514315; }
  .choice-repair { background:#fff; }
  .choice-hero+.advantages { margin:12px 0 0; }
  .section { padding-top:52px; }
  .category-card { min-height:180px;border-radius:16px; }
  .category-card img { height:138px; }
  .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .collection-card { min-height:173px; }
  .contact-banner { grid-template-columns:1fr;gap:15px;padding:20px 16px; }
  .contact-number { border-color:#e7e0d2;background:#fbfaf7; }
  .contact-banner .contact-place h2 { color:var(--igo-ink); }
  .route-preview { background:#f9f6ed;border-color:#e9e2d4; }
  .site-footer { padding-bottom:10px; }
  .site-sync-footer { margin-bottom:calc(92px + env(safe-area-inset-bottom));padding:0 22px;font-size:9px; }
  body:has(#cards) .intro {
    background:linear-gradient(145deg,#fff 0%,#fffaf0 70%,#ffe8a9 100%);
    border:1px solid #eae4d3;border-radius:20px;color:var(--igo-ink);box-shadow:none;
  }
  body:has(#cards) .intro .eyebrow { color:#a17600; }
  body:has(#cards) .intro h1,
  body:has(#cards) .intro h1 span { color:var(--igo-ink); }
  body:has(#cards) .intro .lead { color:#625e56; }
  body:has(#cards) .card { border-radius:20px; }
  body:has(#cards) .card .visual { min-height:250px;height:250px; }
  body:has(#cards) .card .body { padding:18px 16px 21px; }
  body:has(#cards) .card .title-button h2 { font-size:21px; }
  body:has(#cards) .card .contact-actions { margin-top:auto; }
  body:has(#cards) #details { width:calc(100% - 12px);border-radius:20px; }
  .mobile-dock,.app-nav { box-shadow:0 13px 34px #1c180d1b; }
}
@media(max-width:390px) {
  .choice-main { padding:22px 14px 18px; }
  .choice-card { grid-template-columns:32px minmax(0,1fr) 18px;gap:8px; }
  .choice-card strong { font-size:12px; }
  .choice-card small { font-size:9px; }
  .collection-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  :where(.choice-card,.category-card,.collection-card,.card,.news-card,.repair-card) { transition:none; }
}


/* Photography presentation uses verified product pictures only. */
body:has(#cards) .card .visual,
body:has(#cards) .detail-picture {
  position:relative;isolation:isolate;
  background:radial-gradient(ellipse at 85% 12%,#fff7dc 0,transparent 57%),linear-gradient(160deg,#fff,#f5f3ec);
}
body:has(#cards) .card .visual::before,
body:has(#cards) .detail-picture::before {
  content:"";position:absolute;z-index:-1;
  width:76%;height:34%;bottom:9%;left:12%;
  border-radius:50%;
  background:radial-gradient(ellipse,#e9ddc5 0,#f4eddf 43%,#ffffff00 73%);
  filter:blur(13px);
  pointer-events:none;
}
body:has(#cards) .card .visual>img,
body:has(#cards) .detail-picture img {
  position:relative;z-index:1;
  filter:drop-shadow(0 17px 20px #2822141f);
}

/* Mobile: a complete, large product card with selectable configuration. */
@media(max-width:650px){
  body:has(#cards) .cards { display:grid;grid-template-columns:minmax(0,1fr);gap:17px; }
  body:has(#cards) .cards .card {
    display:flex;flex-direction:column;grid-template-columns:none;
    min-width:0;border-radius:23px;overflow:hidden;
  }
  body:has(#cards) .cards .card .visual {
    width:100%;height:310px;min-height:310px;
    padding:35px 25px 25px;
  }
  body:has(#cards) .cards .card .visual>img {
    display:block;max-width:100%;max-height:245px;
    width:auto;height:auto;object-fit:contain;
  }
  body:has(#cards) .cards .card .body {
    width:100%;display:flex;flex-direction:column;padding:19px 19px 23px;
  }
  body:has(#cards) .card .title-button h2 { font-size:23px; }
  body:has(#cards) .card .swatches { margin-top:13px; }
  body:has(#cards) .card .variant-pickers { margin-top:12px; }
  body:has(#cards) .card .price-block { margin-top:16px; }
  body:has(#cards) .card .contact-actions { margin-top:auto;padding-top:14px; }
  body:has(#cards) .card .short { margin-top:11px; }
  /* Phone quick view rises from the bottom, while keeping the list position. */
  body:has(#cards) #details:not(.embedded-dialog) {
    position:fixed!important;
    top:auto!important;left:0!important;right:0!important;
    bottom:0!important;margin:0!important;transform:none!important;
    width:100%!important;max-width:100%!important;
    max-height:90dvh!important;
    border-radius:24px 24px 0 0!important;
    box-shadow:0 -16px 45px #14110930;
  }
  body:has(#cards) #details:not(.embedded-dialog)::before {
    content:"";display:block;position:sticky;top:0;z-index:11;
    width:42px;height:5px;margin:10px auto 0;
    background:#d1cec5;border-radius:999px;
  }
  body:has(#cards) #details:not(.embedded-dialog) #detailContent {
    max-height:calc(90dvh - 20px)!important;overscroll-behavior:contain;
    scrollbar-gutter:auto;
  }
  body:has(#cards) #details:not(.embedded-dialog) .detail-picture {
    min-height:240px;max-height:320px;
  }
  body:has(#cards) #details:not(.embedded-dialog) .detail-info {
    padding:20px 20px calc(32px + env(safe-area-inset-bottom));
  }
}


/* Share controls match the light public interface. */
body:has(#cards) #shareOptions {
  position:fixed;inset:0;margin:auto;transform:none;
  width:min(460px,calc(100% - 26px));max-height:85dvh;
  padding:26px;border:1px solid #e7e3d8;border-radius:23px;
  background:#fffefa;color:#222;box-shadow:0 25px 80px #201a1033;
}
body:has(#cards) #shareOptions::backdrop {
  background:#19191977;backdrop-filter:blur(3px);
}
#shareOptions h2 { margin:6px 35px 8px 0;font-size:23px;line-height:1.2; }
#shareOptions p { margin:0 0 18px;color:#79736a;font-size:12px;line-height:1.5; }
#shareOptions .share-options-close {
  position:absolute;top:13px;right:13px;width:40px;height:40px;
  border:1px solid #e5e0d5;border-radius:50%;background:#fff;
  font-size:26px;color:#444;cursor:pointer;
}
#shareOptions .share-options-action {
  display:grid;grid-template-columns:43px minmax(0,1fr);
  gap:0 13px;align-items:center;width:100%;min-height:75px;margin-top:11px;
  padding:12px;border:1px solid #e8e5d9;border-radius:15px;
  background:#fff;color:#222;font:inherit;text-align:left;cursor:pointer;
}
#shareOptions .share-options-action:hover { border-color:#e0b325;background:#fffbee; }
#shareOptions .share-options-action>span {
  grid-row:1/3;display:grid;place-items:center;width:43px;height:43px;
  border-radius:12px;background:#fff0ba;color:#7f5b00;font-size:23px;
}
#shareOptions .share-options-action>b { font-size:13px; }
#shareOptions .share-options-action>small { font-size:10px;color:#6e6a62; }
#shareOptions .share-options-note { font-size:10px;margin:17px 0 0;color:#777; }
@media(max-width:650px) {
  body:has(#cards) #shareOptions {
    top:auto!important;left:0!important;right:0!important;bottom:0!important;
    margin:0!important;transform:none!important;width:100%!important;
    padding:25px 18px calc(28px + env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0;max-height:85dvh;
  }
}

/* hotfix: source photos with white rectangular background */
body:has(#cards) .card .visual,
body:has(#cards) .detail-picture {
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0 34%, #f8f5ed 54%, #efe8d6 73%, #f7f4ec 100%) !important;
}

body:has(#cards) .card .visual > img,
body:has(#cards) .detail-picture img {
  background: transparent !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 17px 20px rgba(40,34,20,.12)) !important;
}
