/* ====== Базовые переменные ====== */
:root {
  --navy: #0f2748;
  --navy-2: #14315a;
  --navy-3: #1c4074;
  --ink: #0f1b2d;
  --brass: #b8935a;
  --brass-2: #caa96f;
  --brass-dark: #9c7a44;
  --cream: #f6f2ea;
  --cream-2: #efe8db;
  --paper: #ffffff;
  --text: #26313f;
  --muted: #5c6b7d;
  --line: #e4ddd0;
  --shadow: 0 18px 50px -22px rgba(15,39,72,.35);
  --shadow-sm: 0 6px 20px -10px rgba(15,39,72,.28);
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ====== Кнопки ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%); color: #fff; box-shadow: 0 10px 26px -12px rgba(156,122,68,.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(156,122,68,.95); }
.btn-whatsapp { background: #1faf54; color: #fff; }
.btn-whatsapp:hover { transform: translateY(-2px); background: #1a9c4a; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-block { width: 100%; }

/* ====== Метки заголовков ====== */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-2); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--brass-dark); }

/* ====== Шапка ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--brass-2);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px;
  letter-spacing: .02em; border: 1px solid rgba(184,147,90,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 17px; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.nav { display: flex; gap: 26px; }
.nav a { font-size: 15px; color: var(--text); font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brass); transition: width .22s ease; }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 15px; }
.header-phone svg { width: 18px; height: 18px; fill: var(--brass-dark); }
.header-phone:hover { color: var(--brass-dark); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== Герой ====== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,147,90,.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--ink) 60%, #0a1729 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 44px; opacity: .5;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px;
  align-items: center; padding: 70px 24px 80px;
}
.hero-text { max-width: 640px; }
.hero .eyebrow { color: var(--brass-2); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin-bottom: 20px; }
.hero-lead { font-size: 18px; color: #d5deeb; margin: 0 0 28px; max-width: 560px; }

.hero-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(184,147,90,.28);
  border-radius: 12px; padding: 14px 12px; text-align: center;
}
.badge strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--brass-2); }
.badge span { font-size: 12px; color: #bfcadb; line-height: 1.3; display: block; margin-top: 4px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: #9fb0c6; }

.hero-photo { position: relative; justify-self: center; }
.hero-photo img {
  width: 100%; height: auto; max-width: 380px; border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border: 1px solid rgba(184,147,90,.3);
}
.hero-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(10,20,38,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(184,147,90,.35); border-radius: 12px; padding: 12px 16px;
}
.hp-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff; }
.hp-role { display: block; font-size: 12.5px; color: var(--brass-2); margin-top: 2px; }

/* ====== Секции ====== */
.section { padding: 86px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-sub { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.section-head-light h2 { color: #fff; }
.section-head-light .eyebrow { color: var(--brass-2); }

/* ====== Карточки услуг ====== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(184,147,90,.45); }
.card-ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(184,147,90,.16), rgba(184,147,90,.06)); margin-bottom: 18px;
}
.card-ico svg { width: 28px; height: 28px; fill: var(--brass-dark); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card-accent { background: linear-gradient(155deg, var(--navy-2), var(--navy)); border-color: var(--navy); color: #fff; }
.card-accent h3 { color: #fff; }
.card-accent p { color: #c7d3e4; }
.card-accent .card-ico { background: rgba(184,147,90,.2); }
.card-accent .card-ico svg { fill: var(--brass-2); }
.card-link { display: inline-block; margin-top: 14px; color: var(--brass-2); font-weight: 700; font-size: 14.5px; }
.card-link:hover { color: #fff; }

/* ====== Обо мне ====== */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-body h2 { font-size: clamp(26px, 3.4vw, 36px); }
.about-status { color: var(--brass-dark); font-weight: 600; font-size: 15px; margin: 10px 0 20px; }
.about-body p { color: var(--text); margin: 0 0 16px; }
.about-facts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.about-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.about-facts svg { width: 22px; height: 22px; fill: #fff; background: var(--brass); border-radius: 50%; padding: 4px; flex: none; }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ====== Практика (кейсы) ====== */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-img { height: 210px; overflow: hidden; background: var(--cream-2); position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s ease; }
.case:hover .case-img img { transform: scale(1.04); }
.case-img::after {
  content: "Увеличить"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(15,39,72,.85); color: #fff; font-size: 11px; padding: 5px 10px; border-radius: 20px;
  opacity: 0; transition: opacity .2s;
}
.case:hover .case-img::after { opacity: 1; }
.case figcaption { padding: 18px 20px 22px; }
.case-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-dark); background: rgba(184,147,90,.12); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.case h3 { font-size: 17px; margin-bottom: 8px; }
.case p { font-size: 13.5px; color: var(--muted); margin: 0; }
.cases-note { text-align: center; color: var(--muted); font-size: 13px; margin: 34px auto 0; max-width: 760px; }

/* ====== Почему ко мне (navy) ====== */
.section-navy { background: linear-gradient(165deg, var(--navy) 0%, var(--ink) 100%); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; }
.why-item { border-top: 2px solid rgba(184,147,90,.4); padding-top: 20px; }
.why-num { font-family: var(--serif); font-size: 15px; color: var(--brass-2); letter-spacing: .1em; }
.why-item h3 { color: #fff; font-size: 21px; margin: 8px 0 10px; }
.why-item p { color: #c3cfe0; font-size: 15px; margin: 0; }

/* ====== Цены ====== */
.price-wrap { display: grid; grid-template-columns: 1.6fr .9fr; gap: 34px; align-items: start; max-width: 980px; margin: 0 auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.price-table td { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover { background: var(--cream); }
.price-table .price { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-cta { background: linear-gradient(155deg, var(--navy-2), var(--navy)); color: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.price-cta p { color: #cdd8e8; font-size: 15px; margin: 0 0 20px; }
.price-cta strong { color: var(--brass-2); }

/* ====== Отзывы ====== */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow-sm); }
.stars { color: #e0a92e; letter-spacing: 2px; font-size: 17px; margin-bottom: 12px; }
.review p { font-size: 15.5px; color: var(--text); margin: 0 0 16px; }
.review footer { display: flex; flex-direction: column; }
.rev-name { font-weight: 700; color: var(--ink); }
.rev-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.reviews-cta { text-align: center; margin-top: 34px; }

/* ====== FAQ ====== */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; color: var(--ink); padding: 16px 0; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brass-dark); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ====== Контакты ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info .eyebrow { color: var(--brass-2); }
.contact-info h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.contact-lead { color: #c3cfe0; font-size: 17px; margin: 14px 0 28px; }
.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contacts li { display: flex; align-items: center; gap: 14px; color: #eaf0f8; font-size: 16px; }
.contacts svg { width: 22px; height: 22px; fill: var(--brass-2); flex: none; }
.contacts a:hover { color: var(--brass-2); }

.contact-form { background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fcfbf8; transition: border-color .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #fff; }
.field textarea { resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-hint.ok { color: #1a9c4a; font-weight: 600; }

/* ====== Подвал ====== */
.site-footer { background: var(--ink); color: #b9c4d4; padding: 44px 0 30px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.fb-name { font-family: var(--serif); color: #fff; font-size: 17px; margin: 0; }
.fb-sub { font-size: 12.5px; color: #8695a8; margin: 3px 0 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: #b9c4d4; }
.footer-nav a:hover { color: var(--brass-2); }
.footer-legal { font-size: 12px; color: #6f7d90; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin: 0; }

/* ====== Плавающая кнопка ====== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #1faf54;
  display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(31,175,84,.7);
  animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(31,175,84,.5); } 70% { box-shadow: 0 0 0 16px rgba(31,175,84,0); } 100% { box-shadow: 0 0 0 0 rgba(31,175,84,0); } }

/* ====== Лайтбокс ====== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,15,28,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }

/* ====== Мобильная панель ====== */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; }
.mobile-bar a { flex: 1; text-align: center; padding: 15px; font-weight: 700; font-size: 15px; color: #fff; }
.mb-call { background: var(--navy); }
.mb-wa { background: #1faf54; }

/* ====== Анимация появления ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ====== Адаптив ====== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .about-cta { justify-content: center; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 300px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .price-wrap { grid-template-columns: 1fr; }
  .price-cta { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: 76px; right: 0; left: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 74px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 52px; }
  .footer-inner { text-align: center; }
  .footer-brand, .footer-nav { justify-content: center; }
}
@media (max-width: 420px) {
  .cards, .cases { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
