:root {
  --bg: #f5eee5;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: rgba(255, 252, 248, 0.94);
  --text: #34281f;
  --muted: #7f6c59;
  --line: rgba(116, 86, 56, 0.20);
  --gold: #ad7a46;
  --gold-soft: rgba(173, 122, 70, 0.12);
  --shadow: 0 18px 60px rgba(98, 71, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.gallery-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-noise,
.page-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-gradient {
  background:
    radial-gradient(circle at top left, rgba(214, 182, 145, 0.42), transparent 35%),
    radial-gradient(circle at bottom right, rgba(230, 209, 185, 0.48), transparent 30%),
    linear-gradient(180deg, #fbf7f2, #f3eadf);
  z-index: -2;
}

.page-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  z-index: -1;
}

.site-header {
  position: fixed;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(104% - 50px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 124px;
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: rgba(116, 86, 56, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(98, 71, 42, 0.12);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.4s ease, left 0.4s ease;
  transform: translateX(-50%);
  pointer-events: none;
}

.site-nav a:hover::after {
  width: 70%;
}

.site-nav a strong {
  font-weight: inherit;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.header-cta,
.button-primary {
  background: linear-gradient(135deg, #c9955d, #ad7a46);
  color: #fffaf4;
  font-weight: 800;
}

.button-secondary {
  background: rgba(255, 251, 246, 0.6);
  color: var(--text);
  border-color: var(--line);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 160px 24px 56px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 245, 238, 0.12), rgba(247, 240, 231, 0.84)),
    linear-gradient(90deg, rgba(248, 242, 234, 0.82), rgba(248, 242, 234, 0.22));
}

.hero-backdrop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1200ms ease, transform 6000ms ease;
}

.hero-backdrop-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content,
.section,
.contact-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-content {
  z-index: 1;
  width: min(1620px, 100%);
  max-width: none;
  margin: 10 auto 0 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero h1,
.section-intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 12vw, 6rem);
}

.hero-text {
  max-width: 400px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 200;
}

.hero-actions,
.hero-metrics,
.feature-grid,
.showcase,
.package-grid,
.contact-shell,
.contact-links {
  display: grid;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(220px, 280px));
  gap: 16px;
  margin-top: 52px;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.hero-metrics li,
.feature-card,
.package-card,
.story-item,
.lead-form,
.contact-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 18px 20px;
  border-radius: 24px;
  min-width: 0;
  text-align: center;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.hero-metrics span,
.feature-card p,
.story-item p,
.package-card li,
.contact-copy p,
.lead-form span,
.form-status {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 8vw, 96px) 24px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-intro h2,
.contact-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
}

.feature-grid,
.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.package-card {
  padding: 28px;
  border-radius: 28px;
}

.feature-index,
.story-item span,
.package-label {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-card h3,
.showcase-copy h3,
.story-item h3,
.package-card h3 {
  margin: 14px 0 10px;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.feature-card p,
.story-item p,
.contact-copy p,
.package-card li {
  font-size: 0.96rem;
}

.showcase {
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 18px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  cursor: pointer;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 52%),
    rgba(91, 68, 45, 0.1);
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 500ms ease;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(251, 251, 250, 0.72));
}

.showcase-card:hover img {
  transform: scale(1.09);
}

.showcase-card:focus-visible {
  outline: 3px solid rgba(255, 250, 244, 0.72);
  outline-offset: 4px;
}

.showcase-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.showcase-copy p {
  margin: 0 0 6px;
  color: #967a54;
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sticky-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 120px;
}

.story-list {
  display: grid;
  gap: 18px;
}

.story-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
}

.story-item span {
  font-size: 1rem;
}

.package-card-featured {
  background:
    linear-gradient(180deg, rgba(228, 206, 181, 0.76), rgba(255, 251, 246, 0.95));
  transform: translateY(-12px);
}

.package-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.package-card li + li {
  margin-top: 10px;
}

.contact-section {
  padding-bottom: 120px;
}

.contact-shell {
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.contact-copy,
.lead-form {
  padding: 30px;
  border-radius: 30px;
}

/* === НОВЫЕ СТИЛИ ДЛЯ КОНТАКТНЫХ ССЫЛОК === */
.contact-links {
  grid-template-columns: repeat(2, max-content);
  gap: 14px;
  margin-top: 26px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

/* Telegram-стиль */
.contact-link.telegram {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.18);
}

.contact-link.telegram:hover {
  background: rgba(0, 136, 204, 0.16);
  transform: translateY(-2px);
  border-color: rgba(0, 136, 204, 0.32);
}

/* Кнопка отзыва — в стиле secondary */
.review-btn {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.review-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Иконки */
.icon-telegram,
.icon-gis {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

.icon-telegram {
  color: #0088cc;
}

.icon-gis {
  color: var(--gold);
}

/* Логотип внизу блока контактов */
.contact-logo {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.brand-logo-small {
  height: 36px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.brand-logo-small:hover {
  opacity: 1;
}
/* === КОНЕЦ НОВЫХ СТИЛЕЙ === */

.lead-form {
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form input:not([type="checkbox"]),
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(116, 86, 56, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  font-size: 0.95rem;
}

.lead-form input:not([type="checkbox"])::placeholder,
.lead-form textarea::placeholder {
  color: rgba(91, 68, 45, 0.45);
}

.lead-form input:not([type="checkbox"]):focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(173, 122, 70, 0.22);
  border-color: rgba(173, 122, 70, 0.34);
}

.lead-form-consent {
  margin-top: 4px;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--gold);
}

.consent-checkbox span {
  font-size: 0.92rem;
}

.consent-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.consent-note a,
.site-footer a,
.policy-back-link,
.policy-section a {
  color: var(--gold);
}

.consent-note a:hover,
.site-footer a:hover,
.policy-back-link:hover,
.policy-section a:hover {
  color: var(--text);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status.is-success {
  color: #d7bb90;
}

.form-status.is-error {
  color: #f0a3a3;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 40;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 19, 12, 0.74);
  backdrop-filter: blur(10px);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 24px 80px rgba(18, 11, 5, 0.28);
}

.gallery-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(91, 68, 45, 0.08);
}

.gallery-frame img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
}

.gallery-nav,
.gallery-close {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 250, 244, 0.24);
  border-radius: 999px;
  background: rgba(28, 19, 12, 0.42);
  color: #fffaf4;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-close {
  top: 24px;
  right: 24px;
  transform: none;
}

.gallery-prev {
  left: 36px;
}

.gallery-next {
  right: 36px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.gallery-meta p,
.gallery-meta span {
  margin: 0;
  color: var(--muted);
}

.gallery-meta p {
  color: var(--text);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-weight: 600;
}

.policy-body {
  min-height: 100vh;
}

.policy-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.policy-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.policy-card h1,
.policy-card h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.05;
}

.policy-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.policy-card h2 {
  font-size: 1.35rem;
}

.policy-back-link,
.policy-updated {
  display: inline-block;
  margin-bottom: 16px;
}

.policy-alert {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--gold-soft);
  border: 1px solid rgba(173, 122, 70, 0.18);
  color: var(--text);
}

.policy-section {
  margin-top: 26px;
}

.policy-section p,
.policy-section li,
.policy-updated {
  color: var(--muted);
  line-height: 1.7;
}

.policy-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

/* === АДАПТИВ С УЧЁТОМ НОВЫХ ЭЛЕМЕНТОВ === */
@media (max-width: 1180px) {
  .site-header {
    width: calc(100% - 28px);
    gap: 16px;
  }

  .hero {
    padding-top: 148px;
  }

  .showcase-card {
    min-height: 520px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-logo {
    width: 110px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 136px 20px 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }

  .feature-grid,
  .contact-shell,
  .sticky-story {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card:first-child {
    grid-column: 1 / -1;
  }

  .sticky-panel {
    position: static;
  }

  .contact-copy,
  .lead-form {
    padding: 26px;
  }

  .site-footer {
    width: 100%;
  }

  .showcase-card {
    min-height: 420px;
  }

  .package-card-featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 16px);
    padding: 12px 14px;
  }

  .brand-logo {
    width: 98px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.95rem);
    line-height: 1;
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .hero-actions,
  .contact-links,
  .hero-metrics,
  .showcase,
  .package-grid {
    grid-template-columns: 1fr;
  }

  /* Адаптив для новых контактных ссылок */
  .contact-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .contact-link {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
  
  .contact-logo {
    padding-top: 24px;
  }
  
  .brand-logo-small {
    height: 32px;
  }

  .section {
    padding: 78px 16px;
  }

  .site-footer {
    width: 100%;
    margin-bottom: 0;
    padding: 16px 18px;
  }

  .site-footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-intro {
    margin-bottom: 28px;
  }

  .feature-card,
  .package-card,
  .contact-copy,
  .lead-form,
  .story-item {
    padding: 22px;
    border-radius: 24px;
  }

  .hero {
    padding: 124px 16px 34px;
  }

  .story-item {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    line-height: 0.98;
  }

  .hero-metrics {
    margin-top: 28px;
    gap: 12px;
  }

  .hero-metrics li {
    padding: 16px 18px;
  }

  .showcase-card,
  .showcase-card:first-child {
    grid-column: auto;
    min-height: 340px;
    border-radius: 26px;
  }

  .showcase-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .contact-links a,
  .hero-actions .button,
  .lead-form .button {
    width: 100%;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-modal-dialog {
    padding: 16px;
    border-radius: 24px;
  }

  .policy-page {
    padding: 24px 16px 40px;
  }

  .policy-card {
    padding: 22px;
    border-radius: 24px;
  }

  .gallery-frame img {
    height: min(58vh, 420px);
  }

  .gallery-nav,
  .gallery-close {
    width: 44px;
    height: 44px;
  }

  .gallery-prev {
    left: 22px;
  }

  .gallery-next {
    right: 22px;
  }

  .gallery-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: 88px;
  }

  .hero {
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 11vw, 2.4rem);
  }

  .hero-text,
  .package-card li,
  .contact-copy p,
  .story-item p {
    font-size: 0.92rem;
  }

  .button {
    min-height: 48px;
    padding: 0 18px;
  }

  /* Мелкий адаптив для новых элементов */
  .contact-link {
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  
  .icon-telegram,
  .icon-gis {
    width: 18px;
    height: 18px;
  }
  
  .brand-logo-small {
    height: 28px;
  }

  .gallery-modal-dialog {
    padding: 14px;
  }

  .gallery-prev {
    left: 14px;
  }

  .gallery-next {
    right: 14px;
  }
}

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

  .reveal,
  .hero-backdrop-image,
  .showcase-card img,
  .header-cta,
  .button,
  .gallery-modal,
  .contact-link {
    transition: none;
  }
}