/* Capoo — онлайн-репетитор для студентів */

:root {
  --ink: #10221f;
  --ink-soft: #4a5f5b;
  --line: #dbe6e3;
  --paper: #ffffff;
  --paper-tint: #f2f7f5;
  --brand: #0f766e;
  --brand-dark: #0b5b55;
  --accent: #d97706;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 118, 110, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 40px; }
p { margin: 0 0 14px; }
a { color: var(--brand-dark); }

.c-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.c-wrap--narrow { max-width: 780px; }

/* ---------- Bar ---------- */
.c-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.c-bar__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.c-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.c-mark__dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
}
.c-mark__word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

.c-menu { display: flex; align-items: center; gap: 22px; }
.c-menu a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.c-menu a:hover { color: var(--brand-dark); }
.c-menu__cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 16px; border-radius: 10px;
}
.c-menu__cta:hover { background: var(--brand-dark); }

.c-toggle {
  display: none;
  width: 40px; height: 36px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer;
  position: relative;
}
.c-toggle span,
.c-toggle span::before,
.c-toggle span::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.c-toggle span { top: 50%; margin-top: -1px; }
.c-toggle span::before { top: -6px; left: 0; transform: none; }
.c-toggle span::after { top: 6px; left: 0; transform: none; }

/* ---------- Hero ---------- */
.c-lead-in { padding: 64px 0 56px; background: linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%); }
.c-lead-in__grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 44px; align-items: start; }

.c-eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; font-weight: 700; color: var(--brand);
  margin-bottom: 10px;
}
.c-sub { color: var(--ink-soft); font-size: 18px; max-width: 620px; }

.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }

.c-btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 13px 24px; border-radius: 11px;
  font-weight: 700; font-size: 16px; border: 1px solid transparent;
  cursor: pointer;
}
.c-btn--solid { background: var(--brand); color: #fff; }
.c-btn--solid:hover { background: var(--brand-dark); }
.c-btn--ghost { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.c-btn--ghost:hover { border-color: var(--brand); }
.c-btn--full { width: 100%; font-family: inherit; }

.c-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.c-ticks li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.c-card-lift {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px;
}
.c-card-lift h2 { font-size: 19px; }
.c-card-lift ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.c-card-lift li { margin-bottom: 9px; font-size: 15px; }

/* ---------- Blocks ---------- */
.c-block { padding: 58px 0; }
.c-block--tint { background: var(--paper-tint); }

.c-h2 { font-size: 30px; margin-bottom: 18px; }
.c-h2--light { color: #fff; }
.c-note { color: var(--ink-soft); font-size: 15px; max-width: 700px; }

.c-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.c-tiles--3 { grid-template-columns: repeat(3, 1fr); }

.c-tile {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.c-tile--pad { padding: 26px 24px; }
.c-tile h3 { font-size: 18px; }
.c-tile p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Flow ---------- */
.c-flow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.c-flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.c-flow__n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.c-flow h3 { font-size: 17px; }
.c-flow p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Price ---------- */
.c-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 18px; }
.c-price__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; text-align: center;
}
.c-price__item--hi { border-color: var(--brand); box-shadow: var(--shadow); }
.c-price__label { font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.c-price__val { font-size: 27px; font-weight: 800; color: var(--brand-dark); margin-bottom: 6px; }
.c-price__meta { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.c-faq {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 10px;
}
.c-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: '+'; float: right; color: var(--brand); font-weight: 800; }
.c-faq[open] summary::after { content: '–'; }
.c-faq p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Start / form ---------- */
.c-start { padding: 60px 0 66px; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; }
.c-start__sub { color: rgba(255, 255, 255, 0.86); margin-bottom: 26px; }

.c-form {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.c-field { display: flex; flex-direction: column; }
.c-field--wide { grid-column: 1 / -1; }
.c-field label { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.c-field input,
.c-field select,
.c-field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 13px; background: #fff; outline: none;
}
.c-field input:focus,
.c-field select:focus,
.c-field textarea:focus { border-color: var(--brand); }
.c-field textarea { resize: vertical; }

.c-field.is-bad input,
.c-field.is-bad select { border-color: #c53030; }
.c-field__err { color: #c53030; font-size: 13px; margin-top: 5px; }

.c-form__note { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }
.c-form__note a { color: var(--brand-dark); }

.c-msg { display: none; margin: 12px 0 0; font-size: 15px; text-align: center; }
.c-msg.is-on { display: block; }
.c-msg.is-ok { color: var(--brand-dark); font-weight: 700; }
.c-msg.is-err { color: #c53030; font-weight: 600; }

/* ---------- Foot ---------- */
.c-foot { background: #0c1a18; color: #cfe0dc; padding: 38px 0 26px; }
.c-foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.c-foot__brand { font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 4px; }
.c-foot__line { font-size: 15px; margin: 0; color: #a6bdb8; }
.c-foot__links { display: grid; gap: 8px; }
.c-foot__links a { color: #cfe0dc; text-decoration: none; font-size: 15px; }
.c-foot__links a:hover { color: #fff; }
.c-foot__copy { margin: 24px 0 0; font-size: 13px; color: #7d938f; }

/* ---------- Legal pages ---------- */
.c-doc { padding: 48px 0 60px; }
.c-doc h1 { font-size: 32px; margin-bottom: 8px; }
.c-doc h2 { font-size: 20px; margin-top: 28px; }
.c-doc p, .c-doc li { color: var(--ink-soft); font-size: 16px; }
.c-doc ul { padding-left: 22px; }
.c-doc__date { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .c-lead-in__grid { grid-template-columns: 1fr; }
  .c-tiles--3 { grid-template-columns: 1fr; }
  .c-flow { grid-template-columns: repeat(2, 1fr); }
  .c-price { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .c-h2 { font-size: 25px; }
  .c-toggle { display: block; }
  .c-menu {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .c-menu.is-on { display: flex; }
  .c-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .c-menu__cta { text-align: center; margin-top: 10px; border-bottom: none !important; }
  .c-tiles { grid-template-columns: 1fr; }
  .c-flow { grid-template-columns: 1fr; }
  .c-form { grid-template-columns: 1fr; padding: 20px 18px; }
}
