/* ============================================================
   gorbunov.consulting — основной стиль
   Современный, серьёзный, с деликатной анимацией
   ============================================================ */

:root {
  --primary: #1E3B2F;        /* глубокий тёмно-синий */
  --primary-dark: #162D24;
  --accent: #c9a45c;         /* благородное золото */
  --accent-dark: #b08d42;
  --ink: #17281f;
  --muted: #7F8C6A;
  --bg: #ffffff;
  --bg-soft: #F5F0E6;
  --line: #E6DDCC;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(22, 45, 36, 0.10);
  --shadow-sm: 0 8px 30px rgba(22, 45, 36, 0.08);
  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  line-height: 1.2;
  color: var(--primary-dark);
  font-weight: 700;
}

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 0; transition: all .25s; text-align: center; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 10px 25px rgba(30, 59, 47, .3);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 35px rgba(30,59,47,.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-family: 'Playfair Display', serif; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: var(--primary-dark); }
.brand-img { display: block; height: 46px; width: auto; max-width: 240px; object-fit: contain; }
.brand-img-mobile { display: none; }
.brand-img-footer { filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 9px 18px !important;
  border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--primary-dark); margin: 5px 0; transition: .3s; border-radius: 3px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(22, 45, 36, .98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.mobile-menu nav a { color: #fff; font-size: 22px; font-weight: 600; }
.mobile-menu nav a:hover { color: var(--accent); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201,164,92,.18), transparent 60%),
    linear-gradient(135deg, #14302a 0%, #1E3B2F 55%, #2a4a3a 100%);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000 40%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 20px; letter-spacing: -.5px;
}
.hero h1 .gold { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badge {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-side {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 32px; backdrop-filter: blur(6px);
  transform: translateY(-48px);
}
.hero-side h3 { color: #fff; font-family: 'Inter', sans-serif; font-size: 16px; margin-bottom: 8px; }
.hero-side p { color: rgba(255,255,255,.78); font-size: 14px; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: rgba(255,255,255,.08); border-radius: 12px; padding: 16px; text-align: center; }
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--accent); font-weight: 700; }
.stat-box .lbl { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-dark); font-size: 12.5px; font-weight: 700; margin-bottom: 14px;
}

/* ---------- Карточки услуг ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .3s; position: relative; overflow: hidden; text-align: center;
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 62px; height: 62px; border-radius: 14px; margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(22,45,36,.06), rgba(201,164,92,.2));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 0;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.more-link { font-weight: 600; font-size: 14px; }
/* Иконки в контактах: крупнее и монохромные */
.info-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 0; flex-shrink: 0; color: var(--primary); }
.info-icon svg { width: 26px; height: 26px; }
.info-item b { display: block; font-size: 15px; }
.info-item a { color: var(--primary); }
.info-item p { color: var(--muted); font-size: 14px; }

/* ---------- О нас ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual {
  border-radius: 20px; min-height: 420px;
  background:
    radial-gradient(circle at 40% 30%, rgba(201,164,92,.25), transparent 55%),
    linear-gradient(135deg, #f5f0e6, #efe2cd);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.about-visual .big-text { font-family: 'Playfair Display', serif; font-size: clamp(60px, 9vw, 120px); color: var(--primary); opacity: .15; font-weight: 700; }
.about-text h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Как работаем ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num {
  font-family: 'Playfair Display', serif; font-size: 40px; color: var(--accent);
  font-weight: 700; margin-bottom: 12px; display: block; opacity: .9;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Форма ---------- */
.consult-section {
  background: linear-gradient(135deg, #1E3B2F, #162d24);
  padding: 80px 0; color: #fff;
}
.consult-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.consult-intro h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.consult-intro p { color: rgba(255,255,255,.82); margin-bottom: 22px; }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: rgba(255,255,255,.85); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.consult-form .b24-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.b24-form input[type="text"], .b24-form input[type="email"], .b24-form input[type="tel"],
.b24-form input[type="number"], .b24-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s;
}
.b24-form input:focus, .b24-form textarea:focus { outline: none; border-color: var(--primary); }
.b24-form textarea { resize: vertical; min-height: 110px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.file-row { position: relative; }
.file-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.file-btn {
  background: var(--bg-soft); border: 1.5px dashed var(--primary); color: var(--primary);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px;
}
.file-name { font-size: 13px; color: var(--muted); }
.file-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.agree-row .agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.agree input { margin-top: 3px; accent-color: var(--primary); }
.captcha-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; }
.captcha-label { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.b24-form .captcha-input { width: 120px !important; max-width: 120px; text-align: center; flex-shrink: 0; padding: 8px 10px; font-size: 13px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; padding: 10px; border-radius: 8px; display: none; }
.form-status.success { display: block; background: #e6f6ec; color: #1c6b3c; }
.form-status.error { display: block; background: #fdecea; color: #a3312b; }

/* ---------- Подвал ---------- */
.site-footer { background: #122b21; color: #F5F0E6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-about .brand-name { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-top: 4px; color: #C8B48A; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col a { display: block; color: #C8B48A; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.work-hours { font-size: 13.5px; color: #C8B48A; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #C8B48A; }

/* ---------- Плавающие кнопки ---------- */
.telegram-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 999px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(176,141,66,.35); transition: transform .25s, box-shadow .25s;
}
.telegram-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(176,141,66,.5); }
/* ---------- Страницы ---------- */
.page-hero {
  background: linear-gradient(135deg, #1E3B2F, #162d24); color: #fff;
  padding: 64px 0 56px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 760px; margin: 0 auto 0; font-size: 17px; }

.article-body { max-width: 860px; margin: 0 auto; padding: 64px var(--gutter) 40px; }
.article-body h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 40px 0 16px; }
.article-body h3 { font-size: 22px; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; color: #2f4036; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #2f4036; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; font-style: italic; color: var(--primary-dark);
}
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.cta-box {
  background: linear-gradient(135deg, #1E3B2F, #162d24); color: #fff;
  border-radius: 18px; padding: 36px; margin: 40px 0; text-align: center;
}
.cta-box h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 20px; }

/* ---------- Каталог статей ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.article-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card .tag { color: var(--accent-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 10px; }
.article-card h3 { font-size: 19px; margin-bottom: 10px; }
.article-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; flex: 1; }

/* ---------- Результат оплаты ---------- */
.result-hero { padding: 100px 0; text-align: center; background: var(--bg-soft); }
.result-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff;
}
.result-icon.success { background: #1c8b4c; }
.result-icon.error { background: #c0392b; }
.result-hero h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.result-hero .lead { color: var(--muted); max-width: 680px; margin: 0 auto 20px; font-size: 17px; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Оформление правовых документов ---------- */
.legal-body { max-width: 860px; margin: 0 auto; padding: 60px 0 40px; }
.legal-body h2 { font-size: 24px; margin: 32px 0 14px; }
.legal-body h3 { font-size: 19px; margin: 24px 0 10px; }
.legal-body p, .legal-body li { color: #2f4036; font-size: 15.5px; }
.legal-body p { margin-bottom: 14px; }

/* ---------- Оплата ---------- */
.pay-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pay-form .b24-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); }
.pay-form h3 { margin-bottom: 20px; }
.pay-note { font-size: 13.5px; color: var(--muted); margin-top: 22px; line-height: 1.6; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: center; }
.info-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 0; flex-shrink: 0; color: var(--primary); }
.info-icon svg { width: 26px; height: 26px; }
.info-item b { display: block; font-size: 15px; }
.info-item a { color: var(--primary); }
.info-item p { color: var(--muted); font-size: 14px; }

/* ---------- Анимация появления ---------- */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-aos].aos-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .services-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .brand-img-desktop { display: none; }
  .brand-img-mobile { display: block; }
  .hero-grid, .consult-wrap, .about-grid, .pay-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .services-grid, .articles-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .telegram-float span { display: none; }
  .telegram-float { padding: 14px; }
  .consult-form .b24-form { padding: 24px; }
}


/* ---------- Оплата: видимый текст на светлом фоне ---------- */
.pay-info h2 { color: var(--ink); }
.pay-info .check-list li { color: var(--ink); }
.pay-info .check-list li::before { color: #fff; }

/* ---------- Три согласия в формах (мелкий шрифт) ---------- */
.agree-3 .agree { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.agree-3 .agree:last-child { margin-bottom: 0; }
.agree-3 .agree a { color: var(--accent-dark); text-decoration: underline; }
.agree-3 .agree a:hover { color: var(--primary); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  display: none;
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 200; width: min(680px, 92vw);
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(22,45,36,.22);
  padding: 22px 26px; font-size: 13.5px; line-height: 1.6;
}
.cookie-banner p { color: var(--muted); margin-bottom: 14px; }
.cookie-banner a { color: var(--accent-dark); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13.5px; }

/* ---------- Мобильная версия: убрать подъём карточки ---------- */
@media (max-width: 900px) {
  .hero-side { transform: none; }
}

/* ---------- Форма на странице контактов (без синего фона, на всю ширину) ---------- */
.consult-form-plain { width: 100%; }
.consult-form-plain .b24-form { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.consult-form-plain .b24-form .form-row { margin-bottom: 15px; }
