/* «Неделя тишины» — дизайн-система.
   Палитра: сочные цвета Мадейры. Менять только здесь. */

:root {
  /* Цвет */
  --ground: #F3F8F7;   /* Свет — фон страницы */
  --surface: #FFFFFF;  /* карточки */
  --ink: #10262E;      /* Базальт — текст */
  --ink-soft: #46626C; /* вторичный текст */
  --line: #D2E4E6;     /* линии и рамки */
  --ocean: #0B5E8A;    /* Океан — основной */
  --azure: #17A2C6;    /* Лазурь — ссылки, рубрики */
  --shoal: #D3EEF5;    /* Отмель — фоны блоков */
  --laurel: #1F8A5B;   /* Лавровый лист */
  --leaf: #57B85F;     /* Молодая листва */
  --gold: #D99B2B;     /* Золото — только действие */
  --on-dark: #FFFFFF;

  /* Типографика */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Ритм */
  --radius: 3px;
  --gap-section: 96px;
  --gap-section-mobile: 64px;
  --maxw: 1120px;
  --maxw-text: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
p { margin: 0 0 16px; max-width: var(--maxw-text); }
a { color: var(--ocean); }
img { max-width: 100%; height: auto; display: block; }

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

section { padding-block: var(--gap-section); }
@media (max-width: 720px) { section { padding-block: var(--gap-section-mobile); } }

.eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--azure); font-weight: 600; margin-bottom: 12px;
}
.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }

/* --- Шапка --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ocean); color: var(--on-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { font-family: var(--font-display); font-size: 20px; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .btn { text-decoration: none; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ocean); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .burger { display: block; }
}

/* --- Кнопки --- */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius);
  padding: 14px 28px; font: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--gold); color: #221806; }
.btn-primary:hover { background: #C68A22; }
.btn-dark { background: var(--ocean); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--ocean); border: 1px solid var(--ocean); }
.site-header .btn-primary { padding: 10px 20px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 3px;
}

/* Липкая кнопка на мобильном */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    box-shadow: 0 6px 20px rgba(11,94,138,.25);
  }
  body { padding-bottom: 84px; }
}

/* --- Первый экран --- */
.hero { background: var(--ocean); color: var(--on-dark); padding-block: 88px; }
.hero h1 { margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.88); font-size: 20px; max-width: 60ch; }
.hero .meta { font-size: 15px; color: rgba(255,255,255,.78); margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero .photo-note {
  margin-top: 40px; border: 1px dashed rgba(255,255,255,.4); border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px; color: rgba(255,255,255,.75); max-width: 60ch;
}

/* Первый экран с фотографией */
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 40%; border-radius: var(--radius); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* Фотографии в блоках */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.strip { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 28px; }
.strip img { aspect-ratio: 3 / 4; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr 1fr; } .strip .photo:last-child { grid-column: span 2; } .strip .photo:last-child img { aspect-ratio: 16 / 9; } }
.tall img { aspect-ratio: 4 / 5; }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) { .banner img { aspect-ratio: 16 / 10; } }

/* --- Быстрые факты --- */
.facts { background: var(--shoal); }
.facts .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.fact .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fact .v { font-family: var(--font-display); font-size: 20px; }

/* --- Сетки и карточки --- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-green { background: var(--laurel); color: #fff; border-color: var(--laurel); }
.card-green p { color: rgba(255,255,255,.9); }

.recognise { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.recognise li { padding-left: 22px; position: relative; font-size: 18px; }
.recognise li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 2px; background: var(--azure); }

/* --- День по часам --- */
.day { border-top: 1px solid var(--line); max-width: 820px; }
.day div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.day .t { font-variant-numeric: tabular-nums; color: var(--azure); font-weight: 500; }
@media (max-width: 560px) { .day div { grid-template-columns: 72px 1fr; gap: 12px; } }

/* --- Неделя по дням --- */
.week { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.week .d { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.week .d .n { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--laurel); font-weight: 600; }
.week .d h3 { font-size: 18px; margin: 6px 0 4px; }
.week .d p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* --- Уровни и таблицы --- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* --- Цена --- */
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price .amount { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.price .per { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.includes li { padding-left: 26px; position: relative; }
.includes li::before { content: "—"; position: absolute; left: 0; color: var(--laurel); }
.groups { display: grid; gap: 12px; margin-top: 8px; }
.group-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.group-row .dates { font-family: var(--font-display); font-size: 19px; }
.seats { font-size: 14px; color: var(--laurel); font-weight: 500; }
.seats.few { color: var(--gold); }
.seats.none { color: var(--ink-soft); }

/* Явное «не входит» рядом с ценой */
.excl {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  margin-top: 20px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--gold);
  border-left: 4px solid var(--gold); border-radius: var(--radius);
}
.excl b { font-family: var(--font-display); font-size: 18px; }
.excl span { color: var(--ink-soft); }

/* --- FAQ --- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--azure); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding-bottom: 18px; color: var(--ink-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* --- Блоки на цвете --- */
.band-shoal { background: var(--shoal); }
.band-laurel { background: var(--laurel); color: #fff; }
.band-laurel h2, .band-laurel h3 { color: #fff; }
.band-laurel p { color: rgba(255,255,255,.9); }
.band-ocean { background: var(--ocean); color: #fff; }
.band-ocean h2 { color: #fff; }
.band-ocean p { color: rgba(255,255,255,.88); }

/* --- Заявка --- */
.form { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 130px; resize: vertical; }
.choices { display: grid; gap: 8px; }
.choices label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.steps span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--ink-soft); }
.steps span.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.step { display: none; }
.step.on { display: block; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }

/* --- Примечания и подвал --- */
.note { border-left: 3px solid var(--leaf); padding: 6px 0 6px 16px; color: var(--ink-soft); max-width: 66ch; }
.placeholder {
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 28px; color: var(--ink-soft); font-size: 14.5px;
}
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 48px; font-size: 14.5px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.todo { color: var(--gold); }

/* Карточка «после ретрита» — продолжение недели */
.week .d.d-after { background: var(--laurel); border-color: var(--laurel); }
.week .d.d-after .n { color: rgba(255,255,255,.8); }
.week .d.d-after h3 { color: #fff; }
.week .d.d-after p { color: rgba(255,255,255,.9); }
