/* Studiraj.RS — статический сайт. Шрифты лежат локально в assets/fonts. */

@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/caveat-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/caveat-latin-700-normal.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-latin-400-normal.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-latin-600-normal.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --board: #21403a;
  --board-deep: #1a322d;
  --chalk: #f3f1e7;
  --chalk-soft: #dfe7df;
  --chalk-dim: #a9c9bf;
  --yellow: #f4d35e;
  --ink: #1c302b;
  --paper: #f6f1df;
  --line: rgba(243, 241, 231, 0.25);
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--board);
  background-image:
    radial-gradient(circle at 20% 5%, rgba(255, 255, 255, 0.06), transparent 45%),
    radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.04), transparent 40%);
  color: var(--chalk);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, p, ul { margin: 0; }
a { color: var(--yellow); }
a:hover { color: #ffe68a; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hand { font-family: var(--hand); font-weight: 700; }
.accent { color: var(--yellow); }

/* Шапка */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.logo { font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1; color: var(--chalk); text-decoration: none; }
.logo:hover { color: var(--chalk); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { color: var(--chalk); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--yellow); }
.nav .nav-tg { color: var(--yellow); border: 2px solid var(--yellow); border-radius: 999px; padding: 8px 20px; font-weight: 600; }
.nav .nav-tg:hover { background: var(--yellow); color: var(--ink); }

/* Кнопки */
.btn { display: inline-block; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: 15px 30px; border-radius: 999px; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { background: #ffe68a; color: var(--ink); transform: translateY(-2px); }

/* Первый экран */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 48px; padding-bottom: 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.letters { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1; color: var(--chalk-dim); letter-spacing: 0.3em; }
h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(56px, 8vw, 104px); line-height: 0.95; }
.lead { font-size: 22px; max-width: 480px; color: var(--chalk-soft); }
.lead .underline { color: var(--yellow); border-bottom: 3px solid var(--yellow); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.phone { color: var(--chalk); font-size: 18px; padding: 12px 0; white-space: nowrap; }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; transform: rotate(1.5deg); }

/* Разделы */
.section { padding-top: 72px; padding-bottom: 72px; border-top: 2px dashed var(--line); }
h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }

.why { display: flex; flex-direction: column; gap: 40px; }
.why-head { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.why-head p { color: var(--chalk-soft); font-size: 19px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card { border: 2px solid rgba(243, 241, 231, 0.55); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card .num { font-family: var(--hand); font-weight: 700; font-size: 44px; line-height: 1; color: var(--yellow); }
.card p { color: var(--chalk-soft); }

.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.split > h2 { flex: 1 1 300px; }
.split > .split-body { flex: 2 1 480px; min-width: 0; }

.checks { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; font-size: 19px; }
.checks li { display: flex; gap: 18px; align-items: flex-start; }
.checks svg { flex: 0 0 30px; width: 30px; height: 30px; margin-top: 2px; color: var(--yellow); }
.checks strong { font-weight: 600; }
.word { font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--yellow); }

/* Цены */
.prices { display: flex; flex-direction: column; gap: 48px; padding-bottom: 96px; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; max-width: 860px; }
.note { background: var(--paper); color: #24332f; padding: 36px 32px; border-radius: 3px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 6px; transform: rotate(-1.5deg); }
.note.best { background: var(--yellow); transform: rotate(1.5deg); }
.note .sum { font-family: var(--hand); font-weight: 700; font-size: 68px; line-height: 1; }
.note .sum small { font-size: 34px; }
.note .per { font-weight: 600; }
.note .cond { margin-top: 12px; color: #3d4b46; }
.note.best .cond { color: #3a3a22; }

/* Контакты и подвал */
.contacts-bg { background: var(--board-deep); }
.contacts { padding-top: 72px; padding-bottom: 72px; }
address { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 19px; }
.big-phone { font-family: var(--hand); font-weight: 700; font-size: 46px; line-height: 1.2; text-decoration: none; margin-top: 12px; align-self: flex-start; }
.links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; }
.links a { padding: 10px 0; }
.footer { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(243, 241, 231, 0.2); color: #b9c9c2; font-size: 15px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header { justify-content: center; }
  .nav { justify-content: center; gap: 0 20px; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .prices { padding-bottom: 72px; }
  .note, .note.best { transform: none; }
}
