/* Общие стили сайта mrskate.ru на своём шаблоне.
   Выделены из index.html 2026-08-10, чтобы не дублировать на каждой странице. */
/* Самохостинг: ноль внешних запросов. Оба шрифта — SIL OFL 1.1. */
@font-face{
  font-family:"Manrope";
  src:url("assets/fonts/manrope-regular.woff2") format("woff2");
  font-weight:400 600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Nunito Sans";
  src:url("assets/fonts/nunitosans-700.woff2") format("woff2");
  font-weight:700 800; font-style:normal; font-display:swap;
}
:root{
  --yellow:#f2c000; --yellow-d:#d9ab00; --orange:#ff6529;
  --cream:#fff6d6; --cream-2:#fffdf4; --border:#dddad2;
  --green:#14834d; --ink:#1c1c1c; --muted:#5a5a5a;
  --font:"Manrope","Segoe UI",Arial,sans-serif;
  --font-head:"Nunito Sans","Manrope",Arial,sans-serif;
  --maxw:1180px; --shadow:0 8px 26px rgba(0,0,0,.10);
}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--cream-2);line-height:1.45}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h2,h3{font-family:var(--font-head);margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;width:100%}
.sec{padding:56px 0}
.sec-t{font-family:var(--font-head);font-size:clamp(26px,3.4vw,42px);line-height:1.1;margin:0 0 12px;letter-spacing:-.01em}
.sec-s{font-size:17px;color:var(--muted);margin:0 0 30px;max-width:60ch}
.hl{color:var(--yellow-d)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;
  font-family:inherit;font-weight:800;font-size:16px;padding:13px 24px;border-radius:12px;transition:background .12s,transform .12s}
.btn-yellow{background:var(--yellow);color:var(--ink)}
.btn-yellow:hover{background:var(--yellow-d);transform:translateY(-1px)}
.btn-ghost{background:#fff;color:var(--ink);border:1.5px solid var(--border)}
.btn-ghost:hover{border-color:var(--yellow)}

/* ── Header ── */
.hdr{background:var(--cream-2);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}
.hdr-in{display:flex;align-items:center;gap:18px;min-height:66px;padding-top:8px;padding-bottom:8px}
.logo img{height:36px;width:auto}
.hdr-right{margin-left:auto;display:flex;align-items:center;gap:16px}
.hdr-phone{font-weight:800;white-space:nowrap;font-size:15px}
.hdr-phone:hover{color:var(--yellow-d)}
.burger{display:none;margin-left:auto;width:44px;height:44px;border:none;background:transparent;cursor:pointer;flex-direction:column;gap:5px;justify-content:center;align-items:center}
.burger span{width:24px;height:3px;background:var(--ink);border-radius:2px}
.mnav{display:none}

/* ── Hero ── */
.hero{background:var(--cream)}
.hero-in{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:52px 0 60px}
.hero h1{font-family:var(--font-head);font-size:clamp(30px,4.6vw,52px);line-height:1.06;margin:0 0 18px;letter-spacing:-.01em}
.hero .lead{font-size:19px;color:var(--muted);margin:0 0 10px;max-width:32ch}
.hero .tagline{font-size:17px;font-weight:800;color:var(--yellow-d);margin:0 0 26px}
.hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.btn-sveden{font-weight:600;font-size:14px;line-height:1.25;text-align:left;max-width:280px;white-space:normal;padding:12px 20px}
.hero-visual{display:flex;justify-content:center}
.hero-visual img{width:100%;max-width:520px;border-radius:20px}

/* ── Плитки направлений ── */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.tile{display:flex;align-items:center;justify-content:center;text-align:center;min-height:74px;padding:14px 16px;
  background:#fff;border:1.5px solid var(--border);border-radius:14px;font-weight:700;font-size:16px;transition:.12s}
.tile:hover{border-color:var(--yellow);background:var(--cream);transform:translateY(-2px)}

/* ── Карточки «почему мы» ── */
.why{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.why-card{background:var(--green);color:#fff;border-radius:22px;padding:26px 24px 0;display:flex;flex-direction:column;overflow:hidden}
.why-card h3{font-size:26px;line-height:1.15;margin:0 0 10px}
.why-card p{font-size:15px;margin:0 0 18px;opacity:.93}
.why-card img{margin-top:auto;width:100%}
/* карточки «почему мы» — вырезы по контуру с прозрачностью (из Figma),
   поэтому без рамки и скругления: рисунок ложится прямо на зелёную плашку */
.why-card.plain{background:var(--cream);color:var(--ink);padding-bottom:26px}

/* ── Тарифы ── */
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(238px,1fr));gap:18px}
.plan{background:#fff;border:1.5px solid var(--border);border-radius:18px;padding:22px 22px 24px;display:flex;flex-direction:column}
.plan h3{font-size:19px;margin:0 0 4px}
.plan .age{font-size:14px;color:var(--muted);margin:0 0 14px}
.plan .price{font-family:var(--font-head);font-size:30px;font-weight:800;margin:0}
.plan .per{font-size:13.5px;color:var(--muted);margin:2px 0 12px}
.plan ul{list-style:none;margin:0 0 16px;padding:0;font-size:14.5px}
.plan li{padding:6px 0;border-top:1px dashed var(--border);display:flex;justify-content:space-between;gap:12px}
.plan li b{white-space:nowrap}
.plan .save{color:var(--green);font-weight:700}
.plan .btn{margin-top:auto;width:100%}

/* ── Шаги ── */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-bottom:26px}
.step{background:#fff;border:1.5px solid var(--border);border-radius:16px;padding:20px 22px}
.step span{display:inline-flex;width:34px;height:34px;border-radius:50%;background:var(--yellow);color:var(--ink);
  align-items:center;justify-content:center;font-weight:800;margin-bottom:10px;font-family:var(--font-head)}
.step p{margin:0;font-size:15.5px;font-weight:600}

/* ── Три колонки «навыки» ── */
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px}
.col{background:#fff;border:1.5px solid var(--border);border-radius:18px;padding:24px}
.col h3{font-size:22px;margin:0 0 12px}
.col h3 em{font-style:normal;color:var(--orange)}
.col ul{margin:0;padding-left:18px;font-size:15px;color:var(--muted)}
.col li{margin:7px 0}
.col p{margin:0;font-size:15px;color:var(--muted)}

/* ── Направления-«также» ── */
.also{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}
.also-card{background:#fff;border:1.5px solid var(--border);border-radius:18px;padding:24px;display:flex;flex-direction:column}
.also-card h3{font-size:21px;margin:0 0 8px}
.also-card p{font-size:15px;color:var(--muted);margin:0 0 16px}
.also-card .btn{margin-top:auto;align-self:flex-start}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.chip{background:var(--cream);border:1.5px solid var(--yellow);border-radius:20px;padding:7px 16px;font-weight:700;font-size:14.5px}

/* ── Основатель ── */
.founder{display:grid;grid-template-columns:.85fr 1.15fr;gap:36px;align-items:center}
.founder img{border-radius:20px;width:100%;max-width:420px}
.founder h2{font-size:clamp(26px,3.2vw,38px);margin:0 0 6px}
.founder .role{color:var(--muted);margin:0 0 18px;font-size:16px}
.founder ul{margin:0 0 20px;padding-left:18px;font-size:15.5px}
.founder li{margin:8px 0}

/* ── Команда ── */
.team{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px}
.member{background:#fff;border:1.5px solid var(--border);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.member img{width:100%;aspect-ratio:4/5;object-fit:cover}
.member .body{padding:18px 20px 22px}
.member h3{font-size:20px;margin:0 0 2px}
.member .role{font-size:13.5px;color:var(--yellow-d);font-weight:700;margin:0 0 10px}
.member p{font-size:14.5px;color:var(--muted);margin:0}

/* ── Галерея ── */
.gal{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.gal img{border-radius:14px;width:100%;aspect-ratio:3/4;object-fit:cover}
.stat{display:flex;align-items:baseline;gap:12px;margin:0 0 8px}
.stat b{font-family:var(--font-head);font-size:44px;color:var(--yellow-d)}
.stat span{font-size:16px;color:var(--muted)}

/* ── Контакты и подвал ── */
.contacts{background:var(--cream)}
.contact-list{display:flex;flex-wrap:wrap;gap:14px 30px;font-size:16.5px;font-weight:700}
.contact-list a:hover{color:var(--yellow-d)}
.foot{border-top:1px solid var(--border);padding:34px 0 44px;font-size:14px;color:var(--muted)}
.foot-in{display:grid;grid-template-columns:1.2fr 1fr;gap:26px}
.foot a{text-decoration:underline}
.foot a:hover{color:var(--yellow-d)}
.foot-links{display:flex;flex-direction:column;gap:8px}

/* ── Popup ── */
.pop{position:fixed;inset:0;background:rgba(20,10,0,.55);display:none;place-items:center;z-index:100;padding:20px}
.pop.open{display:grid}
.formcard{position:relative;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:30px;width:100%;max-width:420px}
.formcard h3{font-family:var(--font-head);margin:0 0 4px;font-size:22px}
.formcard p.fm-sub{margin:0 0 18px;color:var(--muted);font-size:14px}
.pop-x{position:absolute;top:10px;right:12px;width:38px;height:38px;border:none;background:transparent;font-size:26px;line-height:1;cursor:pointer;color:var(--muted);border-radius:10px}
.pop-x:hover{background:var(--cream);color:var(--ink)}
.field{margin-bottom:12px}
.field input{width:100%;font-family:inherit;font-size:16px;padding:13px 15px;border:1.5px solid var(--border);border-radius:12px;background:var(--cream-2)}
.field input:focus{outline:2px solid var(--yellow);outline-offset:1px;border-color:var(--yellow);background:#fff}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;color:var(--muted);margin:10px 0}
.consent input{margin-top:2px;accent-color:var(--yellow-d);width:16px;height:16px;flex-shrink:0}
.consent a{color:var(--yellow-d);text-decoration:underline}
.fm-note{font-size:11.5px;color:var(--muted);margin-top:10px}
.fm-ok{display:none;background:var(--cream);border:1.5px solid var(--yellow);border-radius:12px;padding:16px;text-align:center;font-weight:700}
.mock-flag{position:fixed;left:12px;bottom:12px;z-index:80;background:#111;color:#ffd;font-size:12px;font-weight:700;padding:7px 12px;border-radius:10px;opacity:.9}
.totop{position:fixed;right:16px;bottom:16px;z-index:80;width:46px;height:46px;border-radius:50%;border:1.5px solid var(--border);
  background:#fff;cursor:pointer;font-size:20px;line-height:1;color:var(--ink)}

/* ── Responsive ── */
@media(max-width:860px){
  .hdr-phone,.hdr-right .btn{display:none}
  .burger{display:flex}
  .hero-in{grid-template-columns:1fr;padding:34px 0 42px}
  .hero-visual{order:-1}
  .founder{grid-template-columns:1fr}
  .foot-in{grid-template-columns:1fr}
  .sec{padding:40px 0}
  .mnav.open{display:flex;position:fixed;inset:66px 0 auto 0;background:var(--cream-2);border-bottom:1px solid var(--border);
    flex-direction:column;gap:8px;padding:16px 20px;z-index:39}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
