/* Дизайн-система из презентации */
:root {
  --wine: #55181b;
  --wine-deep: #3e1013;
  --cream: #f4e4db;
  --cream-soft: #faefe3;
  --rose: #e3cac2;
  --teal: #0097a7;
  --ink: #0f1115;
  --grey: #595959;
  --grey-light: #9e9e9e;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(85, 24, 27, 0.10);
  --shadow-soft: 0 8px 22px rgba(85, 24, 27, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--wine); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid var(--wine);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(85, 24, 27, 0.18);
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--wine);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--wine); color: var(--cream); }

.btn-small { padding: 10px 18px; font-size: 14px; }

/* Навигация */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(85, 24, 27, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--wine);
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--wine); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--cream) 0%, var(--cream-soft) 55%, var(--rose) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/bg-hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 70px 24px 80px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-title .accent { display: inline-block; }
.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--grey);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: 100%;
  max-width: 440px;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Секции */
.section { padding: 84px 0; }
.section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 40px;
  letter-spacing: 0.005em;
}

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(85, 24, 27, 0.08);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Задачи */
.tasks { background: var(--white); }
.task .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--wine);
  margin-bottom: 14px;
}
.task h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.task p { margin: 0; font-size: 14px; color: var(--grey); }

.note {
  font-size: 12px;
  color: var(--grey-light);
  margin: 26px 0 0;
  line-height: 1.5;
}

/* Подход */
.approach { background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%); }
.approach-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--wine);
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  opacity: 0.9;
}
.logos img { height: 30px; width: auto; filter: grayscale(1); opacity: 0.75; }

.approach-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

/* Форматы */
.formats { background: var(--white); }
.format { display: flex; flex-direction: column; gap: 12px; position: relative; padding-top: 54px; }
.format-featured { border-color: rgba(85, 24, 27, 0.35); box-shadow: var(--shadow); }
.bonus {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--wine);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.format h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
.price {
  display: inline-block;
  align-self: flex-start;
  background: var(--rose);
  color: var(--wine);
  font-weight: 800;
  font-size: 18px;
  padding: 6px 14px;
  border-radius: 999px;
}
.format-featured .price { background: var(--wine); color: var(--cream); }
.lead { font-size: 14px; color: var(--grey); margin: 0; }
.list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
}
.list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wine);
}

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta .hero-eyebrow { color: var(--rose); }
.cta-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  margin: 8px 0 18px;
  letter-spacing: 0.01em;
}
.cta-sub { font-size: 16px; margin: 0 0 10px; color: var(--cream); opacity: 0.92; }
.cta-actions { margin: 22px 0 0; }
.cta .btn { background: var(--cream); color: var(--wine); border-color: var(--cream); box-shadow: none; }
.cta .btn:hover { background: var(--rose); border-color: var(--rose); }
.cta .note { color: var(--rose); }
.cta-qr {
  display: flex;
  justify-content: center;
}
.cta-qr img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  background: var(--white);
  padding: 10px;
  box-shadow: var(--shadow);
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popIn 0.22s ease;
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--wine);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-close:hover { background: var(--rose); }
.modal-head { margin-bottom: 14px; padding-right: 34px; }
.modal-title {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800;
  color: var(--wine);
  margin: 2px 0 4px;
  line-height: 1.15;
}
.modal-sub { font-size: 13px; color: var(--grey); margin: 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open { overflow: hidden; }

/* Форма заявки */
.lead-form {
  display: grid;
  gap: 10px;
}
.lead-form .field { display: grid; gap: 4px; }
.lead-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lead-form label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wine);
}
.lead-form .req { color: #ff8a80; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(85, 24, 27, 0.18);
  background: var(--cream-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #9a9a9a; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(85, 24, 27, 0.12);
}
.lead-form textarea { resize: vertical; min-height: 56px; }
.lead-form .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--grey);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.35;
}
.lead-form .check input {
  width: 16px; height: 16px;
  margin-top: 1px;
  accent-color: var(--wine);
  flex-shrink: 0;
}
.lead-form .btn { width: 100%; margin-top: 2px; padding: 12px 20px; }
.lead-form .btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-note {
  font-size: 12px;
  color: var(--grey-light);
  margin: 4px 0 0;
}
.form-note.err { color: #c62828; }
.form-note.ok { color: #2e7d32; }

@media (max-width: 640px) {
  .lead-form .field-row { grid-template-columns: 1fr; }
  .lead-form { padding: 18px; }
}

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.footer .muted { color: var(--grey-light); }

/* Адаптив */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-inner, .approach-inner, .cta-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 320px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { padding: 44px 20px 56px; }
  .section-title { margin-bottom: 26px; }
  .logos img { height: 24px; }
}
