/* Оформление в стиле ot66.ru: светлый фон, белые карточки, красный акцент. */
:root {
  --red: #dc3545;
  --red-dark: #bb2d3b;
  --text: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --bg-soft: #f8f9fa;
  --radius: 6px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.176);
  --container: 1320px;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #e4455a, #a71d2a);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; font-weight: 600; }
.brand-text small { font-size: 12px; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav a {
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover { color: var(--text); border-bottom-color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.phone-pill:hover { background: #e9ecef; }
.phone-pill svg { width: 18px; height: 18px; color: var(--red); }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #212529;
  color: #fff;
  transition: background 0.15s ease;
}

.icon-btn:hover { background: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-outline { background: #fff; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-lg { padding: 12px 24px; }
.btn-block { width: 100%; }

/* ---------- Герой ---------- */
.hero {
  background: var(--bg-soft);
  padding: 32px 0 56px;
}

.hero-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 48px;
}

.hero-top {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-logo {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(150deg, #e4455a, #8f1622);
  color: #fff;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 10px var(--bg-soft), 0 20px 40px -22px rgba(143, 22, 34, 0.7);
  user-select: none;
}

h1 {
  margin: 0 0 14px;
  text-wrap: balance;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-role {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--muted);
}

.hero-lead {
  margin: 0;
  max-width: 54ch;
  font-size: 20px;
  line-height: 1.5;
}

.usp {
  list-style: none;
  margin: 44px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid #e9ecef;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.usp li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.usp svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--red);
}

/* ---------- Секции ---------- */
.section { padding: 72px 0; }

.h-lg {
  margin: 0 0 20px;
  text-wrap: balance;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.5;
  max-width: 60ch;
}

.lead-muted { color: var(--muted); font-size: 18px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Услуги ---------- */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}

.head-cta {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.head-cta-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.head-cta-text {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--muted);
}

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

.service {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.service h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.service p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.price {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- О специалисте ---------- */
.section-about { padding-top: 24px; }

.about-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #adb5bd;
}

.about-photo svg { width: 84px; height: 84px; stroke-width: 1.1; }
.about-photo span { font-size: 13px; color: var(--muted); }

.section-title-left {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

.about-name {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
}

.cred-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
}

.cred-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--red);
  stroke-width: 2;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e9ecef;
}

.about-stat span {
  display: block;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.about-stat small {
  display: block;
  margin-top: 4px;
  max-width: 24ch;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Этапы ---------- */
.section-title {
  margin: 0 0 48px;
  text-wrap: balance;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

.section-sub {
  margin: -36px 0 40px;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  border-top: 3px solid var(--red);
  padding-top: 20px;
}

.step-num {
  display: block;
  margin-bottom: 6px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--red);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Кейсы и отзывы ---------- */
.case {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 16px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tags span {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.case-text {
  margin: 20px 0;
  font-size: 20px;
  line-height: 1.5;
  max-width: 80ch;
}

.case-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.case-results strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--red);
}

.case-results span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

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

.review {
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}

.review blockquote {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.5;
}

.review figcaption {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.review figcaption span {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Контакты и форма ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: start;
}

.contact-phone {
  display: inline-block;
  margin: 12px 0 24px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.contact-phone:hover { color: var(--red); }

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  text-decoration: none;
}

.contact-links a:hover { color: var(--red); }
.contact-links svg { color: var(--red); }

.contacts-region {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 40ch;
}

.lead-form {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 36px;
}

.lead-form h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.form-lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
}

.field { display: block; margin-bottom: 16px; }

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--red); }

.consent {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--red);
  flex: none;
}

.consent a { color: var(--red); }

.form-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #d1e7dd;
  color: #0f5132;
  font-size: 14px;
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid #e9ecef;
  padding: 56px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
}

.footer-note {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--red); }

.footer-contacts .footer-phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.footer-col a.btn {
  display: inline-flex;
  width: auto;
  margin: 12px 0 0;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.footer-col a.btn:hover {
  color: #fff;
  background: var(--red-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

/* ---------- Страница политики ---------- */
.page-head {
  background: var(--bg-soft);
  padding: 24px 0;
  border-bottom: 1px solid #e9ecef;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 12px 80px;
}

.prose h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.6;
  color: #343a40;
}

.prose ul { padding-left: 22px; }

.prose .note {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--muted);
}

.prose .back { margin-top: 40px; }

/* ---------- Фокус и мелочи ---------- */
a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(220, 53, 69, 0.15); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: 15px; }
  .hero-top { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
  .hero-logo { width: 200px; height: 200px; font-size: 60px; }
  .services-head { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .about-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .about-photo { width: 240px; height: 240px; }
  .contacts-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { padding: 24px 0 40px; }
  .hero-card { padding: 32px; }
  .hero-top { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .hero-logo { width: 150px; height: 150px; font-size: 46px; }
  .usp { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; padding-top: 24px; }
  .services-head { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { width: 200px; height: 200px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 640px) {
  .header-inner { gap: 8px; min-height: 60px; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 15px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 15px; }
  .brand-text small { display: none; }
  .phone-pill span { display: none; }
  .phone-pill { padding: 8px 10px; }
  .icon-btn { display: none; }
  .hero-card { padding: 24px; }
  .hero-top { grid-template-columns: 1fr; gap: 20px; }
  .hero-logo { width: 110px; height: 110px; font-size: 34px; margin: 0; box-shadow: 0 0 0 8px var(--bg-soft); }
  h1 { font-size: 32px; }
  .hero-role, .hero-lead { font-size: 17px; }
  .section { padding: 48px 0; }
  .h-lg { font-size: 30px; }
  .lead { font-size: 17px; }
  .lead-muted { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .service { padding: 24px; }
  .service h3 { font-size: 22px; }
  .service p { font-size: 16px; }
  .about-stats { gap: 24px; }
  .about-stat span { font-size: 30px; }
  .section-title { font-size: 26px; margin-bottom: 32px; }
  .section-sub { margin-top: -22px; font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .case { padding: 24px; }
  .case-text { font-size: 17px; }
  .case-results { gap: 24px; }
  .case-results strong { font-size: 24px; }
  .review { padding: 24px; }
  .review blockquote { font-size: 16px; }
  .contact-phone { font-size: 28px; }
  .lead-form { padding: 24px; }
  .lead-form h3 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
