:root {
  --bg-body: #f4f1ea;         /* тёплый фон */
  --bg-card: #ffffff;
  --bg-soft: #f7f4ee;
  --accent: #2563eb;          /* мягкий синий */
  --accent-soft: #e0edff;
  --accent-dark: #1d4ed8;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e2e8f0;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
  --shadow-small: 0 8px 20px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --container-width: 1120px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #fef9c3 0, transparent 40%),
    radial-gradient(circle at top right, #e0f2fe 0, transparent 45%),
    var(--bg-body);
  color: var(--text-main);
}

/* Базовая сетка */

.container {
  width: min(100% - 2.7rem, var(--container-width));
  margin-inline: auto;
}

.section {
  padding: 3.6rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  font-size: 0.97rem;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem 0.8rem;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-text span {
  font-weight: 500;
  font-size: 0.98rem;
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-contact {
  text-align: right;
}

.header-phone-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-phone {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  margin: 0.12rem 0 0.25rem;
}

.header-phone:hover {
  text-decoration: underline;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Плавающая кнопка */

.floating-cta {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 30;
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius-pill);
  background: #111827;
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.5);
  opacity: 0.98;
}

.floating-cta:hover {
  transform: translateY(-2px);
}

/* Hero блок */

.hero {
  padding: 2.6rem 0 2.2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.7rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.2vw, 2.7rem);
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.hero-badges {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  font-size: 0.94rem;
}

.hero-badges li {
  position: relative;
  padding-left: 1rem;
}

.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-bottom: 0.9rem;
}

.hero-phone-inline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-phone-inline a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.hero-phone-inline a:hover {
  text-decoration: underline;
}

.hero-mini-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero визуал */

.hero-visual {
  position: relative;
}

.hero-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-photo-main {
  transform: translateY(4px);
}

.hero-photo-secondary {
  width: 58%;
  position: absolute;
  right: -6%;
  bottom: -10%;
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-small);
}

.hero-card {
  position: absolute;
  left: -8%;
  bottom: -16%;
  width: 82%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem 0.9rem;
  font-size: 0.86rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-card ul {
  color: var(--text-muted);
  display: grid;
  gap: 0.18rem;
}

/* Services */

.services {
  background: #fbfbfd;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.service-card img {
  height: 150px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.05rem;
  padding: 0.9rem 1rem 0.35rem;
}

.service-card ul {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card li {
  position: relative;
  padding-left: 0.95rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97316;
}

.section-cta-row {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0edff, #fef9c3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-cta-text p {
  font-size: 0.96rem;
  color: var(--text-main);
}

/* Problems */

.problems {
  background: #ffffff;
}

.problems-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 2.1rem;
  align-items: flex-start;
}

.problem-list {
  margin: 1rem 0 0.9rem;
  display: grid;
  gap: 0.32rem;
  font-size: 0.96rem;
  color: var(--text-main);
}

.problem-list li {
  position: relative;
  padding-left: 1.3rem;
}

.problem-list li::before {
  content: "❓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.problems-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.problems-sidecard {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.problems-sidecard h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.problems-sidecard ul {
  font-size: 0.9rem;
  color: var(--text-main);
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.problems-sidecard li {
  position: relative;
  padding-left: 1.1rem;
}

.problems-sidecard li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #16a34a;
  font-size: 0.9rem;
}

.problems-sidecard-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* How it works */

.how-it-works {
  background: #f9fafb;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.8rem;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Reviews */

.reviews {
  background: #ffffff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.8rem;
}

.review-card {
  background: #f9fafb;
  border-radius: 20px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.review-card img {
  border-radius: 999px;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.review-author {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Guarantees */

.guarantees {
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
}

.guarantees-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.9rem;
  margin-top: 1.3rem;
}

.guarantees-block ul {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-main);
  display: grid;
  gap: 0.38rem;
}

.guarantees-block li {
  position: relative;
  padding-left: 1.05rem;
}

.guarantees-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #16a34a;
}

.guarantees-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Форма лида — делаем красивую, не «калькулятор» */

.lead-section {
  background: radial-gradient(circle at top, #e0edff, #fef9c3);
}

.lead-section h2 {
  text-align: left;
}

.lead-form {
  margin-top: 1.6rem;
  background: #ffffff;
  border-radius: 26px;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  position: relative;
}

/* Верхний заголовок формы */

.lead-form::before {
  content: "📝 Service request details";
  position: absolute;
  left: 1.6rem;
  top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead-form .form-row:first-of-type {
  margin-top: 1.9rem; /* место под заголовок */
}

/* Подзаголовки блоков внутри формы */

.lead-form .form-row {
  position: relative;
}

.lead-form .form-row:nth-of-type(1)::before {
  content: "👤 Your contact information";
  position: absolute;
  left: 0;
  top: -1.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead-form .form-row:nth-of-type(3)::before {
  content: "🛠 Appliance & issue";
  position: absolute;
  left: 0;
  top: -1.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Сетка формы */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

/* Поля ввода — скруглённые, мягкие, как «карточки» */

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition:
    border 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* Небольшой «фон карточки» для больших полей */

.form-group:nth-of-type(4),
.form-group:nth-of-type(5) {
  padding: 0.3rem 0.5rem 0.4rem;
  border-radius: 16px;
  background: #f9fafb;
}

/* Низ формы */

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  align-items: center;
  margin-top: 0.3rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e5e7eb;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-note a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.form-note a:hover {
  text-decoration: underline;
}

.form-message {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.form-message.success {
  color: #15803d;
}

.form-message.error {
  color: #b91c1c;
}

/* Подвал */

.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.footer-logo {
  font-weight: 600;
}

.footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-phone {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
}

.footer-phone:hover {
  text-decoration: underline;
}

.footer-small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Адаптив */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    position: static;
    margin-top: 0.8rem;
    width: 100%;
  }

  .hero-photo-secondary {
    display: none;
  }

  .services-grid,
  .reviews-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problems-inner,
  .guarantees-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .services-grid,
  .reviews-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-cta {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-form {
    padding-inline: 1.1rem;
  }

  .lead-form::before {
    left: 1.1rem;
  }
}
