:root {
  --olive-950: #1a2214;
  --olive-900: #24301c;
  --olive-800: #2f3f24;
  --olive-700: #3d5230;
  --gold-400: #d4b56a;
  --gold-300: #e6c87a;
  --gold-200: #f0d9a0;
  --cream: #f4efe4;
  --muted: #c8c2b4;
  --line: rgba(212, 181, 106, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(212, 181, 106, 0.12), transparent 55%),
    linear-gradient(180deg, #12180f 0%, var(--olive-950) 40%, #10160e 100%);
  line-height: 1.5;
}

a { color: var(--gold-300); }
img { max-width: 100%; display: block; }

.frame {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 48px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(212, 181, 106, 0.12), var(--shadow);
  background: linear-gradient(180deg, rgba(47, 63, 36, 0.55), rgba(26, 34, 20, 0.92));
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.eyebrow {
  margin: 0;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
/* Строгий флаг: сплошное полотно + диагональный блик */
.flag {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 52px;
}
.flag-pole {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 52px;
  background: linear-gradient(180deg, #e6c87a, #8a7340);
}
.flag-finial {
  position: absolute;
  left: -2px;
  top: -1px;
  width: 6px;
  height: 6px;
  background: #d4b56a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.flag-cloth {
  position: absolute;
  left: 2px;
  top: 3px;
  height: 36px;
  width: 58px;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.flag-cloth .stripe { display: block; width: 100%; height: 100%; }
.flag-cloth .w { background: #f3f3f3; }
.flag-cloth .b { background: #0039a6; }
.flag-cloth .r { background: #d52b1e; }
.flag-cloth::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: rotate(22deg);
  animation: flag-gleam 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flag-gleam {
  0%, 12% { transform: translateX(0) rotate(22deg); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: translateX(280%) rotate(22deg); opacity: 1; }
  62%, 100% { transform: translateX(280%) rotate(22deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flag-cloth::after { animation: none; opacity: 0; }
}

.phone-pill {
  text-decoration: none;
  color: var(--olive-950);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  font-family: Oswald, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  flex: 0 0 auto;
}
.phone-num,
.phone-link {
  white-space: nowrap;
  word-break: keep-all;
}
.phone-link {
  display: inline-block;
  margin: 8px 0 12px;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 2px solid rgba(230, 200, 122, 0.45);
  line-height: 1.2;
  padding-bottom: 2px;
}
.phone-link:hover {
  color: var(--gold-200);
  border-bottom-color: var(--gold-200);
}
.footer-phone {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.footer-phone .phone-link {
  margin: 0;
  font-size: 1.35rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 28px 0 10px;
  align-items: center;
}
.kicker {
  margin: 0 0 10px;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
.trust li::before {
  content: "★";
  color: var(--gold-400);
  margin-right: 8px;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--line);
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow);
  min-height: 220px;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: #12180f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
}
.btn-gold {
  color: var(--olive-950);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  font-weight: 700;
}
.btn-ghost {
  color: var(--gold-200);
  background: transparent;
  border: 1px solid var(--gold-400);
}
.btn-block { width: 100%; }

.section-head {
  margin: 36px 0 18px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.grid article {
  background: rgba(18, 24, 15, 0.55);
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 150px;
}
.grid h3 {
  margin: 0 0 8px;
  font-family: Oswald, sans-serif;
  color: var(--gold-300);
  font-size: 1.15rem;
  font-weight: 600;
}
.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(36, 48, 28, 0.45);
}
.steps-list h3 {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
}
.steps-list p {
  margin: 0;
  color: var(--muted);
}

/* Погон со звёздами */
.pogon {
  position: relative;
  display: block;
  width: 40px;
  height: 72px;
  background:
    linear-gradient(180deg, #3d5230 0%, #2a3820 45%, #1f2a18 100%);
  border: 1px solid var(--gold-400);
  box-shadow:
    inset 0 0 0 2px rgba(26, 34, 20, 0.85),
    inset 0 0 0 3px rgba(212, 181, 106, 0.35);
}
.pogon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 8px;
  height: 3px;
  background: var(--gold-400);
  box-shadow: 0 4px 0 var(--gold-400);
}
.pogon i {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: var(--gold-300);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}
.pogon[data-stars="1"] i:nth-child(1) { top: 34px; }
.pogon[data-stars="2"] i:nth-child(1) { top: 28px; }
.pogon[data-stars="2"] i:nth-child(2) { top: 44px; }
.pogon[data-stars="3"] i:nth-child(1) { top: 24px; }
.pogon[data-stars="3"] i:nth-child(2) { top: 38px; }
.pogon[data-stars="3"] i:nth-child(3) { top: 52px; }

.cta { margin-top: 28px; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 181, 106, 0.1), transparent 40%),
    rgba(18, 24, 15, 0.7);
}
.cta-copy h2 {
  margin: 0 0 10px;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-copy p { color: var(--muted); }
.cta-copy .note { font-size: 0.9rem; }

.form {
  display: grid;
  gap: 10px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gold-200);
}
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(15, 20, 12, 0.85);
  color: var(--cream);
  padding: 11px 12px;
  border-radius: 4px;
  font: inherit;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(212, 181, 106, 0.45);
  border-color: var(--gold-400);
}
.fine {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.footer strong {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.03em;
}
.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  border: 1px solid var(--line);
  background: rgba(18, 24, 15, 0.55);
  padding: 12px 14px;
}
.faq-list summary {
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  color: var(--gold-200);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--gold-400);
}
.faq-list details[open] summary::before { content: "–"; }
.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.mobile-bar {
  display: none;
}

.form-error {
  margin: 8px 0 0;
  color: #fca5a5;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}
.modal.is-open,
.modal:not([hidden]) {
  display: grid;
}
.modal[hidden] {
  display: none !important;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 6, 0.72);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #2f3f24, #1a2214);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px 20px 18px;
  text-align: center;
}
.modal-card h2 {
  margin: 4px 0 10px;
  font-family: Oswald, sans-serif;
  font-size: 2rem;
}
.modal-card p { color: var(--muted); }
.modal-card .phone-link {
  margin: 6px 0 14px;
  font-size: 1.35rem;
}
.modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--gold-300);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .hero,
  .cta-card,
  .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
  .phone-pill {
    width: auto;
    max-width: 100%;
    text-align: center;
    align-self: stretch;
  }
  .phone-link {
    font-size: 1.55rem;
  }
  .frame {
    width: min(100% - 16px, 1120px);
    padding: 14px;
    margin-top: 10px;
    margin-bottom: 88px;
  }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 20, 12, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { width: 100%; }
}
