/* Türkçe Defter — сайт. Цвета из логотипа и тетрадей */
:root {
  --bg: #faf6ee; --paper: #fff; --ink: #1f2328; --mute: #5f6670; --line: #e6dfd2;
  --red: #c8102e; --tea: #b5501a; --sun: #f29b30; --teal: #1f8a99; --soft: #fbf0e6;
  --r: 14px; --w: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.tr { color: var(--red); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--mute); max-width: 36em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tea); margin-bottom: 12px; }
section { padding: 72px 0; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250,246,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 19px; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--red); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; font-size: 17px; transition: transform .15s, background .15s; }
.btn:hover { background: #a90d26; transform: translateY(-1px); }
.btn.sm { padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.note { font-size: 14px; color: var(--mute); }

/* первый экран */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .pages { position: relative; height: 520px; }
.hero .pages img { position: absolute; width: 62%; border-radius: 6px; box-shadow: 0 18px 40px rgba(60,40,20,.18), 0 2px 6px rgba(60,40,20,.1); }
.hero .pages img:nth-child(1) { left: 0; top: 30px; transform: rotate(-5deg); }
.hero .pages img:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding: 0; list-style: none; font-size: 15px; color: var(--mute); }
.facts b { color: var(--ink); font-size: 22px; display: block; line-height: 1.1; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .pages { height: 380px; max-width: 460px; }
}

/* сетки и карточки */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.alt .card { background: var(--bg); }
.card .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--mute); font-size: 16px; }

/* шаги недели */
.week { counter-reset: d; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.week li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: 15px; color: var(--mute); }
.week li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.week li::before { counter-increment: d; content: "День " counter(d); display: block; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.week li:last-child::before { content: "День 6 · повторение"; color: var(--tea); }
@media (max-width: 900px) { .week { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .week { grid-template-columns: 1fr 1fr; } }

/* галерея страниц */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(60,40,20,.1); background: #fff; }
.shots figcaption { font-size: 14px; color: var(--mute); margin-top: 10px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }

/* кварталы */
.q { border-left: 4px solid var(--sun); }
.q:nth-child(2) { border-left-color: var(--tea); }
.q:nth-child(3) { border-left-color: var(--teal); }
.q:nth-child(4) { border-left-color: var(--red); }
.q .lvl { display: inline-block; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--tea); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }

/* цены */
.price { display: flex; flex-direction: column; }
.price .sum { font-size: 38px; font-weight: 800; margin: 6px 0 4px; }
.price ul { padding-left: 20px; color: var(--mute); font-size: 16px; flex: 1; }
.price .btn { align-self: flex-start; }
.price.main { border: 2px solid var(--red); box-shadow: 0 14px 34px rgba(200,16,46,.12); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 999px; }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: -4px; font-size: 26px; color: var(--red); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--mute); }

/* финальный призыв */
.final { background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.final img { width: 150px; height: 150px; border-radius: 50%; }
.final .lead { color: #c9cdd3; }
@media (max-width: 700px) { .final { grid-template-columns: 1fr; padding: 32px; } }

/* программа */
.prog h2 { margin-top: 48px; }
.prog table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 16px; }
.prog th, .prog td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prog th { background: var(--soft); font-size: 14px; }
.prog td.n { width: 48px; font-weight: 800; color: var(--red); }
.prog tr.cp td { background: #fff8ef; font-weight: 600; }
.prog td.g { color: var(--mute); font-size: 15px; }
@media (max-width: 700px) { .prog .hide-m { display: none; } }

/* подвал */
footer { padding: 40px 0 56px; color: var(--mute); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--mute); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
