/* MAGICUM IMPERIAL LIVING COUTURE — owner-approved visual direction.
 * Standalone visual skin on top of PR #222. No new layout/JS dependencies.
 * Scoping is intentionally restricted to the hero and its working controls.
 * Never paint a second logo over the owner's 9:16 background image. */
#hero.mstudio-host {
  --ic-ink:#0a244c;
  --ic-midnight:#061835;
  --ic-sapphire:#073f94;
  --ic-blue:#126bc3;
  --ic-gold:#f7c64b;
  --ic-gold-light:#fff3b3;
  --ic-ivory:#fff8e8;
  --ic-gold-line:rgba(247,197,77,.88);
  --ic-light-rim:rgba(255,253,235,.97);
}

/* Nav: three individually framed, tactile capsules. Phone is an action,
 * not the page's primary conversion CTA, so AI keeps the strongest glow. */
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone,
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square,
#hero.mstudio-host > .nav-bar.magicum-topbar #sideMenuBtn.nav-menu-square {
  /* Legacy index.html sets top:35px on narrow-screen .nav-phone.
     Restoring static grid items prevents the phone from slipping into row 2. */
  position:static; top:auto; left:auto; right:auto; bottom:auto;
  border-radius:999px;
  border:1.5px solid var(--ic-light-rim);
  background-clip:padding-box;
  overflow:hidden;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.7),
    inset 0 -3px 5px rgba(3,18,49,.24),
    0 0 0 1px rgba(248,192,62,.64),
    0 3px 0 rgba(5,29,74,.34),
    0 7px 15px rgba(4,24,54,.27);
  transition:transform .18s ease, filter .18s ease;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone {
  background:linear-gradient(171deg,#fff4ad 0%,#ffdf71 25%,#f8c13a 70%,#e89a1f 100%);
  color:var(--ic-ink);
  text-shadow:0 1px rgba(255,255,255,.45);
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square,
#hero.mstudio-host > .nav-bar.magicum-topbar #sideMenuBtn.nav-menu-square {
  background:linear-gradient(167deg,#7bdafa 0%,#137bbf 37%,#07478f 75%,#032b61 100%);
  color:white;
  text-shadow:0 1px 2px rgba(0,15,47,.65);
  border-color:#c5f4ff;
  box-shadow:
    inset 0 2px 1px rgba(244,255,255,.48),
    inset 0 -3px 5px rgba(0,13,44,.44),
    0 0 0 1px rgba(8,70,145,.76),
    0 3px 0 #06295b,
    0 8px 17px rgba(5,30,70,.3);
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square {
  display:flex; align-items:center; justify-content:center; gap:2px;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square::after {
  content:"⌄"; display:inline-block; font:700 15px/1 system-ui,sans-serif;
  margin-top:-4px; opacity:.94; pointer-events:none;
}
#hero.mstudio-host > .nav-bar.magicum-topbar nav > :active {
  transform:translateY(2px) scale(.99);
}

/* Editorial hierarchy: keep H1 and its SEO wording as real HTML text.
 * The italic offer borrows the production site's couture typography. */
#hero.mstudio-host #mstudio .hero-title {
  font-weight:600;
  color:var(--ic-ink) !important;
  text-shadow:0 1px 1px #fff, 0 2px 9px rgba(255,255,255,.3);
}
#hero.mstudio-host #mstudio .hero-sub {
  max-width:34em;
  color:#133e72;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(17px,4.6vw,22px);
  line-height:1.06;
  letter-spacing:.002em;
  text-shadow:0 1px 1px rgba(255,255,255,.8);
}

/* The upload tile resembles ivory porcelain with stitched-gold framing.
 * ::before paints non-interactive viewfinder corners, not a new image. */
#hero.mstudio-host #mstudio .ms-drop {
  border:1.5px solid #e5b853;
  border-radius:18px;
  background:linear-gradient(155deg,#fffefa 0%,#fff4da 48%,#efd9ac 100%);
  color:var(--ic-ink);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.92),
    inset 0 -2px 4px rgba(156,105,34,.13),
    0 0 0 1px rgba(255,253,226,.95),
    0 0 0 2px rgba(196,134,34,.75),
    0 3px 0 #a77824,
    0 8px 15px rgba(86,57,25,.18);
  transition:transform .18s ease,filter .18s ease;
}
#hero.mstudio-host #mstudio .ms-drop::before {
  content:""; position:absolute; inset:7px; border-radius:11px; pointer-events:none;
  background:
    linear-gradient(#bf902a,#bf902a) left top / 11px 1.5px no-repeat,
    linear-gradient(#bf902a,#bf902a) left top / 1.5px 11px no-repeat,
    linear-gradient(#bf902a,#bf902a) right top / 11px 1.5px no-repeat,
    linear-gradient(#bf902a,#bf902a) right top / 1.5px 11px no-repeat,
    linear-gradient(#bf902a,#bf902a) left bottom / 11px 1.5px no-repeat,
    linear-gradient(#bf902a,#bf902a) left bottom / 1.5px 11px no-repeat,
    linear-gradient(#bf902a,#bf902a) right bottom / 11px 1.5px no-repeat,
    linear-gradient(#bf902a,#bf902a) right bottom / 1.5px 11px no-repeat;
  opacity:.9;
}
#hero.mstudio-host #mstudio .ms-drop.has-photo {
  border-color:#28784a;
  box-shadow:inset 0 1px rgba(255,255,255,.8),
    0 0 0 2px rgba(29,121,65,.7),0 3px 0 #215d38,
    0 8px 15px rgba(17,62,35,.17);
}
#hero.mstudio-host #mstudio .ms-drop .ms-drop-ico { color:#a77921; }
#hero.mstudio-host #mstudio .ms-drop .ms-drop-title { color:var(--ic-ink); }

/* Sapphire fabric tile: subtle woven geometry, not a raster/WebGL layer. */
#hero.mstudio-host #mstudio .ms-pick {
  position:relative; isolation:isolate;
  border-radius:18px;
  border:1.5px solid #d1f8ff;
  background:
    repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.025) 4px 5px),
    repeating-linear-gradient(90deg,transparent 0 4px,rgba(1,16,52,.045) 4px 5px),
    linear-gradient(164deg,#49baf0 0%,#1779cb 32%,#0754a4 72%,#032d70 100%);
  color:#fff !important;
  text-shadow:0 1px 3px rgba(1,13,48,.67);
  box-shadow:
    inset 0 2px 1px rgba(237,255,255,.58),
    inset 0 -3px 5px rgba(2,17,53,.45),
    0 0 0 1px #1469b3,
    0 3px 0 #04306e,
    0 7px 17px rgba(4,30,76,.3);
  transition:transform .18s ease,filter .18s ease;
}
#hero.mstudio-host #mstudio .ms-pick > svg,
#hero.mstudio-host #mstudio .ms-pick > span { position:relative; z-index:1; }
#hero.mstudio-host #mstudio .ms-pick::before {
  content:""; position:absolute; inset:1px; border-radius:16px; pointer-events:none;
  background:linear-gradient(125deg,rgba(255,255,255,.2),transparent 41%);
}

/* AI is the sole visually dominant golden action.
 * Shine moves only on hover/focus, never in an infinite mobile loop. */
#hero.mstudio-host #mstudio .ms-btn-gold#msGo {
  isolation:isolate;
  border-radius:999px;
  border:1.5px solid #fff8d2;
  background:linear-gradient(168deg,#fff6b9 0%,#ffe070 28%,#f6b935 68%,#dd8e19 100%);
  color:#18294b !important;
  text-shadow:0 1px 1px rgba(255,255,255,.7);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.9),
    inset 0 -3px 7px rgba(153,71,10,.24),
    0 0 0 1px #f2ae24,
    0 3px 0 #a36711,
    0 7px 21px rgba(203,130,25,.33);
  transition:transform .18s ease,filter .18s ease;
}
#hero.mstudio-host #mstudio .ms-btn-gold#msGo::before {
  content:""; position:absolute; inset:-40% auto -40% -65%; width:36%;
  pointer-events:none; transform:skewX(-22deg) translateX(0); opacity:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);
}
#hero.mstudio-host #mstudio .ms-btn-gold#msGo:not(:disabled):is(:hover,:focus-visible)::before {
  animation:imperial-gold-sheen .8s ease-out 1;
}
@keyframes imperial-gold-sheen {
  0% { transform:skewX(-22deg) translateX(0); opacity:0; }
  15% { opacity:.66; }
  100% { transform:skewX(-22deg) translateX(480%); opacity:0; }
}

/* Midnight enamel for the actual upholstery order. No competing gold fill. */
#hero.mstudio-host #mstudio .ms-order {
  border:1.5px solid #e5bb58;
  border-radius:999px;
  background:linear-gradient(165deg,#194b85 0%,#092b59 40%,#041a3d 100%);
  color:#fffaf0;
  text-shadow:0 1px 2px #06142b;
  box-shadow:
    inset 0 1px 1px rgba(241,255,255,.4),
    inset 0 -3px 5px rgba(1,9,27,.4),
    0 0 0 1px rgba(246,206,104,.78),
    0 3px 0 #06132c,
    0 8px 18px rgba(3,24,60,.27);
  transition:transform .18s ease,filter .18s ease;
}
#hero.mstudio-host #mstudio .ms-order:hover {
  background:linear-gradient(165deg,#255b9c 0%,#103568 40%,#061d41 100%);
}
#hero.mstudio-host #mstudio .ms-drop:active,
#hero.mstudio-host #mstudio .ms-pick:active,
#hero.mstudio-host #mstudio .ms-btn-gold#msGo:not(:disabled):active,
#hero.mstudio-host #mstudio .ms-order:active {
  transform:translateY(2px) scale(.995);
}
#hero.mstudio-host #mstudio :is(.ms-drop,.ms-pick,.ms-btn-gold,.ms-order):focus-visible,
#hero.mstudio-host #mstudio .ms-drop:focus-within {
  outline:3px solid #0b3164;
  outline-offset:3px;
}
#hero.mstudio-host #mstudio .ms-fabric .ms-chosen {
  border-radius:18px; border-color:#d6b658;
  background:linear-gradient(150deg,#fffefa,#f7ecd6);
  box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 0 1px #d6b658,
    0 3px 0 #ab7e2f,0 7px 14px rgba(9,48,88,.15);
}

/* Portrait tablet: use dark satin as a passe-partout beyond the 9:16 art. */
@media (min-width:700px) and (orientation:portrait) {
  #snap-root #hero.mstudio-host { background-color:#082454; }
}

/* On wide displays use a sapphire stage rather than a generic pale SaaS UI.
 * Poster is still the owner's original 9:16 composition on the right. */
@media (orientation:landscape) and (min-width:900px) {
  #snap-root #hero.mstudio-host {
    background:
      radial-gradient(80% 85% at 0% 0%,rgba(30,91,157,.7),transparent 70%),
      radial-gradient(45% 60% at 100% 100%,rgba(197,133,45,.15),transparent 75%),
      linear-gradient(130deg,#0b326b 0%,#061a3b 60%,#07152f 100%);
  }
  #hero.mstudio-host #mstudio .hero-title {
    color:#fff6dc !important;
    text-shadow:0 2px 13px rgba(0,0,0,.28);
  }
  #hero.mstudio-host #mstudio .hero-sub {
    color:#f9e4ad;
    text-shadow:0 1px 6px rgba(0,0,0,.34);
    font-size:clamp(21px,2.25vw,28px);
  }
  /* WCAG AA: стан AI («Готово — натискайте») на темній сапфіровій сцені — той самий світлий тон, що й підзаголовок.
     Селектор повторює правило hero-neon.css, щоб перекрити його темний колір. */
  #hero.mstudio-host #mstudio:has(.ms-drop.has-photo) .ms-hint:not(:empty) { color:#f9e4ad; }
  /* тінь постера лишається в межах сапфірової сцени (clip не ламає sticky-постер і fixed-вікна) */
  #snap-root #hero.mstudio-host { overflow-y:clip !important; }
  #snap-root #hero.mstudio-host::after {
    box-shadow:0 0 0 2px rgba(250,206,92,.75),
      0 0 0 7px rgba(255,245,204,.11),
      0 25px 75px rgba(0,4,22,.66);
  }
}

/* Small phone: retain PR #222 dimensions and visible browser chrome.
 * Short viewport may scroll; never shrink usable touch targets below 44px. */
@media (max-width:359px) and (orientation:portrait) {
  #hero.mstudio-host #mstudio .hero-sub { font-size:17px; }
  #hero.mstudio-host #mstudio .ms-drop::before { inset:5px; }
}
@media (max-height:520px) and (orientation:portrait) {
  #hero.mstudio-host #mstudio .hero-sub { font-size:17px; line-height:1.02; }
}
@media (prefers-reduced-motion:reduce) {
  #hero.mstudio-host > .nav-bar.magicum-topbar nav > *,
  #hero.mstudio-host #mstudio :is(.ms-drop,.ms-pick,.ms-btn-gold,.ms-order) {
    animation:none !important; transition:none !important;
  }
  #hero.mstudio-host #mstudio .ms-btn-gold#msGo::before { animation:none !important; display:none; }
}

/* ── IMPERIAL LIVING COUTURE нижче hero (OWNER 2026-11-15, пропозиції 1–5) ──
   Лише CSS + маленький inline-SVG орнамент; тексти, посилання й аналітика без змін.
   Орнамент: смужка «вишивки» — золоті ромби на сапфірі, повторюваний тайл 24×10. */
#snap-root > #about.home-info {
  --ic-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Cpath d='M0 5l5-5 5 5-5 5zM12 5l5-5 5 5-5 5z' fill='%23e5b853'/%3E%3Cpath d='M10 5l1-1 1 1-1 1zM22 5l1-1 1 1-1 1z' fill='%23fff3b3'/%3E%3C/svg%3E");
  position:relative; padding-bottom:0 !important;
  background:linear-gradient(180deg,#fdf9f0 0%,#f5f9ff 38%,#fff8ec 100%);
}
/* 4 · шов hero → секції: золота нитка + м'який перехід від сапфіру, без різкого обриву */
#about.home-info::before {
  content:""; position:absolute; inset:0 0 auto; height:clamp(36px,5vw,64px); pointer-events:none;
  background:linear-gradient(90deg,transparent,#e5b853 20%,#fff3b3 50%,#e5b853 80%,transparent) top/100% 2px no-repeat,
    linear-gradient(180deg,rgba(6,24,53,.5),rgba(6,24,53,0));
}
#about.home-info h2 { color:#0a244c; font-weight:600; letter-spacing:.005em; }
#about.home-info h2::after {
  content:""; display:block; width:58px; height:10px; margin-top:8px; background:var(--ic-orn) left/24px 10px repeat-x; opacity:.9;
}
/* 5 · Послуги: картки з ювелірним золотим кантом, як плитки першого екрана */
#about.home-info .home-services a {
  border:1.5px solid #e5b853; border-radius:16px; background:linear-gradient(155deg,#fffefa,#fff4da);
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(255,253,226,.9),0 2px 0 rgba(167,120,36,.35),0 6px 14px rgba(10,36,76,.08);
  transition:transform .18s ease,box-shadow .18s ease;
}
#about.home-info .home-services a::after { color:#b8862a; font-weight:700; }
#about.home-info .home-services a:hover { transform:translateY(-1px); border-color:#c8962b; }
#about.home-info .home-services a:focus-visible,
#about.home-info .home-contacts a:focus-visible { outline:3px solid #073f94; outline-offset:3px; }
/* 3 · Кроки: номери в золотих медальйонах, між ними статична золота «стіжка» */
#about.home-info .home-steps { list-style:none; counter-reset:mg-step; position:relative; padding:0; margin:4px 0 18px; }
#about.home-info .home-steps::before {
  content:""; position:absolute; left:17px; top:18px; bottom:18px; border-left:2px dashed #c8962b; opacity:.75;
}
#about.home-info .home-steps li { counter-increment:mg-step; position:relative; min-height:36px; margin:0 0 14px; padding:5px 0 0 54px; }
#about.home-info .home-steps li::before {
  content:counter(mg-step); position:absolute; left:0; top:0; width:36px; height:36px; display:grid; place-items:center;
  border-radius:50%; border:1.5px solid #fff3b3; color:#0a244c;
  font:700 18px/1 'Cormorant Garamond',Georgia,serif;
  background:radial-gradient(circle at 35% 30%,#fff6c4,#f2c14e 55%,#c48a1c);
  box-shadow:0 0 0 1px #c8962b,0 2px 0 #8a5a10;
}
#about.home-info .home-terms { border:1px solid #e5b853; border-left:3px solid #c8962b; border-radius:4px 14px 14px 4px; background:#fff8e8; }
/* 5 · FAQ: питання сапфіром із золотою лінією зліва; відповіді завжди видимі */
#about.home-info .home-faq h3 { color:#073f94; padding-left:14px; border-left:2px solid #c8962b; margin-top:22px; }
#about.home-info .home-faq h3 + p { padding-left:16px; }
/* 1 · Контакти: слонова кістка в подвійній золотій рамці; телефон — золота капсула, заявка — нічна емаль */
#about.home-info .home-contacts {
  margin:36px 0 8px; padding:22px 18px 20px; border-radius:20px; text-align:center;
  border:1.5px solid #e5b853; background:linear-gradient(155deg,#fffefa,#fff1d2);
  box-shadow:inset 0 0 0 4px #fffaf0,inset 0 0 0 5px rgba(200,150,43,.55),0 10px 24px rgba(10,36,76,.1);
}
#about.home-info .home-contacts h2 { margin:0 0 4px; }
#about.home-info .home-contacts h2::after { margin:8px auto 0; }
#about.home-info .home-contacts-area { margin:6px 0 16px; color:#133e72; font:italic 400 19px/1.2 'Cormorant Garamond',Georgia,serif; }
#about.home-info .home-contacts-actions { display:grid; gap:12px; max-width:440px; margin:0 auto; }
#about.home-info .home-contacts-actions a {
  display:flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:0 16px; border-radius:999px;
  text-decoration:none; font:700 16px/1.15 Montserrat,system-ui,sans-serif;
}
#about.home-info a.home-contacts-phone {
  color:#0a244c; border:1.5px solid #fff8d2; background:linear-gradient(171deg,#fff4ad,#ffdf71 25%,#f8c13a 70%,#e89a1f);
  box-shadow:inset 0 2px 1px rgba(255,255,255,.7),0 0 0 1px rgba(200,150,43,.7),0 3px 0 #a36711,0 7px 15px rgba(4,24,54,.18);
}
#about.home-info a.home-contacts-cta {
  color:#fffaf0; border:1.5px solid #e5bb58; background:linear-gradient(165deg,#194b85,#092b59 40%,#041a3d);
  box-shadow:inset 0 1px 1px rgba(241,255,255,.4),0 0 0 1px rgba(246,206,104,.78),0 3px 0 #06132c,0 8px 18px rgba(3,24,60,.22);
}
/* 2 · Футер: сапфірова смуга з вишитим кантом; наявні посилання й © */
#about.home-info .home-footer {
  position:relative; margin:40px -16px 0; padding:34px 16px calc(32px + env(safe-area-inset-bottom,0px));
  background:var(--ic-orn) top/24px 10px repeat-x,linear-gradient(165deg,#0b326b 0%,#061a3b 70%);
  border-top:1px solid #c8962b; color:#c9d6ea;
}
#about.home-info .home-footer-inner { max-width:760px; margin:0 auto; }
#about.home-info .home-footer .home-links { margin-top:0; }
#about.home-info .home-footer .home-links a {
  background:rgba(255,255,255,.04); border:1px solid rgba(229,184,83,.55); color:#fff6dc;
}
#about.home-info .home-footer .home-links a:hover { border-color:#f2c14e; background:rgba(255,255,255,.08); }
#about.home-info .home-footer .home-links a:focus-visible { outline:3px solid #f9e4ad; outline-offset:2px; }
#about.home-info .home-footer .home-copy { color:#c9d6ea; margin:22px 0 0; }
#about.home-info .home-footer .home-copy a { color:#f9e4ad; }
/* Футер: інлайн-посилання «Публічна оферта» в рядку © отримує зону натискання 44 px без зміни вигляду рядка */
#about.home-info .home-footer .home-copy a { display:inline-flex; align-items:center; min-height:44px; margin:-14px 0; padding:0 4px; }
/* Кінець сторінки на телефоні/планшеті: вільне місце під плаваючою кнопкою (18 + 52 + 8 px),
   щоб він не лежав на останньому рядку футера, коли прокрутка вже не може піти далі */
@media (max-width:1099px) {
  #about.home-info .home-footer { padding-bottom:calc(32px + 78px + env(safe-area-inset-bottom,0px)); }
}
@media (min-width:900px) {
  #about.home-info .home-footer { margin:56px -32px 0; padding-inline:32px; }
  #about.home-info .home-contacts-actions { grid-template-columns:1fr 1fr; max-width:620px; }
}
@media (prefers-reduced-motion:reduce) {
  #about.home-info .home-services a { transition:none; }
}
