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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  line-height: 1.6;
}

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

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

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background-color: #111827;
  color: #f9fafb;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.logo-main {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.logo-city {
  font-size: 12px;
  opacity: .8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.main-nav a {
  opacity: .86;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #f9fafb;
  transition: width .18s ease-out;
}

.main-nav a:hover::after { width: 100%; }

.header-phone { text-align: right; }

.phone-link {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.phone-caption {
  display: block;
  font-size: 11px;
  opacity: .7;
}

/* Hero */
.hero {
  padding: 40px 0 32px;
  background: radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(16,185,129,.06), transparent 50%);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.hero-text { flex: 1 1 320px; }
.hero-image { flex: 1 1 320px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 12px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #22c55e;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.hero-lead {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background-color: #111827;
  color: #f9fafb;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .35);
  transform: translateY(0);
  transition: transform .16s ease-out, box-shadow .16s ease-out, background-color .16s ease-out;
}

.btn-primary:hover {
  background-color: #020617;
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .45);
}

/* Secondary buttons "Подробнее" */
.btn-more {
  margin-top: auto;
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.30);
}

.service-card .btn-more {
  align-self: flex-start;
}

.phone-main {
  font-size: 18px;
  font-weight: 600;
}

.hero-note {
  font-size: 12px;
  color: #6b7280;
}

/* Sections */
.section { padding: 24px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Grid & cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-title {
  font-weight: 600;
  font-size: 15px;
}

.service-card p {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 8px;
}

/* Hover */
.card-animate {
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.card-animate:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

/* Badges, lists, chips */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background-color: #e5e7eb;
  color: #4b5563;
}

.list {
  padding-left: 18px;
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.list li + li { margin-top: 4px; }

.muted {
  font-size: 13px;
  color: #6b7280;
}

/* Service layout */
.service-layout {
  margin-top: 12px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: flex-start;
}

.service-layout img {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}

.service-section + .service-section { margin-top: 18px; }

.service-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  background-color: #f9fafb;
}

/* Price table */
.price-table-wrapper {
  margin-top: 8px;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.price-table th,
.price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.price-table th {
  font-weight: 500;
  color: #4b5563;
  background-color: #f9fafb;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table tr:hover td { background-color: #f9fafb; }

.price-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

/* CTA */
.cta-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background-color: #111827;
  color: #f9fafb;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cta-box-title {
  font-weight: 500;
  font-size: 15px;
}

.cta-box-text {
  font-size: 13px;
  opacity: .9;
}

/* Footer */
.site-footer {
  padding: 20px 0 28px;
  font-size: 12px;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp .6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-phone { text-align: left; }
  .hero-inner { flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .price-table { min-width: 100%; }
  .cta-box { align-items: flex-start; }
}

/* Legal / offer & privacy pages */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.legal-page .legal-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}

.legal-text {
  max-width: 900px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-text h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-text p {
  margin-bottom: 10px;
}

.legal-text ul {
  margin: 8px 0 12px 20px;
  padding-left: 0;
}

.legal-text li {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 40px 0 60px;
  }

  .legal-page h1 {
    font-size: 26px;
  }
}

/* Phone consent under numbers */
.header-phone .phone-consent {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.hero-actions .phone-consent,
.service-card .phone-consent {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.phone-consent a,
.phone-consent a:link,
.phone-consent a:visited {
  color: #2563eb !important;
  text-decoration: none;
}

.phone-consent a:hover {
  text-decoration: underline;
}

.header-phone .phone-consent a,
.header-phone .phone-consent a:link,
.header-phone .phone-consent a:visited {
  color: #6b7280 !important;
  text-decoration: none;
}


@media (max-width: 768px) {
  .page-small-service .hero-inner,
  .page-small-service .service-layout {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-small-service .service-section {
    padding-left: 4px;
    padding-right: 4px;
  }
}
