/* Используются «логические» свойства (inline-start/end),
   чтобы при добавлении иврита (dir="rtl") вёрстка отразилась сама. */

:root {
  --bg: #ffffff;
  --bg-alt: #f2f6fa;
  --text: #16202c;
  --muted: #56637a;
  --primary: #0b63c9;
  --primary-dark: #084fa1;
  --primary-soft: #e3effc;
  --accent: #ff7a1a;
  --whatsapp: #1fa855;
  --border: #dbe3ec;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(16, 32, 60, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}
.container--narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-block-end: 0.75rem; }
h3 { font-size: 1.2rem; margin-block-end: 0.4rem; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-block-end: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
}
.logo small { font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
}
.logo__mark svg { fill: #fff; width: 24px; height: 24px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover { color: var(--primary); }
.nav .nav__phone {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  direction: ltr;
}
.nav .nav__phone:hover { background: var(--primary-dark); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn svg { fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #e8680c; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #178a45; }
.btn--light { background: #fff; color: var(--primary); }

/* ---------- Главный экран ---------- */
.hero {
  background: linear-gradient(135deg, #0a4fa3 0%, #0b63c9 55%, #3d8fe6 100%);
  color: #fff;
  padding-block: 80px 90px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-block-end: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-block-end: 1rem; }
.hero__lead { font-size: 1.15rem; opacity: 0.93; margin-block-end: 1.8rem; max-width: 560px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-block-start: 1.8rem;
  font-size: 0.95rem;
  opacity: 0.95;
}
.hero__points li::before { content: "✓ "; font-weight: 700; color: #9fd4ff; }

.hero__photo img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.photo-placeholder {
  background: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: none;
}
.photo-placeholder svg { width: 56px; height: 56px; fill: rgba(255, 255, 255, 0.7); }

/* ---------- Секции ---------- */
.section { padding-block: 84px; }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--muted); margin-block-end: 2rem; max-width: 640px; }

/* Услуги */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-block-end: 16px;
}
.card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* Фото техники: если файла нет, блок убирается и остаётся значок */
.card__photo {
  margin: -28px -26px 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-start-start-radius: var(--radius);
  border-start-end-radius: var(--radius);
  background: var(--bg-alt);
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:has(.card__photo) .card__icon { display: none; }

.card--cta {
  background: var(--primary-soft);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}
.card--cta .btn { margin-block-start: 8px; direction: ltr; }

/* Почему я */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-block-start: 1.5rem;
}
.feature {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-inline-start: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.feature strong { display: block; font-size: 1.1rem; margin-block-end: 6px; }
.feature p { color: var(--muted); }

/* Цена */
.price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.price__main { text-align: center; }
.price__main h2 { font-size: 1.3rem; }
.price__value {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  direction: ltr;
}
.price__value span { font-size: 0.6em; }
.price__what { font-weight: 600; margin-block-start: 6px; }
.price__list { list-style: none; display: grid; gap: 12px; }
.price__list li {
  padding-inline-start: 28px;
  position: relative;
  color: var(--muted);
}
.price__list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--whatsapp);
  font-weight: 700;
}

/* Обо мне */
.about-me {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.about-me__photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}
.about-me__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-me__photo svg { display: none; }
.about-me__photo.no-photo svg {
  display: block;
  width: 45%;
  height: 45%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.4;
}
.about-me__text p { color: var(--muted); margin-block-end: 1rem; }
.about-me__text .hero__actions { margin-block-start: 1.5rem; }

/* Шаги */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-block-start: 1.5rem;
  counter-reset: none;
}
.steps li { position: relative; }
.steps__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-block-end: 14px;
}
.steps p { color: var(--muted); }

/* Районы */
.areas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.areas li {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
}

.areas .areas__more {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

/* ---------- Страницы услуг ---------- */
.hero--page { padding-block: 36px 64px; }
.crumbs { font-size: 0.9rem; opacity: 0.85; margin-block-end: 28px; }
.crumbs a { color: #fff; }
.crumbs span { margin-inline: 6px; }
.hero__page-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.hero__page-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.hero__page-icon svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.hero__page-inner:has(.hero__page-photo) { grid-template-columns: auto 1fr 340px; }
.hero__page-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: block;
}

.faults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.fault {
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.fault h3 { font-size: 1.08rem; }
.fault p { color: var(--muted); font-size: 0.97rem; }

.brands {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 1.5rem 1rem;
}
.brands li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 1.05rem;
}
.brands__note { margin-block-end: 0; }

.other-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-block-start: 1.2rem;
}
.other-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.other-service:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.other-service svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.card__link {
  display: inline-block;
  margin-block-start: 12px;
  font-weight: 700;
  text-decoration: none;
}
.card__link::after { content: " →"; }
[dir="rtl"] .card__link::after { content: " ←"; }

/* Вопросы */
.faq {
  border-block-end: 1px solid var(--border);
  padding-block: 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-block-start: 10px; }

/* Контакты */
.section--contact {
  background: linear-gradient(135deg, #0a4fa3 0%, #0b63c9 100%);
  color: #fff;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact__info p { opacity: 0.92; margin-block-end: 1rem; }
.contact__phone {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-block-end: 1.2rem;
  direction: ltr;
}

.form {
  background: var(--bg);
  color: var(--text);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 14px;
}
.form__hint { color: var(--muted); font-size: 0.92rem; margin-block-start: -6px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

/* Подвал */
.footer {
  background: var(--text);
  color: #b9c3d1;
  padding-block: 26px;
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer a { color: #fff; font-weight: 600; text-decoration: none; direction: ltr; }

/* Плавающие кнопки (только на телефоне) */
.float-bar { display: none; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-block-end: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-block-start: 1px solid var(--border); }
  .nav .nav__phone { margin: 12px 16px; text-align: center; }

  .hero { padding-block: 48px 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { max-width: 420px; }
  .photo-placeholder { aspect-ratio: 16 / 10; }

  .section { padding-block: 56px; }
  .hero__page-inner,
  .hero__page-inner:has(.hero__page-photo) { grid-template-columns: 1fr; gap: 20px; }
  .hero__page-photo { max-width: 420px; }
  .hero__page-photo img { aspect-ratio: 16 / 10; }
  .hero__page-icon { width: 72px; height: 72px; border-radius: 18px; }
  .hero__page-icon svg { width: 42px; height: 42px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-me { grid-template-columns: 1fr; gap: 28px; }
  .price { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .about-me__photo { max-width: 220px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 22px; }

  body { padding-block-end: 64px; }
  .float-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }
  .float-bar a {
    padding: 18px 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  .float-bar__call { background: var(--accent); }
  .float-bar__wa { background: var(--whatsapp); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
