/*
================================================
  shared.css — общие стили для всего сайта
  Подключается на каждой странице
  Стиль: белый, синий, спокойный
================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* =============================================
   ПЕРЕМЕННЫЕ
============================================= */
:root {
  --blue:       #1756C8;
  --blue-light: #3B82F6;
  --blue-pale:  #EFF6FF;
  --sky:        #DBEAFE;
  --dark:       #0F172A;
  --text:       #334155;
  --muted:      #64748B;
  --border:     #E2E8F0;
  --white:      #FFFFFF;
  --bg-alt:     #F8FAFC;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(23,86,200,0.08);
  --shadow-lg:  0 12px 48px rgba(23,86,200,0.14);
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 64px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =============================================
   ТИПОГРАФИКА
============================================= */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1; color: var(--dark);
  letter-spacing: -0.02em; margin-bottom: 20px;
}
h1 em { color: var(--blue); font-style: normal; }
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--dark); line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
h3 {
  font-size: 17px; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
p { color: var(--muted); line-height: 1.75; }

/* =============================================
   ШАПКА
============================================= */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--dark); white-space: nowrap;
}
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--dark);
  white-space: nowrap;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.btn-header {
  background: var(--blue); color: var(--white);
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: background 0.2s; white-space: nowrap;
}
.btn-header:hover { background: #1247A8; }
.burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--dark);
}

/* Мобильное меню */
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px; font-weight: 500; color: var(--text);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mob-phone {
  color: var(--blue); font-weight: 800;
  font-size: 18px; margin-top: 8px;
}

/* =============================================
   ХЛЕБНЫЕ КРОШКИ
============================================= */
.breadcrumbs {
  padding: 14px 32px;
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* =============================================
   КОНТЕЙНЕР И СЕКЦИИ
============================================= */
.container { max-width: 1200px; margin: 0 auto; }
section { padding: 72px 32px; }
.section-label {
  font-size: 12px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  line-height: 1.7; max-width: 560px;
}

/* Фоны секций */
.bg-white  { background: var(--white); }
.bg-pale   { background: var(--blue-pale); }
.bg-alt    { background: var(--bg-alt); }
.bg-dark   { background: var(--dark); }
.bg-blue   { background: var(--blue); }

/* =============================================
   КНОПКИ
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover {
  background: #1247A8; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,86,200,0.3);
}
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-pale); }
.btn-white {
  background: var(--white); color: var(--blue);
}
.btn-white:hover { background: var(--sky); }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   HERO СТРАНИЦ (не главная)
============================================= */
.page-hero {
  padding: 48px 32px 56px;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-pale) 100%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky); color: var(--blue);
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.page-hero h1 { max-width: 760px; }
.page-hero .lead {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 600px; margin-bottom: 32px;
}
.page-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.page-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.page-stats dt {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--blue);
}
.page-stats dd { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =============================================
   КАРТОЧКИ
============================================= */
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.25s;
}
.card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 48px;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-pale); display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}

/* =============================================
   САЙДБАР LAYOUT (услуги, районы)
============================================= */
.content-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 56px; align-items: start;
}
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.sidebar-price {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700; color: var(--blue);
  margin-bottom: 4px;
}
.sidebar-price-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* =============================================
   ЧЕКЛИСТ
============================================= */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--text); line-height: 1.5;
}
.checklist li::before {
  content: '✓'; color: #22C55E; font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}

/* =============================================
   SEO ТЕКСТ
============================================= */
.seo-text { font-size: 16px; }
.seo-text p { color: var(--muted); line-height: 1.85; margin-bottom: 18px; }
.seo-text strong { color: var(--text); font-weight: 600; }
.seo-text h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-top: 40px; margin-bottom: 14px;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text h3 { margin-top: 24px; margin-bottom: 10px; }
.seo-text ul {
  margin: 0 0 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.seo-text ul li {
  font-size: 15px; color: var(--muted);
  line-height: 1.6; list-style: disc;
}
.seo-text .tip {
  background: var(--blue-pale); border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 16px 20px;
  margin: 24px 0; font-size: 15px; color: var(--text);
}
.seo-text .warning {
  background: #FFF7ED; border-left: 3px solid #F59E0B;
  border-radius: 0 8px 8px 0; padding: 16px 20px;
  margin: 24px 0; font-size: 15px; color: var(--text);
}

/* =============================================
   УСЛУГИ — ГРИД
============================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 48px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 16px;
  border: 1.5px solid var(--border); transition: all 0.25s;
}
.service-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.service-info h3 { font-size: 16px; margin-bottom: 6px; }
.service-info p { font-size: 13px; line-height: 1.55; }
.service-price {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--blue); white-space: nowrap; text-align: right;
}
.service-price small {
  display: block; font-size: 11px;
  font-family: 'Manrope', sans-serif;
  color: var(--muted); font-weight: 500;
}

/* =============================================
   РАЙОНЫ — ТЕГИ
============================================= */
.areas-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.area-tag {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 100px; padding: 8px 18px;
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.area-tag:hover { border-color: var(--blue); color: var(--blue); }
.area-tag.current { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

/* =============================================
   ОТЗЫВЫ
============================================= */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.review-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.stars { color: #F59E0B; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  font-size: 15px; color: var(--text); line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.author-date { font-size: 12px; color: var(--muted); }

/* =============================================
   FAQ
============================================= */
.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1.5px solid var(--border); }
.faq-item:first-child { border-top: 1.5px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--dark);
  text-align: left; transition: color 0.2s;
}
.faq-q:hover { color: var(--blue); }
.faq-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: transform 0.3s;
}
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* =============================================
   ФОРМА
============================================= */
.form-section { background: var(--blue); padding: 72px 32px; }
.form-section-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.form-section h2 { color: var(--white); margin-bottom: 8px; }
.form-section .form-sub { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 36px; }
.form-box {
  background: var(--white); border-radius: 20px;
  padding: 36px; text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { margin-bottom: 14px; }
.fg label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 6px;
}
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 12px 14px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px;
  font-family: 'Manrope', sans-serif; color: var(--dark);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.fg input::placeholder, .fg textarea::placeholder { color: #CBD5E1; }
.fg textarea { resize: vertical; min-height: 90px; }
.fg select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer; transition: all 0.2s; margin-top: 4px;
}
.btn-submit:hover { background: #1247A8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,86,200,0.25); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success .check { font-size: 48px; margin-bottom: 12px; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted); }
.form-success a { color: var(--blue); font-weight: 700; }

/* =============================================
   ФУТЕР
============================================= */
footer { background: var(--dark); padding: 56px 32px 32px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--blue-light); }
.footer-desc { font-size: 14px; color: #94A3B8; line-height: 1.65; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform 0.2s; }
.soc:hover { transform: scale(1.1); }
.soc-tg { background: #229ED9; }
.soc-ig { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.footer-col h4 { font-size: 11px; font-weight: 700; color: #64748B; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #94A3B8; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-phone { font-size: 18px; font-weight: 800; color: var(--white) !important; margin-bottom: 6px; display: block; }
.footer-hours { font-size: 12px; color: #64748B; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; display: flex; justify-content: space-between; font-size: 12px; color: #475569; flex-wrap: wrap; gap: 8px; }

/* Мобильная кнопка */
.sticky-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--blue); color: var(--white);
  text-align: center; padding: 16px;
  font-weight: 700; font-size: 15px; z-index: 99;
}

/* =============================================
   БЛОГ
============================================= */
.article-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.article-meta span { font-size: 13px; color: var(--muted); }
.article-tag { background: var(--sky); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.article-body p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.article-body h2 { font-size: clamp(20px, 2.5vw, 28px); margin-top: 40px; margin-bottom: 14px; }
.article-body h3 { margin-top: 24px; margin-bottom: 10px; }
.article-body ul { margin: 0 0 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { font-size: 15px; color: var(--muted); line-height: 1.6; list-style: disc; }
.article-body strong { color: var(--text); font-weight: 600; }
.cta-inline { background: var(--blue-pale); border: 1.5px solid var(--sky); border-radius: var(--radius); padding: 28px; margin: 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-inline h3 { margin-bottom: 4px; }
.cta-inline p { font-size: 14px; }

/* =============================================
   АДАПТИВ
============================================= */
@media (max-width: 1100px) {
  .header-inner { padding: 0 24px; }
  section { padding: 56px 24px; }
  .breadcrumbs { padding: 14px 24px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { padding-bottom: 52px; }
  section { padding: 48px 18px; }
  .header-inner { padding: 0 18px; }
  .breadcrumbs { padding: 12px 18px; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .burger { display: block; }
  .page-hero { padding: 32px 18px 48px; }
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 28px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 18px 24px; }
  .sticky-call { display: block; }
  .reviews-grid { grid-template-columns: 1fr; }
  .page-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
