/* ===========================================================
   kondrashenkova.online — self-hosted rebuild (was Tilda)
   =========================================================== */

@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations');
}

:root {
  --accent: #2323c4;
  --accent-dark: #1b1b9c;
  --ink: #000;
  --muted: #7a7a7a;
  --bg-hero: #f2f2f2;
  --bg-soft: #eee;
  --bg-card-foot: #f0f0f0;
  --footer-ink: #bcbcbc;
  --container: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- section rhythm (mirrors Tilda's pt/pb steps) --- */
.section { padding: 150px 0; }
.section--hero { padding: 120px 0 105px; background: var(--bg-hero); }
.section--stats { padding: 60px 0 0; }
.section--soft { padding: 120px 0; background: var(--bg-soft); }

/* --- headings --- */
.section-head { text-align: center; margin-bottom: 60px; }

.section-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-descr {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.55;
  margin: 25px auto 0;
  max-width: 800px;
}

/* ===================== HERO ===================== */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__media {
  flex: 0 0 calc(50% - 20px);
  aspect-ratio: 560 / 396;
  background: #ddd center/cover no-repeat;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__body { flex: 0 0 calc(50% - 20px); }

.hero__title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero__descr {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  margin: 28px 0 0;
}

.hero__cta { margin-top: 32px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

/* ===================== STATS ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__num {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.stat__descr {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  margin: 12px 0 0;
}

/* ===================== PRICING ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-align: center;
}

.card__header {
  background: var(--accent);
  color: #fff;
  padding: 40px 30px 35px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.card__price {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  margin: 18px 0 0;
}

.card__period {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  margin: 6px 0 0;
  opacity: .9;
}

.card__body {
  flex: 1 1 auto;
  padding: 35px 30px;
  text-align: left;
}

.card__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__body li {
  position: relative;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  padding-left: 20px;
  margin-bottom: 14px;
}

.card__body li:last-child { margin-bottom: 0; }

.card__body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.card__footer {
  background: var(--bg-card-foot);
  padding: 25px 30px;
}

/* ===================== TESTIMONIALS ===================== */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.review {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.review__photo {
  flex: 0 0 300px;
  width: 300px;
  height: 300px;
  border-radius: 3px;
  overflow: hidden;
  background: #ddd;
}

.review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review__body { flex: 1 1 auto; padding-top: 4px; }

.review__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.review__role {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 8px 0 0;
  color: #444;
}

.review__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  margin: 20px 0 0;
}

/* ===================== FORM ===================== */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__row { margin-bottom: 20px; }

.form input[type=text],
.form input[type=tel],
.form input[type=email] {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease;
}

.form input::placeholder { color: #9a9a9a; }
.form input:focus { border-color: var(--accent); }

/* honeypot — hidden from humans, filled by bots */
.form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  margin: 18px 0 0;
  text-align: center;
}

.form__status {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  min-height: 24px;
}

.form__status--ok { color: #167c3a; }
.form__status--err { color: #c02626; }

/* ===================== CONTACTS ===================== */
.contacts-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contacts-text a { color: var(--accent); }

/* ===================== FOOTER ===================== */
.footer {
  background: #000;
  color: var(--footer-ink);
  padding: 30px 0 60px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
}

.footer__links a {
  color: var(--footer-ink);
  text-decoration: none;
}

.footer__links a:hover { color: #fff; }

/* ===================== LEGAL PAGES ===================== */
.legal { padding: 90px 0 120px; }

.legal__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 40px;
}

.legal__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.legal__text strong { font-weight: 600; }
.legal__text a { color: var(--accent); }

.legal__back {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}

.legal__back:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .section--hero { padding: 70px 0 60px; }
  .section--soft { padding: 80px 0; }
  .section--stats { padding: 50px 0 0; }

  .section-title, .hero__title { font-size: 32px; }
  .section-descr { font-size: 20px; }
  .hero__descr { font-size: 18px; }

  .hero { flex-direction: column; gap: 32px; }
  .hero__media, .hero__body { flex: 1 1 auto; width: 100%; }

  .cards { grid-template-columns: 1fr; gap: 30px; max-width: 480px; margin: 0 auto; }
  .stats { gap: 30px; }

  .reviews { gap: 50px; }
  .review { flex-direction: column; gap: 24px; }
  .review__photo { flex: 0 0 auto; width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-title, .hero__title { font-size: 28px; }
  .section-head { margin-bottom: 40px; }

  .stats { grid-template-columns: 1fr; gap: 28px; }

  .legal h1 { font-size: 28px; }
  .legal { padding: 60px 0 80px; }
}
