/* Тарки-Тау — стили сайта. Значения перенесены из макета tarki-tau-design/index.html один в один. */

:root {
  /* Цвета */
  --ink: #16171D;
  --night: #101219;
  --navy: #14224B;
  --navy-line: #33426E;
  --sand: #F3EFE8;
  --cream: #FAF7F0;
  --paper: #FFFFFF;
  --field: #FDFBF7;
  --accent: #F2C14E;
  --accent-hover: #E6B23A;
  --ink-hover: #2B2D36;
  --amber: #E9A135;
  --muted: #5E5A52;
  --text-2: #4A4740;
  --label: #3A3632;
  --danger: #A63A22;
  --line: #D9D3C7;
  --line-soft: #DDD7CB;
  --card-line: #E4DED2;
  --on-dark: #F6F2EA;
  --on-dark-muted: #C9C7C1;
  --on-navy: #E3E5EE;
  --on-navy-muted: #D6D8E2;
  --footer-line: #2C2F3A;
  --photo-fallback: #5B5346;
  --contact-line: rgba(22, 23, 29, 0.16);

  /* Шрифты */
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', system-ui, sans-serif;

  /* Стекло */
  --glass-blur: blur(26px) saturate(170%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 44px rgba(8, 10, 20, 0.28);

  /* Сетка */
  --container: 1200px;
  --gutter: 20px;
  --section-pad: 104px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.page {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

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

.glass {
  background: rgba(250, 247, 240, 0.72);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--sm { font-size: 15px; padding: 0 22px; min-height: 46px; }
.btn--card { gap: 8px; font-size: 15px; padding: 0 22px; min-height: 48px; }
.btn--lg { font-size: 16px; padding: 0 26px; min-height: 52px; }
.btn--tg { padding: 0 24px; }

@media (hover: hover) {
  .btn--accent:hover { background: var(--accent-hover); color: var(--ink); }
  .btn--dark:hover { background: var(--ink-hover); color: var(--cream); }
  .nav__links a:hover,
  .nav__phone:hover,
  .contact-row__value:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.btn--accent:active { background: var(--amber); }
.btn--dark:active { background: var(--ink); }

/* Надзаголовок с треугольником */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--lg { font-size: 36px; }
.eyebrow__big { font-size: 36px; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--ink { color: inherit; }

/* Шапка раздела */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.section-head__titles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-head__desc {
  margin: 0;
  flex: 0 1 440px;
  color: var(--muted);
  font-size: 16px;
}
.section-head__desc--dark { color: var(--on-dark-muted); }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.h2--tight { line-height: 1.04; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__bg,
.hero__shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero__bg {
  object-fit: cover;
  object-position: center 46%;
}
.hero__shade {
  background: linear-gradient(to bottom, rgba(16, 18, 25, 0.5) 0%, rgba(16, 18, 25, 0) 18%, rgba(16, 18, 25, 0) 38%, rgba(16, 18, 25, 0.5) 62%, rgba(16, 18, 25, 0.72) 100%);
}
.hero__inner { position: relative; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
}
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  text-decoration: none;
  padding: 12px 0;
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__phone {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 0;
}

.hero__title-wrap { padding: 270px 0 0; }
.hero__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 11.5vw, 166px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__lead-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.hero__lead {
  margin: 0;
  flex: 1 1 380px;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark);
  text-shadow: 0 1px 14px rgba(8, 10, 20, 0.9), 0 0 3px rgba(8, 10, 20, 0.7);
}
.hero__spacer { height: 72px; }

/* Форма заявки */
.booking {
  margin: 44px 0 0;
  border-radius: 22px;
  padding: 20px 20px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.booking__head {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}
.booking__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  text-transform: uppercase;
}
.field {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--narrow { flex-basis: 110px; }
.field__label {
  font-size: 13px;
  color: var(--label);
  padding-left: 4px;
}
.field__control {
  height: 52px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 14px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
}
.field__control[aria-invalid="true"] { border-color: var(--danger); }
.booking__submit {
  flex: 0 1 auto;
  justify-content: center;
  height: 52px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.booking__note {
  font-size: 13px;
  color: var(--label);
}
.booking__error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

/* ---------- О месте ---------- */
.about { background: var(--sand); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px 64px;
  align-items: center;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__lead {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 35px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.about__lead strong {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86em;
}
.about__img {
  width: 100%;
  height: 519px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

/* ---------- Купола ---------- */
.domes { background: var(--cream); }
.domes__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}
.dome {
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: 26px;
  padding: 14px 14px 26px;
  display: flex;
  flex-direction: column;
}
/* minmax(0, 1fr) и min-height: 0 не убирать — иначе большие фото вылезут из карточки */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  height: 400px;
}
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  border-radius: 14px;
}
.gallery__img--main {
  grid-row: span 2;
  border-radius: 18px;
}
.dome__body {
  padding: 24px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.dome__kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dome__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}
.dome__text {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}
.dome__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ---------- Что входит ---------- */
.included { background: var(--sand); }
.yard {
  margin-top: 48px;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 14px 40px;
  align-items: center;
}
.yard__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.yard__body {
  padding: 18px 26px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.yard__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yard__icon { color: var(--amber); }
.yard__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.yard__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0 28px;
  font-size: 16px;
  color: var(--on-navy);
}
.yard__list li {
  padding: 12px 0;
  border-top: 1px solid var(--navy-line);
}
.amenities {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px 28px;
}
.amenity {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.amenity__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.amenity__icon { color: var(--navy); }
.amenity__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.amenity__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Виды ---------- */
.views {
  background: var(--night);
  color: var(--on-dark);
}
.views__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.view {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.view__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view__label {
  position: relative;
  background: rgba(250, 247, 240, 0.74);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 16px;
}

/* ---------- Отзывы ---------- */
.reviews { background: var(--sand); }
.reviews__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 16px;
}
.review {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review--wide { grid-column: 1 / -1; }
.review__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.review__author {
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
}
.review--featured {
  background: var(--navy);
  color: var(--on-dark);
  border: 0;
  padding: 34px 36px 32px;
  gap: 20px;
  grid-row: span 2;
}
.review__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  height: 40px;
  color: var(--amber);
}
.review--featured .review__text {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.4;
  text-wrap: pretty;
}
.review--featured .review__author {
  padding-top: 18px;
  border-top: 1px solid var(--navy-line);
  color: var(--on-navy-muted);
}

/* ---------- Правила ---------- */
.rules { background: var(--cream); }
.bans {
  margin-top: 48px;
  background: var(--sand);
  border-radius: 24px;
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bans__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--danger);
}
.bans__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 28px;
  font-size: 17px;
  line-height: 1.4;
}
.bans__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bans__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--danger);
}
.rules__list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 48px;
  font-size: 17px;
}
.rules__list li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.rules__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  width: 22px;
  flex-shrink: 0;
}

/* ---------- Контакты ---------- */
.contacts {
  background: var(--night);
  color: var(--on-dark);
}
.contacts__inner { padding: 96px var(--gutter) 72px; }
.contact-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 660px;
  padding: 24px;
  display: flex;
  background: var(--photo-fallback);
}
.contact-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}
.contact-panel {
  position: relative;
  background: rgba(250, 247, 240, 0.8);
  border-radius: 22px;
  padding: 34px 36px 22px;
  width: 100%;
  max-width: 530px;
  display: flex;
  flex-direction: column;
}
.contact-panel__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.contact-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-list {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding: 15px 0;
  border-top: 1px solid var(--contact-line);
}
.contact-row__label {
  width: 96px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.contact-row__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.contact-where {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-where__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}
.contact-where__addr {
  font-size: 14px;
  line-height: 1.45;
  color: var(--label);
}
.contact-where__map {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--night);
  color: var(--on-dark);
}
.footer__bar {
  border-top: 1px solid var(--footer-line);
  padding: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
