/* efimovatanya.ru — базовые стили. Один файл на весь сайт. */

:root {
  --bg: #fbfaf8;
  --bg-soft: #f3efe9;
  --text: #1c1a17;
  --muted: #6f6a63;
  --line: #e3ddd4;
  --accent: #b5643c;
  --accent-dark: #96502f;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }

.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }

/* ---------- Шапка ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Первый экран ---------- */
.hero { padding: 72px 0 56px; }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px 0;
}
.facts div { background: var(--bg); padding: 18px 20px; }
.facts dt, .facts .k {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts .v { font-size: 19px; font-weight: 600; }

/* ---------- Секции ---------- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section.plain { border-top: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card .num {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.card p:last-child { margin-bottom: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.photo-grid img, .photo-ph {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}
.photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--line);
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 40px;
  align-items: start;
}
.about .portrait { border-radius: var(--radius); aspect-ratio: 3 / 4; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

/* ---------- Блок оплаты ---------- */
.price-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--line);
}
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Юридические страницы ---------- */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); }
.doc h2 {
  font-size: 22px;
  margin-top: 40px;
  padding-top: 8px;
}
.doc h3 { font-size: 18px; margin-top: 26px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--bg-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.rev { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.back { font-size: 15px; display: inline-block; margin-bottom: 24px; }
.note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 32px;
  font-size: 15px;
  color: var(--muted);
  margin-top: 40px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-cols h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 14px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--accent); }
.pay-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pay-logos span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- Форма заказа ---------- */
.form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; }
.check input { margin-top: 4px; }

/* ---------- Первый экран с фотографией ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-grid .hero-photo {
  border-radius: var(--radius);
  height: 540px;
  object-fit: cover;
  object-position: center 22%;
  width: 100%;
  box-shadow: 0 18px 44px rgba(28, 26, 23, 0.12);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid .hero-photo { height: 400px; max-width: 340px; margin: 0 auto; }
}

/* ---------- Раздел «Обо мне» ---------- */
.about-lead {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 44px;
  align-items: start;
}
.about-lead img {
  border-radius: var(--radius);
  height: 480px;
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
}
@media (max-width: 780px) { .about-lead { grid-template-columns: 1fr; gap: 28px; } }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.strip img {
  border-radius: var(--radius);
  height: 300px;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 780px) { .strip { grid-template-columns: repeat(2, 1fr); }
  .strip img { height: 220px; }
  .about-lead img { height: 420px; } }

.quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
  font-size: 19px;
  line-height: 1.55;
}
.quote cite { display: block; font-size: 15px; color: var(--muted); font-style: normal; margin-top: 10px; }

/* ---------- Фотографии площадки ---------- */
.venue {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.venue img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.venue .big { height: 434px; grid-row: span 2; }
.venue .small { height: 210px; }
.venue-wide { margin-top: 14px; }
.venue-wide img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 280px; }
@media (max-width: 780px) {
  .venue { grid-template-columns: 1fr; }
  .venue .big { height: 240px; grid-row: auto; }
  .venue .small { height: 180px; }
  .venue-wide img { height: 200px; }
}
.credit { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- Таблицы вне юридических страниц ---------- */
.wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 16px;
}
.wrap th, .wrap td {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}
.wrap th { background: var(--bg-soft); font-weight: 600; }

/* ---------- Единый левый край ----------
   Узкие текстовые блоки раньше центровались внутри широкой колонки —
   из-за этого их левый край не совпадал с широкими блоками.
   Теперь контейнер всегда широкий, а ограничена ширина самого текста.
   На юридических страницах (.doc) оставляем текст по центру. */
.wrap.narrow { max-width: var(--maxw); }
.wrap.narrow > * { max-width: 760px; }
.doc .wrap.narrow { max-width: 800px; }
.doc .wrap.narrow > * { max-width: none; }

/* ---------- Список «свойство — значение» вместо таблицы ---------- */
.specs { margin: 26px 0 26px; max-width: 760px; }
.specs .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs .row:first-child { border-top: 1px solid var(--line); }
.specs .k {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}
.specs .v { font-size: 17px; }
@media (max-width: 620px) {
  .specs .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Полоска фактов: 3 колонки вместо 6 ----------
   На шести колонках «17 октября 2026» и «Санкт-Петербург» ломались
   на три строки. Три колонки в два ряда — каждое значение в одну строку. */
.facts { grid-template-columns: repeat(3, 1fr); }
.facts .v { white-space: nowrap; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
  .facts .v { white-space: normal; }
}

/* ---------- Логотипы платёжных систем: официальные марки вбелых плитках ---------- */
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pay-logos .pay {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 46px;
  width: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
}
.pay-logos .pay img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* ---------- Полоса с логотипами оплаты на всю ширину подвала ---------- */
.pay-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pay-strip .pay-logos { margin-top: 0; }
.pay-logos .pay { height: 52px; width: 88px; }
/* Плашка PayKeeper — такая же плитка, только шире и залита целиком */
.pay-logos .pay--pk {
  width: auto;
  padding: 0;
  overflow: hidden;
}
.pay-logos .pay--pk img {
  height: 100%;
  width: auto;
  max-width: none;
  max-height: none;
}
.site-footer .copyright { margin-top: 26px; }
