/* Палитра, первый экран, навигация и общая геометрия. Загружается перед refined.css. */
:root {
  --bg: #f8f8f7;
  --paper: #fff;
  --ink: #201d1b;
  --muted: #625852;
  --line: #e8e1dc;
  --blue: #b72b12;
  --deep: #94240e;
  --pale: #ffebe2;
  --red: #bd2c13;
  --soft: #fff0e9;
  --hero-red: #d73812;
  --brand-orange: #df3d14;
  --sky: #eeefee;
  --shadow: 0 10px 38px #4223140b;
}
body.dark {
  --bg: #191614;
  --paper: #221e1b;
  --ink: #f9f4f1;
  --muted: #d0c3bc;
  --line: #4a3831;
  --blue: #ff9e86;
  --deep: #ffc4b3;
  --pale: #493028;
  --sky: #292929;
  --soft: #402923;
}
.ambient-art, .section::before, .hero::before, .hero::after { display: none; }
.header { background: var(--paper); backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-inner { height: 78px; }
.header .logo { width: auto; padding: 3px 2px; background: transparent; overflow: visible; }
.brand-name {
  display: grid;
  width: fit-content;
  color: var(--brand-orange);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name small {
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .16em;
  margin: 0 0 4px 1px;
}
.brand-name strong {
  font-size: 32px;
  font-weight: 800;
  line-height: .87;
  letter-spacing: -.046em;
}
body.dark .brand-name { color: var(--blue); }
h1, h2 { font-weight: 800; }
.btn { border-radius: 999px; }
.btn.primary, .btn.red { box-shadow: none; }
body.dark .btn.primary { color: #29140e; }
.hero, body.dark .hero {
  background: var(--hero-red);
  color: #fff;
  padding: clamp(48px, 6vw, 98px) 0;
}
.hero-grid {
  grid-template-columns: minmax(0,.9fr) minmax(0,1.12fr);
  gap: clamp(32px, 6vw, 105px);
}
.hero h1 {
  font-size: clamp(54px, 7vw, 112px);
  line-height: .95;
  letter-spacing: -.071em;
  margin: 0;
}
.hero .lead {
  color: #fff;
  max-width: 32ch;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.42;
  margin: 22px 0 26px;
}
.hero .btn.primary { color: #1d1714; background: #fff; }
.hero-work { margin: 0; }
.hero-artwork { width: 100%; border-radius: clamp(14px, 2vw, 25px); }
.hero-work figcaption { font-size: 13px; margin: 10px 0 0; color: #fff; }
.age-finder { background: var(--sky); box-shadow: none; border: 0; }
.age-finder .ghost-star { display: none; }
.hero + .section { background: var(--paper); }
.course, .about-photo, .gallery-item { box-shadow: var(--shadow); }
.about-photo img { object-position: 50% 60%; }
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .hero-copy, .hero-work { width: min(100%, 620px); }
  .hero h1 { font-size: clamp(54px, 12vw, 88px); }
}
@media (max-width: 680px) {
  .header-inner { height: 68px; }
  .brand-name strong { font-size: 25px; }
  .brand-name small { font-size: 7px; }
  .hero h1 { font-size: clamp(46px, 12vw, 75px); }
  .hero .btn { width: auto; min-height: 46px; font-size: 15px; }
  .hero-work figcaption { font-size: 12px; }
}
.footer .logo { width: auto; padding: 0; background: transparent; }
.footer .logo .brand-name { color: inherit; }

:root { --brand-orange:#e64008; --bg:#f5f5f4; --header-height:72px; }
body { overflow-x:clip; }
.header { z-index:70; transition:background .32s,color .32s,border-color .32s; }
.header-inner { height:var(--header-height); }
.header[data-surface="hero"] { background:#ad2706cc; color:#fff; border-color:transparent; backdrop-filter:blur(16px); }
.header[data-surface="hero"] .brand-name, .header[data-surface="footer"] .brand-name { color:#fff; }
.header[data-surface="hero"] .nav a, .header[data-surface="footer"] .nav a { color:inherit; }
.header[data-surface="hero"] .booking-top { background:transparent; border:1px solid #fff; }
.header[data-surface="footer"] { background:#141416; color:#fff; border-color:#ffffff25; }
.header .brand-name { transition:color .32s,opacity .28s; }
.header[data-surface="hero"] .brand-name { text-shadow:0 0 18px #fff3; }
body:has(.hero) #main { margin-top:calc(-1 * (var(--header-height) + env(safe-area-inset-top))); }
.brand-name strong { font-family:Manrope,Arial,sans-serif; font-size:29px; letter-spacing:.12em; font-weight:800; }
.brand-name small { letter-spacing:.13em; }
.btn { border-radius:14px; }
.hero, body.dark .hero { padding:0; background:radial-gradient(ellipse at 78% 42%,#ff6d19,#dd350a 48%,#a9210a 100%); }
.hero-grid { position:relative; display:grid; grid-template-columns:1fr; min-height:min(850px,100svh); align-items:center; isolation:isolate; padding-top:calc(var(--header-height) + env(safe-area-inset-top)); }
.hero-copy { position:relative; z-index:1; padding:52px 0; width:min(56%,650px); }
.hero h1 { font-size:clamp(64px,8.1vw,132px); font-weight:750; letter-spacing:-.07em; }
.hero .lead { color:#fff; }
.hero .btn.primary { background:#fff; }
.hero-work { position:absolute; inset:0 -4% 0 auto; width:62%; z-index:-1; overflow:hidden; mask-image:linear-gradient(to right,transparent 1%,#000 32%); }
.hero-work::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#bd2c0ab5,transparent 45%),linear-gradient(0deg,#9c2008,transparent 27%),linear-gradient(180deg,#a5290b66,transparent 28%); pointer-events:none; }
.hero-work img { width:100%; height:100%; object-fit:cover; object-position:55% 36%; border-radius:0; filter:saturate(1.14) sepia(.12); animation:portrait-enter .9s ease-out both; }
@keyframes portrait-enter { from { opacity:.25; transform:scale(1.035); } to { opacity:1; transform:none; } }
.benefit-lead { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:32px; padding:clamp(28px,7vw,108px) 0; }
.benefit-lead strong { font-size:clamp(72px,14vw,192px); line-height:.87; font-weight:800; letter-spacing:-.10em; }
.benefit-lead h2 { margin:18px 0 12px; }
.benefit-lead p,.benefit-card p { font-size:clamp(16px,2vw,21px); max-width:36ch; }
.metal-orb { position:relative; width:min(80%,390px); aspect-ratio:1; margin:auto; }
.metal-orb::after { content:""; position:absolute; inset:100% 10% -4%; background:#0005; filter:blur(10px); border-radius:50%; }
.metal-orb i { position:absolute; inset:0; border-radius:50%; background:radial-gradient(ellipse at 77% 43%,#ffad81 0,transparent 30%),radial-gradient(ellipse at 38% 16%,#fff 2%,transparent 34%),radial-gradient(ellipse at 31% 64%,#212937 0%,#5a6573 21%,#eff1f4 47%,#a4acb6 70%,#fff 91%); box-shadow:inset 6px 8px 22px #fff8; transition:transform .85s cubic-bezier(.18,.65,.22,1); }
.metal-orb i:first-child { clip-path:inset(0 50% 0 0); }
.metal-orb i:last-child { clip-path:inset(0 0 0 50%); }
.reveal.visible .metal-orb i:first-child { transform:translateX(-7%) rotate(-7deg); }
.reveal.visible .metal-orb i:last-child { transform:translateX(7%) rotate(7deg); }
.benefit-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.benefit-card { position:relative; overflow:hidden; background:var(--paper); border-radius:28px; padding:clamp(22px,4vw,52px); min-height:350px; }
.benefit-card h3 { font-size:clamp(27px,3vw,44px); margin-bottom:14px; }
.benefit-card img { width:100%; border-radius:15px; margin-top:25px; }
.benefit-card .btn { margin-top:18px; }
.metal-dial { width:min(65%,280px); aspect-ratio:2; border-radius:200px 200px 12px 12px; border:7px ridge #dce0e3; background:radial-gradient(ellipse at 50% 90%,#fff0 10%,#ff870e 30%,#f85a0e 85%); position:relative; margin:32px auto 5px; }
.metal-dial i { position:absolute; left:50%; bottom:5%; width:45%; height:13%; border-radius:99px; background:linear-gradient(#fefefe,#8f98a2); box-shadow:0 3px 6px #441b0699; transform-origin:5% 50%; transform:rotate(-150deg); transition:transform .8s ease; }
.benefit-card.visible .metal-dial i { transform:rotate(-48deg); }
.phone-feature { background:var(--sky); border-radius:30px; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:32px; padding:clamp(24px,6vw,76px); }
.phone-feature .lead { margin:15px 0 20px; }
.phone-shell { width:min(100%,350px); margin:auto; padding:10px; border-radius:41px; border:2px solid #8b939e; background:linear-gradient(110deg,#e8e8e8,#141414 18%,#4a4a4a 85%,#f0f0f0); box-shadow:14px 23px 45px #16203833; }
.phone-screen { background:var(--paper); border-radius:31px; min-height:425px; padding:20px; }
.phone-island { display:block; background:#141416; width:76px; height:18px; margin:0 auto 22px; border-radius:99px; }
.phone-screen output { display:block; font-size:48px; line-height:1.12; font-weight:800; color:var(--blue); margin:7px 0; }
.phone-screen .age-slider { width:100%; margin:8px 0; }
.phone-screen .age-ticks { padding:0; }
.phone-screen .age-result { margin-top:14px; }
.phone-class { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px; padding:9px 0; border-top:1px solid var(--line); }
.phone-class button { text-align:left; font-size:14px; line-height:1.3; padding:7px 3px; }
.phone-class button:last-child { color:var(--blue); font-weight:800; }
.schedule-filters { margin:12px 0 18px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.schedule-filters summary { cursor:pointer; font-weight:800; padding:8px 0; }
.schedule-filters .schedule-bar { margin:12px 0; }
.course-media { margin-top:40px; }
.course-media h3 { margin:20px 0 12px; }
.course-media-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; }
.course-media-grid .gallery-item,.winner-grid .gallery-item { width:100%; height:auto; padding:0; }
.course-media-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.course-media video { display:block; width:min(100%,720px); max-height:65vh; border-radius:18px; background:#131313; }
.winner-grid { margin-top:28px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.winner-grid .gallery-item:first-child { grid-column:1/-1; }
.winner-grid img { width:100%; height:auto; }
.news-list { margin-top:24px; }
.news-list article { padding:22px 0; border-top:1px solid var(--line); white-space:pre-line; }
.footer { background:#141416; }
.footer .brand-name,.footer .logo .brand-name { color:#fff; }
.privacy-demo,#demo-label { display:none; }
.chat-toggle { box-shadow:none; background:var(--deep); color:var(--paper); }
@media(max-width:1040px) {
  .header .nav { display:none; }
  .header .hamb { display:grid; }
  .header-tools { margin-left:auto; }
}
@media(max-width:680px) {
  :root { --header-height:63px; }
  .header-tools > :not(.booking-top):not(.hamb) { display:none; }
  .header .booking-top { display:inline-flex; padding:9px 11px; min-height:40px; font-size:13px; }
  .header .hamb { width:40px; height:40px; background:transparent; border:0; color:inherit; }
  .header .mobile-nav { background:var(--paper); color:var(--ink); max-height:calc(100dvh - var(--header-height)); overflow:auto; }
  .brand-name strong { font-size:25px; }
  .hero-grid { min-height:min(830px,calc(100svh + 35px)); gap:0; align-items:end; }
  .hero-copy { width:100%; padding:0 0 34px; }
  .hero h1 { font-size:clamp(48px,12.8vw,76px); }
  .hero .lead { margin:15px 0 19px; }
  .hero-work { width:auto; inset:0 -30px 0; mask-image:none; }
  .hero-work img { object-position:53% 33%; }
  .hero-work::after { background:linear-gradient(0deg,#a7260b 3%,#a5260bd9 29%,transparent 71%),linear-gradient(180deg,#a5290bb3,transparent 29%); }
  .benefit-lead,.benefit-grid,.phone-feature { grid-template-columns:1fr; }
  .benefit-lead { gap:45px; }
  .metal-orb { width:min(70%,280px); }
  .benefit-card { min-height:auto; }
  .phone-screen { min-height:390px; padding:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-work img { animation:none; }
  .header,.header .brand-name,.metal-orb i,.metal-dial i { transition:none; }
}
.about-facts { display:grid; gap:16px; margin-top:24px; }
.about-facts article { border-top:1px solid var(--line); padding-top:14px; }
.about-facts article p { margin-top:5px; }
body.dark .age-finder { background:var(--sky); }
html { scroll-padding-top:calc(var(--header-height) + env(safe-area-inset-top) + 12px); }
@media(max-width:1040px) {
  .header .mobile-nav.open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:1041px) and (max-width:1250px) {
  .header .nav { gap:14px; margin-left:0; }
  .header .nav a { font-size:14px; }
  .header-inner { gap:12px; }
}
@media(max-width:680px) {
  .header .mobile-nav.open { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:no-preference) {
  .phone-class { animation:phone-class-enter .22s ease-out both; }
  .phone-class:nth-child(2) { animation-delay:.04s; }
  .phone-class:nth-child(3) { animation-delay:.08s; }
  @keyframes phone-class-enter { from { opacity:.45; transform:translateY(5px); } }
}

.rendered-scene { position:relative; width:100%; aspect-ratio:1.25; }
.rendered-scene canvas { position:absolute; inset:0; width:100%; height:100%; opacity:0; }
.rendered-scene.has-webgl canvas { opacity:1; }
.rendered-scene.has-webgl .scene-fallback { visibility:hidden; }
.scene-fallback { display:grid; place-items:center; height:100%; }
.scene-fallback img { width:100%; height:100%; max-height:450px; object-fit:cover; }
.programme-art {
  border-radius:30px;
  overflow:hidden;
  background:radial-gradient(ellipse at 52% 40%,#fff, #eeefef 85%);
}
body.dark .programme-art { background:radial-gradient(ellipse at 52% 40%,#3f4043,#292a2e 85%); }
.programme-art .rendered-scene { aspect-ratio:1.28; }
.benefit-lead .rendered-scene { aspect-ratio:1.1; }
.benefit-card .rendered-scene { aspect-ratio:2; margin-top:12px; }
.phone-composition { position:relative; }
.phone-composition > .rendered-scene { position:absolute; inset:0 auto 0 27%; width:81%; height:100%; transform:translate(15%,-8%) scale(1.13); pointer-events:none; }
.phone-composition .phone-shell { position:relative; z-index:1; }
.phone-feature { overflow:hidden; }
.phone-class > span { font-size:14px; line-height:1.3; }
@media(max-width:680px) {
  .phone-composition > .rendered-scene { inset:0 0 0 auto; transform:translate(13%,-5%) scale(1.05); }
  .programme-art { border-radius:22px; }
}
.studio-feature { background:var(--paper); }
.studio-feature-grid { display:grid; grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); align-items:center; gap:clamp(20px,6vw,94px); }
.studio-feature-grid .lead { margin:15px 0 24px; }
@media(max-width:680px) { .studio-feature-grid { grid-template-columns:1fr; } }
dialog:has(.enquiry-layout) { width:min(1080px,calc(100% - 28px)); }
.enquiry-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:24px; align-items:center; }
.enquiry-art { background:radial-gradient(ellipse at 54% 48%,#fff4ea,#eeefef); border-radius:22px; }
.enquiry-art .rendered-scene { aspect-ratio:1; }
.phone-outline { height:72%; aspect-ratio:.48; border-radius:19%; border:7px ridge #d9dce0; background:linear-gradient(135deg,#ff792a,#e9400b); transform:rotate(13deg); box-shadow:14px 17px 26px #24292630; }
@media(max-width:740px) {
  .enquiry-layout { grid-template-columns:minmax(0,1fr); }
  .enquiry-art .rendered-scene { aspect-ratio:1.9; }
}

.studio-feature { background:#141414; color:#fff; overflow:hidden; }
.studio-feature-grid { min-height:clamp(370px,45vw,650px); position:relative; isolation:isolate; }
.studio-feature-grid > div:first-child { position:relative; z-index:1; padding:32px 0; }
.studio-feature h2 { font-size:clamp(47px,6.5vw,106px); line-height:.95; }
.studio-feature .lead { color:#eee; }
.studio-feature .btn.secondary { color:#fff; border-color:#ffffff91; background:#171717; }
.studio-feature .programme-art {
  width:122%;
  max-width:none;
  margin-left:-12%;
  overflow:visible;
  background:radial-gradient(ellipse at 56% 50%,#513025 0,#292421 38%,transparent 70%);
}
.studio-feature .rendered-scene { aspect-ratio:1.15; }
.studio-feature .scene-fallback img { border-radius:20px; }
@media(max-width:680px) {
  .studio-feature-grid > div:first-child { padding:0; }
  .studio-feature .programme-art { width:100%; margin:0; }
  .studio-feature .rendered-scene { aspect-ratio:1.25; }
}
@media(prefers-reduced-motion:no-preference) {
  @supports(background-clip:text) {
    .header[data-surface="hero"] .brand-name strong {
      background:linear-gradient(105deg,#fff 38%,#ffc4a6 46%,#fff 55%,#fff 100%) 100% 50% / 285% 100%;
      background-clip:text;
      color:transparent;
      animation:logo-reflection 1.35s .25s ease-out both;
    }
    @keyframes logo-reflection { from { background-position:100% 50%; } to { background-position:0% 50%; } }
  }
}
