
/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА MANROPE ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #edeeee;
  --card: #ffffff;
  --text: #000000;
  --muted: #564a43;
  --accent: #f97316;
  --accent2: #ea580c;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
  --max: 1180px;
  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
main {
  flex: 1 0 auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 1000;
}

/* ===== ШАПКА (обновлена) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.2rem;
  color: var(--text);
}
.brand__name span:first-child {
  color: #000000;
}
.brand__name span:last-child {
  color: var(--accent);
}
.brand__tag {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.4;
}
.header__right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-size: 15px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: opacity 0.2s;
}
.badge:hover {
  opacity: 0.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  letter-spacing: 2px; /* новое межбуквенное расстояние */
}
.btn--accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.header__right .btn--accent {
  border: 1px solid var(--border);
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent2);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent2);
  color: #fff;
}
.header__right .btn--accent:hover {
  border-color: var(--border);
}

/* ===== ГОРИЗОНТАЛЬНОЕ МЕНЮ (ДЕСКТОП) ===== */
.nav {
  flex: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  width: 100%;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 8px 10px;
  transition: all 0.2s;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
.nav a.nav__link--wrap {
  white-space: nowrap;
}
.nav a:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--accent);
}
.nav .dropdown {
  position: relative;
}
.nav .dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 180px;
  z-index: 100;
}
.nav .dropdown:hover .dropdown__menu {
  display: block;
}
.nav .dropdown__menu a {
  color: var(--text);
  padding: 8px 16px;
  display: block;
  background-color: transparent;
  white-space: nowrap;
  text-align: left;
  justify-content: flex-start;
  font-weight: 500;
  font-size: 15px;
}
.nav .dropdown__menu a:hover {
  background-color: #f1f5f9;
  color: var(--accent);
}

/* ===== АДАПТАЦИЯ МЕНЮ НА СРЕДНИХ ЭКРАНАХ ===== */
@media (max-width: 1250px) {
  .nav ul {
    gap: 10px;
  }
  .nav a {
    padding: 8px 10px;
  }
}
@media (max-width: 1200px) {
  .nav a.nav__link--wrap {
    white-space: normal;
    line-height: 1.2;
    max-width: 130px;
  }
}
@media (max-width: 1080px) {
  .nav ul {
    gap: 8px;
  }
  .nav a {
    padding: 8px 8px;
  }
  .nav a.nav__link--wrap {
    max-width: 120px;
  }
}
@media (max-width: 1024px) {
  .nav ul {
    gap: 6px;
  }
  .nav a {
    padding: 8px 6px;
  }
  .nav a.nav__link--wrap {
    max-width: 110px;
  }
}
@media (max-width: 950px) {
  .nav ul {
    gap: 4px;
  }
  .nav a {
    padding: 8px 5px;
  }
  .nav a.nav__link--wrap {
    max-width: 100px;
  }
  .badge {
    padding: 0;
    font-size: 15px;
  }
  .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}
@media (max-width: 850px) {
  .nav a {
    font-size: 14px;
  }
  .nav a.nav__link--wrap {
    font-size: 14px;
    max-width: 95px;
  }
  .badge {
    font-size: 15px;
  }
  .btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* ===== ПРАВЫЙ БЛОК НА СРЕДНИХ ШИРИНАХ ===== */
@media (max-width: 1250px) and (min-width: 1025px) {
  .header__right {
    margin-right: 20px;
    gap: 16px;
  }
  .badge {
    font-size: 15px;
  }
  .btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .header__right {
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    margin-right: 20px;
  }
}

/* ===== БЛОК HERO (обновлён) ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* Тонировочный слой */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* прозрачность 40% */
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__text {
  width: 100%;
}

.hero__text .kicker {
  font-size: 60px;
  font-weight: 900;          /* жирнее */
  letter-spacing: 0px;      /* уменьшено межбуквенное расстояние */
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.hero__text .h1-large {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero__text .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  max-width: 100%;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;  /* кнопки слева */
  align-items: center;
}

/* Общие стили для кнопок в hero */
.hero__actions .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 48px;                /* фиксированная высота */
  line-height: 48px;           /* вертикальное выравнивание */
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Вторая и третья кнопки — белые полупрозрачные */
.hero__actions .btn:not(:first-child) {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero__actions .btn:not(:first-child):hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero__actions .btn:hover {
  transform: translateY(-2px);
}

/* Адаптация hero (остальное без изменений) */
@media (max-width: 992px) {
  .hero {
    min-height: 500px;
    padding: 60px 0;
  }
  .hero__text .h1-large {
    font-size: 36px;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    padding: 50px 0;
  }
  .hero__text .h1-large {
    font-size: 32px;
  }
  .hero__text .lead {
    font-size: 16px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__actions .btn {
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .hero__text .h1-large {
    font-size: 28px;
  }
  .hero__actions {
    gap: 12px;
  }
}
.breadcrumbs {
  margin-top: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumbs a:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .hero {
    min-height: 500px;
    padding: 60px 0;
  }
  .hero__text .h1-large {
    font-size: 36px;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    padding: 50px 0;
  }
  .hero__text .h1-large {
    font-size: 32px;
  }
  .hero__text .lead {
    font-size: 16px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__actions .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .hero__text .h1-large {
    font-size: 28px;
  }
  .hero__actions {
    gap: 12px;
  }
}

/* ===== БЛОК "КАК МЫ РАБОТАЕМ" (обновлены шрифты) ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}
.steps .card {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 24px;
}
.steps .step--image-left {
  flex-direction: row-reverse;
}
.step__image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  background-color: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step__content {
  flex: 1;
}
.step__title {
  font-size: 28px;
  font-weight: 600;          /* semibold вместо 700 */
  margin-bottom: 12px;
  color: var(--text);
}
.step__description {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;          /* medium */
}
@media (max-width: 768px) {
  .steps .card {
    flex-direction: column !important;
    text-align: center;
    gap: 24px;
  }
  .step__image {
    width: 200px;
    height: 200px;
  }
  .step__title {
    font-size: 24px;
  }
  .step__description {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .step__image {
    width: 150px;
    height: 150px;
  }
  .step__title {
    font-size: 20px;
  }
}

/* ===== МОБИЛЬНОЕ МЕНЮ (без изменений) ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav.active {
  display: block;
  opacity: 1;
}
.mobile-nav__inner {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  min-height: 40vh;
  background-color: var(--accent);
  padding: 20px 20px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.active .mobile-nav__inner {
  transform: translateY(0);
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__list li {
  margin-bottom: 5px;
}
.mobile-nav__list a {
  display: block;
  padding: 12px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-nav__list a:hover {
  background-color: rgba(0,0,0,0.1);
  color: #fff;
}
.mobile-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-dropdown__item a {
  flex: 1;
}
.mobile-dropdown__toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s;
}
.mobile-dropdown__toggle .arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.mobile-dropdown__toggle[aria-expanded="true"] .arrow {
  transform: rotate(-135deg);
}
.mobile-dropdown__menu {
  list-style: none;
  margin: 0;
  padding-left: 20px;
  display: none;
}
.mobile-dropdown__menu.expanded {
  display: block;
}
.mobile-dropdown__menu a {
  padding: 10px 15px;
  font-size: 13px;
  color: #fff;
}
.mobile-dropdown__menu a:hover {
  background-color: rgba(0,0,0,0.1);
}
.mobile-nav__contacts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.mobile-nav__phone {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}
.mobile-nav__order {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid #fff;
}
.mobile-nav__order:hover {
  background: var(--accent2);
}
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.menu-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* ===== ОСНОВНЫЕ СТИЛИ СЕКЦИЙ ===== */
.section { padding: 15px 0; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.h2 {
  font-size: 26px;
  margin-top: 30px;
  margin-bottom: 6px; /* уменьшен отступ снизу */
  color: var(--text);
}
.p {
  color: var(--text);
  margin: 0 0 30px 0; /* увеличен отступ снизу для отступа от grid */
  max-width: none;
}
.grid {
  display: grid;
  gap: 14px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== КАРТОЧКИ (обновлены шрифты и расположение pill) ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}
.card__title {
  font-weight: 700;          /* жирнее */
  font-size: 1.25rem;        /* немного больше */
  margin: 0 0 6px;
  color: var(--text);
}
.card__meta {
  color: var(--text);        /* чёрный */
  font-size: 15px;           /* крупнее */
  margin: 0;
  font-weight: 500;          /* medium */
}
.card__img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  height: 500px;
}
.card__img_cards {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  height: 250px;
}
.card__img_cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* чтобы изображение заполнило контейнер без искажений */
  display: block;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__img--icon {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  margin-bottom: 16px;
}
.card__img--icon img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.card__row {
  display: flex;
  justify-content: space-between;   /* pill слева, кнопка справа */
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0px 12px;               /* уменьшена высота на треть */
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #3a2a24;                  /* темнее, чем var(--muted) */
  font-size: 12px;
  background: var(--bg);
}
.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.2);
}
.breadcrumbs a:hover {
  color: var(--text);
}

/* ===== СПИСКИ ===== */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.list li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
}
.dot {
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  margin: 0;
  flex-shrink: 0;
}
.dot::before {
  content: "•";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

/* ===== ФОРМЫ ===== */
.form {
  display: grid;
  gap: 12px;
}
.input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin: 0 0 6px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.note {
  font-size: 12px;
  color: var(--muted);
}
.hr {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* ===== ПОДВАЛ (обновлён) ===== */
.footer {
  background: #212121;
  padding: 26px 0;
  margin-top: auto;
  color: #ffffff;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
.small {
  color: #ffffff;
  font-size: 15px;
}
.footer a {
  color: #ffffff;
  transition: color 0.2s;
  font-size: 13px;
}
.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer .card__title {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
}
.footer .brand__name {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 700;
}
.footer .brand__name span:first-child {
  color: #ffffff;
}
.footer .brand__name span:last-child {
  color: var(--accent);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.footer__bottom .small {
  color: #ffffff;
}
/* Ссылки в разделе «Разделы» делаем жирными */
.footer__grid > div:last-child a {
  font-weight: 600;
}
/* Социальные иконки в подвале — залитые, размер 50x50 */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.social-link svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
  transition: fill 0.2s;
}
.social-link:hover {
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.table td,
.table th {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: left;
  font-weight: 600; /* для th можно оставить полужирным, но фон одинаковый */
}
.table td:first-child,
.table th:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.table td:last-child,
.table th:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ===== АДАПТАЦИЯ СЕТОК И КАРТОЧЕК ===== */
@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav ul {
    display: none;
  }
  .header__right .badge,
  .header__right .btn--accent {
    display: none;
  }
  .menu-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    margin-right: 8px;
  }
}
@media (max-width: 620px) {
  .h1 { font-size: 32px; }
  .grid--3, .grid--2, .grid--4 {
    grid-template-columns: 1fr;
  }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .card__img {
    height: 1500px;
  }
}
@media (max-width: 768px) {
  .card__img {
    height: 250px; /* или 200px, в зависимости от дизайна */
  }
  .card__img--large {
    height: 300px;
  }
  .hero {
    min-height: 300px; /* вместо 500px */
  }
}

/* ===== УТИЛИТЫ ===== */
.contact-row svg {
  width: 20px;
  height: 20px;
}

#header-placeholder,
#footer-placeholder {
  display: block;
  min-height: 60px !important;
  background: transparent;
  transition: opacity 0.15s ease;
  opacity: 0;
}

.card__img-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.card__img-link:hover {
  opacity: 0.9;
}
.card__img-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 14px;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox__content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.2s;
}
.lightbox__close:hover {
  color: var(--accent);
}

a:not(.btn):not(.nav a):not(.footer a):not(.brand) {
  text-decoration: underline;
  text-decoration-color: rgba(249,115,22,0.3);
  transition: text-decoration-color 0.2s;
}
a:not(.btn):not(.nav a):not(.footer a):not(.brand):hover {
  text-decoration-color: var(--accent);
}

.footer__social {
  margin-right: 16px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.social-icon svg {
  width: 24px;
  height: 24px;
}
.social-icon:hover {
  opacity: 0.8;
}

.h3, h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.3;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent2);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.9);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

.hero--simple {
  min-height: 400px;
}
.hero--simple .hero__text--centered {
  text-align: center;
  width: 100%;
}
.hero--simple .hero__title {
  font-size: 48px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}
@media (max-width: 768px) {
  .hero--simple .hero__title {
    font-size: 36px;
  }
  .hero--simple {
    min-height: 300px;
  }
}
@media (max-width: 480px) {
  .hero--simple .hero__title {
    font-size: 28px;
  }
}
/* ===== СТАТИСТИЧЕСКИЕ КАРТОЧКИ В БЛОКЕ "О КОМПАНИИ" ===== */
.card .grid--2 .card {
  text-align: center;
  justify-content: center;
  align-items: center;
}
.card .grid--2 .card .card__title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.card .grid--2 .card .card__meta {
  font-size: 16px;
  color: var(--text);
  margin: 0;
}
/* ===== ОБНОВЛЕНИЯ ДЛЯ ФОРМЫ ЗАЯВКИ ===== */
.form label {
  color: #1a1a1a;
  font-family: var(--font);
  font-size: 16px;           /* такой же, как у обычного текста */
  font-weight: 400;          /* обычный, не жирный */
}
.input, textarea {
  border: none;
  background: var(--bg);
  color: #666666;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.input::placeholder, textarea::placeholder {
  color: #999999;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
}
.form .btn--accent {
  padding: 12px 24px;
  width: 33%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;          /* кнопка может остаться полужирной, это нормально */
}
.note, .note a {
  font-family: var(--font);
  font-size: 14px;           /* как в .breadcrumbs или чуть меньше */
  font-weight: 400;
  color: var(--muted);
}
@media (max-width: 768px) {
  .form .btn--accent {
    width: 100%;            /* на мобильных — на всю ширину */
    max-width: none;
  }
}
/* Внесённое изменение в styles.css */
.header {
  position: sticky;
  top: 0;
  z-index: 1010;

  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* тонкая чёрная полоса */
}
@media (min-width: 1024px) {
  .header__right .btn--accent {
    height: 40px;           /* фиксированная высота */
    display: inline-flex;
    align-items: center;
  }
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--bg);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
}

/* ===== ОРАНЖЕВАЯ ССЫЛКА НА PDF ===== */
.pdf-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(249,115,22,0.3);
}
.pdf-link:hover {
  text-decoration-color: var(--accent);
}

/* ===== КНОПКИ НАВИГАЦИИ В LIGHTBOX ===== */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 36px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2002;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
  .lightbox__prev,
  .lightbox__next {
    font-size: 24px;
    padding: 8px 12px;
  }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

 .table th {
      background-color: var(--bg);
      font-weight: 700;
      color: var(--text);
      padding: 12px;
      border-bottom: 1px solid var(--border);
      text-align: left;
    }
    .table-wrapper {
      overflow-x: auto;
    }
    
    
.page-arenda .card__img {
  height: 250px;
}

/* Обеспечиваем, чтобы сетка из двух карточек занимала всю ширину */
.page-arenda .grid--4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* На мобильных устройствах — одна колонка (уже есть в вашем коде, но на всякий случай) */
@media (max-width: 620px) {
  .page-arenda .grid--4 {
    grid-template-columns: 1fr;
  }
}
/* ===== Стили для секции "О компании" (вертикальные блоки) ===== */
.stats-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрируем оба блока по горизонтали */
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;    /* компактные отступы, ширина по содержимому */
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  width: auto;           /* не растягиваем на всю ширину */
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);    /* чёрный, а не акцентный */
  margin-bottom: 8px;
}

.stat-description {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.stat-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stat-number { font-size: 36px; }
  .stat-description, .stat-text { font-size: 16px; }
  .stat-card { padding: 12px 20px; }
}
/* ===== ВЫРАВНИВАНИЕ ТЕКСТА ПО ШИРИНЕ ДЛЯ ВСЕХ ПАРАГРАФОВ ===== */
.p,
.text-block__paragraph {
  text-align: justify;
  hyphens: auto;               /* автоматические переносы слов (русский язык) */
}

/* Для мобильных: чуть уменьшаем расстояние между словами, чтобы не было больших дыр */
@media (max-width: 640px) {
  .p,
  .text-block__paragraph {
    word-spacing: -0.05em;
  }
}
/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТЫ ===== */
.contacts-page .contacts-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  margin: 32px 0;
  align-items: start;
}
.contacts-page .contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  /* ширина автоматическая, по содержимому */
}
.contacts-page .map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contacts-page .map-card iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}
.contacts-page .contact-card .list li {
  color: var(--text);
}
.contacts-page .contact-card .card__title {
  color: var(--text);
  margin-bottom: 16px;
}
.contacts-page .form-section {
  margin-top: 40px;
}

/* Инвертированный блок (тёмный фон, светлый текст) */
.card--inverted {
  background: #f97316;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}
.card--inverted .card__title {
  color: #ffffff;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 6px;
}
.card--inverted .small,
.card--inverted .small a {
  color: #eee2d8;
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 0;
}
.card--inverted .small a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.card--inverted .btn--accent {
  background: #ffffff;
  color: #f97316;
  border-color: #ffffff;
  display: block;
  width: 33%;
  max-width: 300px;
  margin: 24px auto 0 auto;
  text-align: center;
}
.card--inverted .btn--accent:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0b1220;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .contacts-page .contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contacts-page .map-card iframe {
    height: 350px;
  }
  .card--inverted .btn--accent {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .contacts-page .contact-card {
    padding: 20px;
  }
}
/* Исправление выхода слова "СПЕЦТЕХНИКИ" — без переноса, только уменьшение шрифта */
@media (max-width: 600px) {
  .hero__text .kicker {
    font-size: 36px;
    white-space: normal;
    word-break: keep-all;
  }
}

@media (max-width: 480px) {
  .hero__text .kicker {
    font-size: 28px;
  }
}

@media (max-width: 400px) {
  .hero__text .kicker {
    font-size: 40px;
  }
}
/* Кнопка "Посмотреть экскаваторы" — оранжевая, без затемнения при наведении */
.hero__actions a[href*="ekskavatory"] {
  background: var(--accent) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.hero__actions a[href*="ekskavatory"]:hover {
  background: var(--accent) !important;   /* не темнеет, цвет тот же */
  transform: translateY(-1px) !important; /* лёгкое поднятие (как у других кнопок), но без изменения фона */
  color: #fff !important;
}