/* SEOGEO24 — базовые стили */
:root {
  --bg: #ffffff;
  --text: #1a1d23;
  --muted: #5b6472;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --border: #e5e8ee;
  --card: #f7f8fb;
  --dark: #14171d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ===== Шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.logo em { font-style: normal; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--card); text-decoration: none; }
.main-nav a.active { color: var(--accent); background: #eef3fe; }

/* ===== Главная / hero ===== */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 auto 32px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ===== Секции ===== */
.section { padding: 48px 0; }
.section h2 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 24px; }
.section-lead { color: var(--muted); max-width: 700px; margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 6px 24px rgba(20, 23, 29, 0.08); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; }

/* ===== Статья ===== */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: 36px; line-height: 1.2; letter-spacing: -0.5px; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }

.article { max-width: 760px; margin: 0 auto; padding-bottom: 56px; }
.article-meta { color: var(--muted); font-size: 14px; margin: 12px 0 28px; }
.article h2 { font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.3px; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  color: var(--muted);
}

.article-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.article-cta h2 { margin-top: 0; }

/* ===== Контакты ===== */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.contact-card .contact-label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.contact-card .contact-value { font-size: 19px; font-weight: 600; }

/* ===== Футер ===== */
.site-footer {
  background: var(--dark);
  color: #aab2c0;
  padding: 40px 0;
  margin-top: 48px;
  font-size: 15px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; font-size: 20px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: #aab2c0; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid #262b35; font-size: 14px; color: #6b7482; }

/* ===== Адаптивность ===== */
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 30px; }
  .page-head h1 { font-size: 27px; }
  .section h2 { font-size: 24px; }
  .main-nav a { padding: 6px 10px; }
}
/* ===== Дополнения: цены, формы, cookie, футер ===== */

/* Таблицы цен */
.table-wrap { overflow-x: auto; margin-bottom: 32px; border-radius: 14px; border: 1px solid var(--border); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; background: #fff; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--dark); color: #fff; font-weight: 600; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .price-row td { font-weight: 700; color: var(--accent); font-size: 16px; background: #eef3fe; }

/* Форма заявки */
.lead-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form .agree { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.lead-form .agree input { margin-top: 4px; }
.lead-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-success {
  background: #ecfdf3;
  border: 1px solid #a6e9c5;
  color: #166534;
  border-radius: 10px;
  padding: 18px 20px;
  font-weight: 600;
  text-align: center;
}
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 14px 18px; font-size: 15px; }

/* Cookie-баннер */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark);
  color: #d7dce5;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.cookie-banner p { flex: 1; }
.cookie-banner a { color: #8fb4ff; }
.cookie-banner .btn { padding: 10px 20px; font-size: 14px; flex-shrink: 0; }

/* Футер: контакты */
.footer-copy a { color: #8fb4ff; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-contacts a { color: #d7dce5; }
.footer-contacts a:hover { color: #fff; }

/* Бейджи доверия на главной */
.trust-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-badges span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; text-align: center; }
}
/* ===== Галерея кейсов и лайтбокс ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0 36px; }
.gallery-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  transition: box-shadow 0.15s, transform 0.15s;
  cursor: zoom-in;
}
.gallery-item:hover { box-shadow: 0 8px 28px rgba(20, 23, 29, 0.12); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; }
.gallery-item .gallery-caption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

.cases-subtitle { font-size: 20px; margin: 32px 0 4px; }
.cases-note { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.cases-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--card);
  margin-bottom: 36px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5); }
