/* Neligh visual refresh: editorial warmth, restrained depth, and lightweight motion. */
:root {
  color-scheme: light;
  --ink: #292027;
  --plum: #30222b;
  --plum-deep: #211820;
  --paper: #f6f1eb;
  --paper-bright: #fffdf9;
  --clay: #e8aa91;
  --rose: #a96968;
  --muted: #746b68;
  --line: #e5d9d0;
  --soft-shadow: 0 22px 60px rgba(48, 34, 43, .10);
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  padding-inline: clamp(20px, 5vw, 76px);
  background: rgba(38, 27, 35, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 28px rgba(22, 14, 19, .13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 12px;
  letter-spacing: .15em;
}

.brand small { color: #d0b9b5; }
.brand .scribble { animation-duration: 28s; }

.nav { gap: clamp(14px, 2.2vw, 32px); }
.nav a, .text-link { font-size: 14px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease, background .2s ease; }
.nav .nav-cta {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(232, 170, 145, .66);
  border-radius: 999px;
}
.nav .nav-cta:hover { background: rgba(232, 170, 145, .14); }
.menu-toggle { min-width: 44px; min-height: 44px; border-radius: 50%; }

.hero {
  isolation: isolate;
  min-height: 650px;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(64px, 8vw, 112px) clamp(24px, 8.5vw, 136px) 84px;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr);
  gap: clamp(32px, 5vw, 82px);
  background:
    radial-gradient(45rem 34rem at 79% 45%, rgba(170, 105, 104, .25), transparent 70%),
    radial-gradient(34rem 28rem at 12% 4%, rgba(232, 170, 145, .10), transparent 72%),
    linear-gradient(128deg, #211820 0%, #30222b 54%, #422d35 100%);
}

.hero::before {
  width: clamp(520px, 68vw, 900px);
  height: clamp(520px, 68vw, 900px);
  right: -18%;
  top: -37%;
  border-color: rgba(238, 197, 176, .24);
  transform: perspective(900px) rotateX(65deg) rotateZ(-24deg);
  box-shadow: 0 0 0 36px rgba(232, 170, 145, .035), 0 0 0 37px rgba(238, 197, 176, .17), 0 0 0 94px rgba(232, 170, 145, .025), 0 0 0 95px rgba(238, 197, 176, .12);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 50%, transparent 30%, rgba(14, 10, 14, .16) 100%);
}

.hero-copy, .hero-visual, .hero-bottom { z-index: 1; }
.hero-copy { max-width: 650px; animation: neligh-rise .75s ease-out both; }
.hero .eyebrow { color: #efb59a; }
.hero h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(3.5rem, 6.3vw, 6.15rem);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero h1 em { color: #f0b69b; }
.hero-lead { max-width: 520px; color: #e1d4d2; font-size: 16px; line-height: 1.78; }
.hero-actions { gap: 14px 22px; margin-top: 30px; }
.button {
  min-height: 52px;
  padding: 15px 23px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .005em;
  transition: transform .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.button-light { background: #f1d7ca; color: #30222b; box-shadow: 0 10px 26px rgba(12, 8, 12, .15); }
.button-light:hover { background: #fff0e8; box-shadow: 0 14px 32px rgba(12, 8, 12, .21); }
.button-dark { background: var(--plum); color: #fffaf5; }
.button-dark:hover { background: #493541; }
.text-link { color: #f2ddd5; text-underline-offset: 5px; }
.hero-note { gap: 15px; margin-top: 40px; color: #d3c1c1; font-size: 12px; }
.hero-note b { font-size: 34px; }

.hero-visual {
  width: min(100%, 420px);
  margin-left: 0;
  -webkit-perspective: 1100px;
  perspective: 1100px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  animation: neligh-float 8s ease-in-out 0.5s infinite;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3%;
  right: -10%;
  width: clamp(84px, 13vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 24%, #fff3da 0 5%, #f3c18f 16%, #d98782 47%, #754c62 72%, #2b1e2a 100%);
  box-shadow: inset -19px -22px 30px rgba(26, 16, 25, .34), 0 28px 54px rgba(12, 7, 13, .30);
  transform: translateZ(100px);
  animation: neligh-orb 9s ease-in-out infinite;
}
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -14%;
  bottom: 13%;
  width: 116%;
  height: 32%;
  border: 1px solid rgba(245, 208, 185, .48);
  border-radius: 50%;
  transform: rotate(-18deg) rotateX(65deg) translateZ(46px);
  box-shadow: 0 0 0 12px rgba(232, 170, 145, .045);
}
.portrait-frame {
  height: clamp(390px, 44vw, 530px);
  padding: 9px;
  border: 1px solid rgba(249, 216, 196, .72);
  border-radius: 220px 220px 24px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(232,170,145,.14));
  box-shadow: 0 38px 76px rgba(13, 8, 14, .32), 22px 25px 0 rgba(232, 170, 145, .17), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: rotateY(-8deg) rotateZ(-1.5deg) translateZ(26px);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease;
}
.portrait-frame img { border-radius: 210px 210px 17px 17px; object-position: center 30%; }
.portrait-sticker {
  right: -32px;
  bottom: 54px;
  padding: 17px 22px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 16px;
  background: linear-gradient(145deg, #f6d2bf, #e7a48f);
  box-shadow: 0 22px 44px rgba(16, 9, 16, .29);
  transform: translateZ(100px) rotateY(-8deg) rotateZ(4deg);
  animation: neligh-sticker 6s ease-in-out infinite;
}
.portrait-sticker i { font-size: 15px; }
.hero-visual .brand-mark {
  z-index: 2;
  color: #f2b59a;
  -webkit-transform-origin: center;
  transform-origin: center;
  animation: neligh-star-spin 4s linear infinite;
  will-change: transform;
}
.hero-bottom { left: clamp(24px, 8.5vw, 136px); right: clamp(24px, 8.5vw, 136px); color: #b9a3a5; font-size: 10px; }

.section-pad { padding: clamp(68px, 8vw, 112px) clamp(24px, 8.5vw, 136px); }
.intro { max-width: 1180px; }
.intro h2, .section-heading h2, .about h2, .contact h2, .lesson-contact h2 {
  font-size: clamp(2.45rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.intro-text, .about-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; }
.intro-text { max-width: 660px; color: var(--muted); }
.learning-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px auto 0;
  text-align: left;
}
.learning-step {
  min-height: 154px;
  padding: 21px 22px;
  border: 1px solid rgba(150, 112, 103, .19);
  border-radius: 18px;
  background: rgba(255, 253, 249, .72);
  box-shadow: 0 10px 30px rgba(59, 42, 46, .045);
}
.learning-step span { display: block; margin-bottom: 14px; color: #a46d66; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.learning-step h3 { margin: 0 0 8px; color: var(--plum); font: 600 19px/1.3 Manrope, Arial, sans-serif; }
.learning-step p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.intro-cta { margin-top: 24px; }

.directions { background: linear-gradient(135deg, #eee6df, #f6f1eb 72%); }
.section-heading { margin-bottom: 34px; }
.section-heading .eyebrow, .prices .eyebrow, .gallery .eyebrow { color: #9a6963; }
.section-index { font-size: 29px; letter-spacing: .02em; }
.direction-grid { gap: 22px; -webkit-perspective: 1200px; perspective: 1200px; }
.direction-card {
  overflow: hidden;
  border: 1px solid rgba(93, 64, 63, .10);
  border-radius: 22px;
  background: var(--paper-bright);
  box-shadow: 0 14px 38px rgba(46, 31, 38, .08);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
}
.direction-image { height: clamp(220px, 24vw, 290px); background: #d8c9bf; }
.direction-image img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.direction-image span { border-radius: 999px; font-size: 12px; }
.direction-info { padding: 24px 24px 22px; }
.direction-info h3 { font-size: 25px; letter-spacing: -.03em; }
.direction-info p { min-height: 82px; color: var(--muted); font-size: 16px; line-height: 1.62; }
.direction-info a { min-height: 44px; padding-top: 12px; font-size: 14px; }

.about { gap: clamp(40px, 8vw, 120px); }
.about-photo { max-width: min(100%, 430px); perspective: 1000px; }
.about-photo::before { inset: 20px -20px -20px 20px; border: 1px solid #bb8b7a; border-radius: 18px; transform: translateZ(-20px); }
.about-photo img { height: clamp(360px, 42vw, 520px); border-radius: 18px; box-shadow: 0 24px 60px rgba(42, 28, 34, .14); transform: rotateY(3deg); }
.photo-caption { right: -12px; bottom: 16px; padding: 10px 14px; border-radius: 999px; background: rgba(40, 29, 36, .9); color: #fff8f2; font-size: 12px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.support { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 249, .72); }
.support small { font-size: 13px; line-height: 1.6; }

.gallery { background: #fcfaf6; color: var(--ink); }
.gallery-hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.gallery-tabs { gap: 8px; }
.tab {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #e5d7cd;
  border-radius: 999px;
  background: #fffdf9;
  color: #5c4d4a;
  font-size: 14px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.tab.active, .tab:hover { border-color: var(--plum); background: var(--plum); color: #fff8f2; }
.gallery-grid { gap: 15px; }
.work { border-radius: 15px; box-shadow: 0 10px 28px rgba(45, 31, 38, .10); transition: transform .26s ease, box-shadow .26s ease; }
.work span { padding: 30px 14px 13px; font-size: 12px; }

.color-promo {
  min-height: 440px;
  padding: clamp(56px, 7vw, 92px) clamp(24px, 11vw, 170px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr);
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(34rem 28rem at 82% 48%, rgba(245, 196, 167, .28), transparent 70%),
    linear-gradient(124deg, #70474f, #9a5e5e 57%, #7b4c55);
}
.color-promo > div:nth-child(3) { max-width: 520px; }
.color-promo h2 { font-size: clamp(3rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.05em; }
.color-promo p:not(.eyebrow) { font-size: 16px; line-height: 1.7; }
.color-promo .button { margin-top: 5px; }
.palette-art {
  width: clamp(220px, 24vw, 310px);
  height: clamp(190px, 20vw, 255px);
  justify-self: center;
  margin: 16px auto;
  border: 1px solid rgba(255,255,255,.52);
  background: linear-gradient(145deg, #f6e7d8, #dec1ad);
  box-shadow: 18px 23px 0 rgba(53, 29, 42, .32), 0 38px 60px rgba(41, 20, 34, .28), inset 0 1px 3px rgba(255,255,255,.76);
  transform: rotate(-8deg) rotateX(9deg) translateZ(20px);
  animation: neligh-palette-float 7s ease-in-out infinite;
}
.palette-art > span { right: -18px; bottom: -22px; font-size: 21px; text-shadow: 0 4px 12px rgba(48, 24, 38, .35); }
.paint { box-shadow: 0 9px 15px rgba(44, 26, 34, .16); }
.color-orb { filter: blur(1px); }

.prices { background: var(--paper); }
.price-note { color: var(--muted); font-size: 14px; line-height: 1.75; }
.price-grid { gap: 18px; perspective: 1200px; }
.price-card {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 30px 27px 25px;
  border: 1px solid rgba(80, 54, 55, .12);
  border-radius: 22px;
  background: linear-gradient(155deg, #fffefa, #f8f1e9);
  box-shadow: 0 15px 38px rgba(54, 38, 43, .08);
  transition: transform .28s ease, box-shadow .28s ease;
}
.price-card.featured {
  border-color: rgba(232, 170, 145, .58);
  background: radial-gradient(22rem 14rem at 95% 4%, rgba(232, 170, 145, .2), transparent 74%), linear-gradient(145deg, #352630, #241b24);
  box-shadow: 0 24px 58px rgba(49, 31, 40, .2);
}
.price-card h3 { font-size: 24px; }
.price-card .price { margin: 10px 0 12px; color: #9b5f59; font: 700 clamp(2.15rem, 3vw, 2.8rem)/1 Manrope, Arial, sans-serif; letter-spacing: -.055em; }
.price-card .price small { font-size: .58em; }
.price-card.featured .price { color: #f0b69b; }
.price-card > p:not(.price-type) { font-size: 16px; }
.price-card.featured > p:not(.price-type) { color: #d5c6c6; border-color: rgba(255,255,255,.15); }
.price-type { color: #9e7068; font-size: 11px; letter-spacing: .14em; }
.popular { padding: 8px 11px; border-radius: 999px; background: #efb79b; color: #38272d; font-size: 10px; letter-spacing: .07em; }
.price-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 11px 18px; border: 1px solid #d4b1a4; border-radius: 999px; color: #774c49; font-size: 14px; font-weight: 700; text-decoration: none; }
.featured .price-link { border-color: #e7aa8f; background: #e7aa8f; color: #30222b; }
.price-footnote { margin-top: 22px; color: var(--muted); font-size: 13px; }

.contact {
  color: #fbf6f1;
  background:
    radial-gradient(34rem 28rem at 8% 12%, rgba(232, 170, 145, .14), transparent 72%),
    linear-gradient(130deg, #30232d, #4a333c);
}
.contact .eyebrow { color: #efb59a; }
.contact h2 em { color: #efb59a; }
.contact-copy > p:not(.eyebrow) { color: #dfd0ce; }
.contact-details { min-height: 44px; color: #f0b69b; font-size: 15px; }
.contact-details a { text-decoration: none; text-underline-offset: 4px; }
.contact-details a:hover { text-decoration: underline; }
.privacy, .form-note, .yandex-form-prompt p { color: #6e6460; font-size: 14px; line-height: 1.7; }
.privacy a, .form-note a, .yandex-form-link { color: #80544f; }
.contact-form { border: 1px solid rgba(255,255,255,.6); border-radius: 24px; background: var(--paper-bright); box-shadow: 0 28px 70px rgba(15, 9, 15, .28); }
.yandex-form-prompt { min-height: 220px; }
.yandex-form-prompt .button { min-height: 50px; }
.yandex-form-wrap iframe { border-radius: 14px; }

footer {
  min-height: 110px;
  padding: 26px clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  background: #211820;
  color: #d8c9c7;
  font-size: 13px;
}
footer a { min-height: 44px; display: inline-flex; align-items: center; color: #f1d6ca; text-underline-offset: 4px; }
footer .brand { color: #fbf6f1; }

.lesson-section { background: linear-gradient(135deg, #eee6df, #f6f1eb); }
.lesson-hero { min-height: 590px; }
.lesson-hero .hero-lead { font-size: 16px; }
.lesson-card { border: 1px solid rgba(93,64,63,.10); border-radius: 20px; background: #fffdf9; box-shadow: 0 12px 34px rgba(46,31,38,.07); }
.lesson-card h3 { font-size: 23px; }
.lesson-card p, .lesson-card li, .lesson-faq-item p { font-size: 16px; line-height: 1.72; }
.lesson-faq { background: #fcfaf6; }
.lesson-faq-item { border-color: #e4d8cf; }
.lesson-faq-item h3 { font-size: 21px; }
.lesson-contact { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); border-radius: 24px; background: linear-gradient(130deg, #30232d, #4a333c); }
.lesson-contact::after { content: ""; position: absolute; width: 280px; height: 280px; top: -150px; right: -60px; border: 1px solid rgba(239,181,154,.4); border-radius: 50%; box-shadow: 0 0 0 28px rgba(239,181,154,.05), 0 0 0 29px rgba(239,181,154,.22); pointer-events: none; }
.lesson-contact > * { position: relative; z-index: 1; }
.lesson-contact h2 { color: #fbf6f1; }
.lesson-contact p { font-size: 15px; }
.lesson-contact .button { margin-top: 8px; }
.lesson-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }

.policy-page { color: var(--ink); }
.policy-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.045em; }
.policy-page h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.policy-page p, .policy-page li { font-size: 16px; line-height: 1.78; }
.policy-page a { color: #80544f; text-underline-offset: 3px; }

.color-lab-page > header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 70px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 28px rgba(22,14,19,.13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.color-lab-page { background: #f4eee8; }
.color-lab-page main { max-width: 1200px; padding-top: clamp(42px, 6vw, 76px); }
.color-lab-page .heading h1 { letter-spacing: -.05em; }
.lab { border: 1px solid rgba(96,67,64,.12); border-radius: 26px; background: #fffdf9; box-shadow: var(--soft-shadow); }
.control select { min-height: 48px; border: 1px solid #d9cbc2; border-radius: 12px; padding: 10px 14px; font-size: 16px; }
.swatches button, .result-info button { min-height: 44px; border-radius: 999px; }
.thanks-page { background: radial-gradient(35rem 28rem at 85% 12%, rgba(232,170,145,.28), transparent 72%), linear-gradient(135deg,#30222b,#4a333c); }
.thanks-page main { border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,253,249,.08); box-shadow: 0 26px 72px rgba(10,6,12,.22); }

.button:focus-visible, .nav a:focus-visible, .text-link:focus-visible, .price-link:focus-visible,
.tab:focus-visible, .direction-info a:focus-visible, .work:focus-visible, footer a:focus-visible {
  outline: 3px solid #d7836e;
  outline-offset: 4px;
}

@keyframes neligh-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes neligh-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(0); }
  50% { transform: translate3d(0, -9px, 0) rotateZ(.4deg); }
}
@keyframes neligh-orb {
  0%, 100% { transform: translate3d(0, 0, 80px) rotateZ(0); }
  50% { transform: translate3d(-5px, -11px, 110px) rotateZ(8deg); }
}
@keyframes neligh-sticker {
  0%, 100% { transform: translateZ(100px) rotateY(-8deg) rotateZ(4deg) translateY(0); }
  50% { transform: translateZ(100px) rotateY(-8deg) rotateZ(4deg) translateY(-7px); }
}
@keyframes neligh-palette-float {
  0%, 100% { transform: rotate(-8deg) rotateX(9deg) translate3d(0,0,20px); }
  50% { transform: rotate(-8deg) rotateX(9deg) translate3d(0,-9px,28px); }
}
@keyframes neligh-star-spin {
  from { -webkit-transform: translateZ(125px) rotate(0deg); transform: translateZ(125px) rotate(0deg); }
  to { -webkit-transform: translateZ(125px) rotate(360deg); transform: translateZ(125px) rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .portrait-frame:hover { transform: rotateY(0) rotateZ(0) translateZ(38px) scale(1.015); box-shadow: 0 48px 90px rgba(13,8,14,.34), 24px 27px 0 rgba(232,170,145,.18); }
  .direction-card:hover { transform: translateY(-7px) rotateX(1.2deg); box-shadow: 0 25px 52px rgba(46,31,38,.13); }
  .direction-card:hover .direction-image img { transform: scale(1.045); }
  .work:hover { transform: translateY(-5px) rotateX(1deg); box-shadow: 0 18px 40px rgba(45,31,38,.16); }
  .price-card:hover { transform: translateY(-5px) rotateX(1deg); box-shadow: 0 22px 48px rgba(54,38,43,.14); }
  .price-card.featured:hover { transform: translateY(-8px) rotateX(1deg); }
}

@media (max-width: 1000px) {
  .hero { padding-inline: 6vw; }
  .hero-bottom { left: 6vw; right: 6vw; }
  .section-pad { padding-inline: 6vw; }
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); justify-self: center; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card:last-child { grid-column: 1 / -1; }
  .contact { grid-template-columns: .9fr 1.1fr; gap: 6%; }
}

@media (max-width: 760px) {
  .topbar { height: 72px; padding-inline: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 12px max(20px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.10);
    border-radius: 0 0 20px 20px;
    background: rgba(38,27,35,.98);
    box-shadow: 0 18px 32px rgba(17,10,16,.25);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav.open { display: flex; align-items: stretch; gap: 2px; }
  .nav a { width: 100%; min-height: 48px; padding: 11px 8px; font-size: 15px; }
  .nav .nav-cta { justify-content: center; margin-top: 7px; padding-inline: 18px; }
  .hero {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 52px 7vw 28px;
  }
  .hero h1 { font-size: clamp(2.65rem, 9.5vw, 4.4rem); line-height: 1.01; }
  .hero-lead { font-size: 16px; }
  .hero-visual { width: min(76vw, 350px); justify-self: center; margin: 0; }
  .portrait-frame { height: min(112vw, 440px); min-height: 340px; }
  .portrait-sticker { right: -20px; bottom: 45px; }
  .hero-bottom { position: static; margin-top: -12px; font-size: 10px; letter-spacing: .08em; }
  .section-pad { padding: 62px 7vw; }
  .intro h2, .section-heading h2, .about h2, .contact h2, .lesson-contact h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .learning-path { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .learning-step { min-height: 0; padding: 17px 18px; }
  .learning-step span { margin-bottom: 8px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card:last-child { grid-column: auto; max-width: none; }
  .direction-image { height: clamp(220px, 62vw, 340px); }
  .direction-info p { min-height: 0; }
  .about, .contact { grid-template-columns: 1fr; gap: 38px; }
  .about-photo { width: min(78vw, 350px); max-width: 100%; }
  .about-photo img { height: min(95vw, 430px); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .gallery-hint { width: 100%; margin: 0; }
  .color-promo { grid-template-columns: 1fr; gap: 12px; padding: 58px 7vw 48px; }
  .color-promo > div:nth-child(3) { max-width: 100%; }
  .color-promo h2 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .palette-art { width: min(65vw, 260px); height: min(54vw, 210px); margin: 22px auto 6px; }
  .price-grid { grid-template-columns: 1fr; gap: 14px; }
  .price-card:last-child { grid-column: auto; }
  .price-card { min-height: 0; padding: 25px 22px; }
  .price-card.featured { transform: none; }
  .price-card .price { font-size: 2.5rem; }
  .contact-form { padding: 24px 18px 18px; }
  footer { justify-content: flex-start; flex-wrap: wrap; padding: 24px 7vw max(24px, env(safe-area-inset-bottom)); }
  footer > * { flex: 1 1 42%; }
  footer .footer-brand { flex-basis: 100%; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-faq-grid { grid-template-columns: 1fr; }
  .lesson-hero { padding-top: 46px; }
  .lesson-hero .hero-visual { width: min(76vw, 330px); }
  .color-lab-page main { padding-inline: 5vw; }
  .lab { padding: 18px; }
  .thanks-page main { width: min(100% - 40px, 620px); }
}

@media (max-width: 520px) {
  .hero { gap: 31px; padding-top: 42px; }
  .hero h1 { font-size: clamp(2.45rem, 10.2vw, 3.35rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; justify-content: center; text-align: center; }
  .hero-note { margin-top: 26px; }
  .hero-visual { width: min(78vw, 320px); }
  .portrait-frame { height: min(105vw, 390px); min-height: 300px; }
  .portrait-sticker { right: -14px; bottom: 34px; padding: 14px 17px; font-size: 17px; }
  .direction-info { padding: 20px 19px; }
  .direction-info h3 { font-size: 23px; }
  .gallery-grid { gap: 8px; }
  .work { min-height: 120px; border-radius: 11px; }
  .work span { padding: 27px 9px 9px; font-size: 11px; }
  .gallery-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; margin-right: -7vw; }
  .tab { flex: 0 0 auto; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card { padding: 22px; }
  .lesson-contact { padding: 34px 24px; border-radius: 18px; }
  .lab { padding: 14px; border-radius: 20px; }
  .color-lab-page .heading { margin-bottom: 25px; }
  .mix-stage { min-height: 235px; }
  .thanks-page main { padding: 26px 20px; }
}

@media (max-width: 420px) {
  .hero-visual .brand-mark {
    left: calc(50% - 50vw + max(10px, env(safe-area-inset-left)));
  }
}

@media (pointer: coarse) {
  .hero-visual { animation-duration: 12s; }
  .palette-art { animation-duration: 12s; }
  .direction-card, .work, .price-card, .portrait-frame { transition-duration: .18s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
