:root {
  --surface: #faf6ef;
  --text: #22261c;
  --body: #2a2e24;
  --muted: #4a5240;
  --line: #c8b896;
  --gold: #a68952;
  --gold-bright: #8f6f38;
  --gold-light: rgba(166, 137, 82, 0.18);
  --milk: #f8f4eb;
  --max: 760px;
  --shadow: 0 12px 32px rgba(42, 46, 36, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(138, 154, 120, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 30%, rgba(166, 137, 82, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(138, 154, 120, 0.08) 0%, transparent 55%),
    linear-gradient(155deg, var(--milk) 0%, #ede4d4 45%, #e2d8c4 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(166, 137, 82, 0.16);
  background: rgba(248, 244, 235, 0.62);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 4px 24px rgba(42, 46, 36, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-bright);
  user-select: none;
}

.brand--static {
  cursor: default;
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.25s ease;
}

.back-link:hover {
  color: var(--gold-bright);
  transform: scale(1.04);
}

.page {
  flex: 1;
  padding: 28px 0 56px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
}

.page-title-line {
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  border: none;
  background: var(--text);
  opacity: 0.85;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 32px;
}

.page-hero__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.page-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.page-hero__intro {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.page-intro {
  margin: 0;
  color: var(--body);
  text-align: justify;
}

.page-content-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  text-align: justify;
}

.page-content h2 {
  margin: 0 0 18px;
  font-size: 22px;
  text-align: left;
}

.page-content p {
  margin: 0 0 14px;
  color: var(--body);
  text-align: justify;
}

.page-content ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.page-content ul li {
  position: relative;
  margin-bottom: 6px;
  color: var(--body);
  text-align: left;
}

.page-content .closing {
  font-weight: 500;
  color: var(--text);
}

.page-cta {
  display: flex;          /* Добавлено */
  flex-direction: column; /* Добавлено для вертикального расположения элементов */
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;              /* Унифицированный отступ между элементами */
  padding-top: 16px;
  border-top: 3px solid rgba(200, 184, 150, 0.45);
  font-size: 14px;
}

.page-cta-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.page-price {
  font-weight: 700;
  text-align: left;
  font-size: 20px;
  color:#2e2e2e;
  margin: 0 0 1px;
}

.page-price-two {
  font-weight: 500;
  text-align: left;
  font-size: 18px;
  margin: 0 0 14px;
  color:#2e2e2e;
}

.not-sure {
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Разрешаем перенос строк внутри текста кнопки */
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  
  /* Ограничиваем максимальную ширину доступным пространством */
  max-width: 100%;
  
  /* Уменьшаем боковые отступы (с 26px до 16px), чтобы текст помещался */
  padding: 13px 16px;
  
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--gold);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.site-footer {
  margin-top: auto;
  padding: 32px 0 36px;
  text-align: center;
  font-size: 15px;
  color: rgba(248, 244, 235, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(138, 154, 120, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #2e3228 0%, #3f4436 48%, #34382e 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal--photo {
  transform: scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--photo.is-visible {
  transform: scale(1);
}

.reveal-delay-1 { --reveal-delay: 0.1s; }
.reveal-delay-2 { --reveal-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {

  .page-cta-price {
    width: 100%;
  }

  .btn {
    width: 100%; /* Растягивает кнопку на всю ширину карточки красиво и аккуратно */
    font-size: 14px;
    padding: 12px 1px;
  }
  .page-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-hero__image {
    max-width: 300px;
    margin: 0 auto;
  }

  .back-link {
    font-size: 15px;
  }

  .page-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-price {
    font-size: 18px;
  }
}
