:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-soft: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --text-main: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --accent: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #15803d;
  --danger: #dc2626;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1120px;
}

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

html {
  font-size: 18px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 1rem;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 35%, #f1f5f9 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: rgba(241, 245, 249, 0.8);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lead-section {
  padding: 80px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-link:hover {
  color: inherit;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: color 0.16s ease;
}

.header-link:hover {
  color: var(--accent);
}

.header-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header-phone-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.header-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.08s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.4);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-outline {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn-secondary {
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.hero {
  padding-top: 42px;
  padding-bottom: 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 10px 0 18px;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--accent-strong);
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-benefits {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--text-main);
  font-size: 1rem;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.hero-note {
  color: var(--text-muted);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.metric {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: var(--accent-soft);
}

.metric-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero carousel — кольца, авто-листание */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  min-height: 200px;
  background: var(--bg-alt);
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* До загрузки (data-src без src) не показывать сломанную иконку */
.hero-carousel-slide img[data-src]:not([src]),
.hero-carousel-slide img[data-src][src=""] {
  opacity: 0;
  background: var(--bg-alt);
}

.hero-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.5);
}

.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.2);
}

.hero-card {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.hero-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text-soft);
}

.hero-card-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.hero-card-footnote {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.section-heading p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.services-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.service-card .btn {
  flex-shrink: 0;
}

.service-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--text-soft);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-price {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.service-cta {
  margin-top: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding-top: 12px;
  padding-bottom: 12px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.step-body p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
}

.section-cta-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.section-cta-note {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.section-cta-center {
  justify-content: center;
}

/* Наши работы — сетка фото */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.works-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}

.works-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.objections-grid .card {
  border-color: rgba(22, 163, 74, 0.35);
  background: var(--accent-soft);
}

.objection-card h3 {
  font-size: 1.05rem;
}

/* Блок «Нам доверяют» — три метрики в ряд */
.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 8px;
}

.proof-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 28px;
  min-width: 140px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.proof-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.2;
}

.proof-metric-label {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.lead-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.lead-cta-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.lead-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: color 0.16s ease;
}

.lead-contact-link:hover {
  color: var(--accent);
}

.lead-contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.lead-phone-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.lead-time {
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.lead-info h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.lead-info p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.lead-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 1rem;
  color: var(--text-main);
}

.form-heading h2,
.form-heading h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.form-heading p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text-soft);
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.required {
  margin-left: 3px;
  color: var(--accent);
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-main);
  padding: 11px 14px;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Кнопка связи напрямую — фиксированный блок справа */
.contact-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 16px 0 0 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  border-right: none;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.1);
}

.contact-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.contact-float-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.contact-float-phone:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.contact-float-max:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}

.max-logotype {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95em;
}

.contact-float-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.contact-float-max-icon {
  width: 34px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 32' fill='none'%3E%3Crect x='1' y='1' width='66' height='30' rx='9' fill='%230f172a'/%3E%3Cpath d='M9 23V9h4.4l4.6 6 4.6-6H27v14h-4v-8l-5 6.4L13 15v8H9zm22 0L37 9h3.6l6.1 14h-4.3l-1-2.5h-5.8L34.7 23H31zm6-5.8h3.3L38.7 13 37 17.2zm12 5.8v-2.9l8.3-8h-8V9h13v2.9l-8.2 8h8.2V23H49z' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Липкая CTA внизу экрана (мобильные) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px 16px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.sticky-cta.is-visible {
  display: block;
}

.sticky-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.sticky-cta .btn {
  min-width: 0;
  margin: 0;
}

.sticky-cta .btn-primary {
  grid-column: 1 / -1;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-footer {
  margin-top: 10px;
}

.form-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.form-status--success {
  color: #4ade80;
}

.form-status--error {
  color: var(--danger);
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border-subtle);
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.modal-close:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.modal-close::before {
  content: "×";
  font-size: 22px;
  line-height: 1;
}

.modal-body {
  padding: 28px 24px 24px;
}

.modal-body .form-heading {
  padding-right: 32px;
}

.final-cta {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-alt) 100%);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.final-cta-text h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.final-cta-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.final-cta-actions .btn-outline {
  border-radius: var(--radius-pill);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 20px 0 22px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy {
  margin-left: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
}

.footer-legal {
  max-width: 360px;
  display: inline-block;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

/* Баннер о cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding: 16px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text-wrap {
  flex: 1;
  min-width: 200px;
}

.cookie-banner-text {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.cookie-banner-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner-description {
  display: block;
}

.cookie-banner-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--accent-strong);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner-link:hover {
  color: var(--accent);
}

.cookie-banner-accept {
  flex-shrink: 0;
}

/* Модалка «Использование cookie» */
.modal--cookies .modal-body {
  max-height: 85vh;
  overflow-y: auto;
}

.cookies-modal-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.cookies-modal-content {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.cookies-modal-content h3 {
  margin: 1.2em 0 0.5em;
  font-size: 1.05rem;
  color: var(--text-main);
}

.cookies-modal-content p,
.cookies-modal-content ul {
  margin: 0 0 0.75em;
}

.cookies-modal-content ul {
  padding-left: 1.25em;
}

.cookies-modal-content a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.cookies-modal-content a:hover {
  color: var(--accent);
}

/* Страница «Политика конфиденциальности» */
.legal-page {
  padding: 40px 0 60px;
}

.legal-content {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
}

.legal-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.legal-meta {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--accent);
}

.legal-section {
  margin: 28px 0 0;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.legal-rekv {
  margin: 12px 0 0;
  padding: 16px 20px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.legal-rekv p {
  margin: 0 0 8px;
}

.legal-rekv p:last-child {
  margin-bottom: 0;
}

.legal-back {
  margin-top: 32px !important;
}

.legal-back a {
  font-weight: 500;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-accept {
    width: 100%;
  }
}

/* На мобильных — блок «Позвонить / Написать в чат» скрыт (есть в липкой панели) */
@media (max-width: 720px) {
  .contact-float {
    display: none !important;
  }
}

/* Липкая CTA только на мобильных */
@media (min-width: 721px) {
  .sticky-cta {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    order: -1;
  }

  .cards-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .objections-grid.cards-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-metrics {
    gap: 16px;
  }

  .lead-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .section,
  .lead-section {
    padding: 56px 0;
  }

  .proof-metric {
    padding: 16px 20px;
    min-width: 120px;
  }

  .proof-metric-value {
    font-size: 1.35rem;
  }

  .hero {
    padding-top: 28px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .header-contact {
    gap: 12px;
  }

  .hero-main h1 {
    font-size: 1.65rem;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-metrics {
    gap: 10px;
  }

  .metric {
    padding-inline: 10px;
  }

  .cards-grid.three,
  .cards-grid.four {
    grid-template-columns: minmax(0, 1fr);
  }

  .objections-grid.cards-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-contacts {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-contact {
    width: 100%;
    justify-content: space-between;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn-primary {
    width: 100%;
  }

  .header-phone-wrap {
    align-items: flex-start;
  }
}

