/* Сайт — в обычном современном стиле; пиксельная только Мила (canvas и портрет). */
@font-face { font-family: "Playfair"; src: url(../fonts/playfair-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(../fonts/playfair-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(../fonts/playfair-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(../fonts/playfair-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #d6ece2; --cream: #fbf5ec; --card: #fffdf9; --cocoa: #3b2219; --cocoa2: #5e3a2a; --muted: #7c6156;
  --mint: #8fd6bf; --mint2: #3f9c80; --mint-ink: #2e725e; --rose: #f7dfe2; --rose2: #a5455d;
  /* 2026-11-14 контраст мелкого текста до 4,5:1 (WCAG 1.4.3): --mint-ink для мелких надписей вместо --mint2, --rose2 было #b24a64, подсказка была #a08779 */
  --r: 22px; --shadow: 0 18px 48px rgba(59, 34, 25, .12), 0 3px 10px rgba(59, 34, 25, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--cocoa); font: 17px/1.6 "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Playfair", Georgia, serif; font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
a { color: inherit; }

/* ---------- первый экран ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg); touch-action: manipulation;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 3.2vh, 36px) clamp(20px, 5vw, 80px) 0; position: relative; z-index: 6; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font: 800 clamp(26px, 2.4vw, 36px) / 1 "Playfair", Georgia, serif; color: var(--cocoa); }
.brand span { font: 600 13px/1 "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); }
/* логотип (2026-11-10, сделан Егором в Recraft, вектор — scripts/logo_trace.py): Мила с чашкой + надпись */
.brand { align-items: center; gap: 12px; }
.brand-mark { display: block; width: clamp(44px, 3.6vw, 56px); height: auto; }
.brand-word { display: block; width: clamp(96px, 8vw, 124px); height: auto; }
.foot-logo { display: block; width: 96px; height: auto; margin: 0 0 16px; opacity: .92; }
.nav { display: flex; gap: 8px; }
.nav a { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--cocoa2); padding: 10px 16px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: rgba(255, 255, 255, .6); }
.stage { position: relative; grid-row: 2; grid-column: 1; }
#cv-girl { position: absolute; bottom: 0; left: 50%; image-rendering: pixelated; image-rendering: crisp-edges; }

.ask { grid-row: 2; grid-column: 2; align-self: center; justify-self: start; position: relative; z-index: 5; width: min(620px, 90%); margin-bottom: 6vh;
  background: var(--card); border-radius: 32px; padding: clamp(30px, 4.4vh, 52px) clamp(28px, 3.2vw, 52px); box-shadow: var(--shadow); }
.ask-kicker { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); }
.ask-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint2); }
.ask-q { font-size: clamp(42px, 4.6vw, 74px); color: var(--cocoa); margin: 0 0 .32em; }
.ask-q em { font-style: italic; color: var(--mint2); }
.ask-sub { margin: 0 0 30px; font-size: clamp(16px, 1.2vw, 19px); color: var(--muted); max-width: 30em; }
.ask-btns { position: relative; display: flex; gap: 14px; align-items: center; min-height: 64px; }
.abtn { font: 800 clamp(17px, 1.3vw, 20px) / 1 "Nunito", sans-serif; padding: 18px 38px; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s, opacity .2s, box-shadow .2s; }
.abtn.yes { background: var(--cocoa2); color: #fff8ef; box-shadow: 0 10px 24px rgba(94, 58, 42, .28); }
.abtn.yes:hover, .abtn.yes:focus-visible { background: #7a4a36; }
.abtn.no { background: var(--rose); color: var(--rose2); }
.abtn.no.gone { opacity: 0; pointer-events: none; }
.abtn:focus-visible { outline: 3px solid var(--mint2); outline-offset: 4px; }
.ask[data-level="1"] .yes { transform: scale(1.1); }  .ask[data-level="1"] .no { padding: 14px 28px; font-size: 16px; }
.ask[data-level="2"] .yes { transform: scale(1.2); }  .ask[data-level="2"] .no { padding: 11px 20px; font-size: 14px; }
.ask[data-level="3"] .yes { transform: scale(1.3); }  .ask[data-level="3"] .no { padding: 8px 14px; font-size: 12px; }
.hint { margin: 24px 0 0; font-size: 14px; color: #886f60; }

.bubble { position: absolute; left: 0; top: 0; z-index: 4; padding: 10px 16px; background: #fff; color: var(--cocoa); border-radius: 16px 16px 16px 4px;
  font: 700 15px/1.3 "Nunito", sans-serif; box-shadow: 0 8px 22px rgba(59, 34, 25, .12); opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.bubble.on { opacity: 1; transform: none; }

/* ---------- секции ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.h2 { font-size: clamp(34px, 3.4vw, 52px); color: var(--cocoa); margin-bottom: .25em; }
.sub { margin: 0 0 40px; color: var(--muted); }
.menu { padding: 110px 0; background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; background: var(--card); border-radius: var(--r); padding: 28px 26px 26px; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); font-size: 32px; margin-bottom: 18px; }
.card h3 { font-size: 23px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }
.tag { position: absolute; top: 24px; right: 22px; background: var(--rose); color: var(--rose2); font-weight: 800; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.mila { padding: 110px 0; background: var(--bg); }
.mila-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.portrait { background: var(--card); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.portrait img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 16px; background: #eaf6f0; }
.mila p { max-width: 36em; color: #4d362c; }
.foot { padding: 36px 0; background: var(--cocoa); color: #ead6c4; font-size: 15px; }
.foot small { opacity: .75; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mila-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 280px; }
}
@media (max-aspect-ratio: 19/20) {
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .nav { display: none; }
  .brand span { display: none; }
  .ask { grid-row: 2; grid-column: 1; justify-self: center; width: auto; margin: 22px 16px 8px; border-radius: 26px; }
  .stage { grid-row: 3; height: 60vh; }
  .hint { display: none; }
  .bubble { white-space: normal; max-width: 44vw; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
