/* ===== Base ===== */
:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  --shadow: 0 0px 60px rgba(0, 0, 0, 0.1);

  --accent: #f97316; /* оранжевый как в примере */
  --accent2: #fb923c;

  --dark: #2f2f2f;
  --dark2: #262626;
  --darkText: rgba(255, 255, 255, 0.82);
  --darkMuted: rgba(255, 255, 255, 0.56);

  --header-h: 140px;
  --radius: 14px;
}

section[id],
[id].anchor-fix {
  scroll-margin-top: var(--header-h);
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  padding-top: var(--header-h, 120px);

  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.no-scroll {
  overflow: hidden;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #111827;
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

/* когда прячем */
.site-header.is-hidden {
  transform: translateY(-110%);
}

/* тень когда чуть прокрутили */
.site-header.is-scrolled {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.chev {
  font-size: 12px;
  opacity: 0.8;
}
.topbar__addr {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.topbar__phone {
  font-weight: 800;
  color: var(--text);
}

/* main row */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* logo base */
.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  transform: translateY(-1px);
}

/* ===== Logo pill: градиентное растворение (сверху/снизу/справа/слева) ===== */
.brand--pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  isolation: isolate;
}

.brand__logo {
  height: 45px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.brand--pill .brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}
.brand--pill .brand__name {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.brand--pill .brand__tag {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
}

/* nav center */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  flex: 1;
}
.nav__link {
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 13px;
  color: #f3f4f6;
  padding: 10px 10px;
}
.nav__link:hover {
  transform: translateY(-1px);
}

/* actions right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* icon button */
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover {
  background: #f3f4f6;
}
.icon-btn--soft {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

/* Font Awesome icons (header) */
.icon-btn i {
  font-size: 18px;
  color: #111827;
}

/* CTA button */
.btn-cta {
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
  transition: transform 0.15s ease;
}
.btn-cta:hover {
  transform: translateY(-1px);
}
.btn-cta--full {
  width: 100%;
}

.btn-light {
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  background: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.btn-light--full {
  width: 100%;
}
.btn-light:hover {
  transform: translateY(-1px);
  background: #f3f4f6;
}

/* burger */
.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  width: 18px;
  height: 2px;
  background: #111827;
}

/* mobile menu */
.mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile.is-open {
  display: block;
}
.mobile__nav {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile__link {
  padding: 12px 12px;
  background: #f3f4f6;
  font-weight: 800;
  color: #111827;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--darkText);
  margin-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  gap: 28px;
  padding: 36px 0 28px;
}
.footer-title {
  font-weight: 900;
  margin-bottom: 5px;
  color: #fff;
}
.footer-link {
  display: block;
  padding: 3px 0;
  color: var(--darkMuted);
  font-weight: 650;
}
.footer-link:hover {
  color: #fff;
}
.footer-link--strong {
  color: #fff;
  font-weight: 900;
}
.footer-text {
  color: var(--darkMuted);
  line-height: 1.55;
}

.footer-contact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
}

/* footer icons (Font Awesome) */
.fc-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.fc-ico i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* social buttons (Font Awesome) */
.social__btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.social__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.social__btn i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1155px) {
  .nav--desktop {
    display: none;
  }
  .burger {
    display: flex;
  }
  .topbar__addr {
    max-width: 48vw;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* адаптив капсулы логотипа */
@media (max-width: 620px) {
  .topbar__addr {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand--pill .brand__tag {
    display: none;
  }
  .brand--pill {
    padding: 12px 14px;
  }
}

/* ===== Sections / Layout ===== */
.section {
  padding: 56px 0;
}
.section--soft {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 950;
  letter-spacing: -0.3px;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 100%
    ),
    url("/static/images/portfolio/5.jpg") center/cover no-repeat;
  min-height: 500px;
  padding: 60px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-attachment: fixed;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.hero__title {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.4vw, 35px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.hero__subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 680px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero__actions .btn-cta,
.hero__actions .btn-light {
  gap: 10px;
}

/* ===== Cards (универсальные) ===== */
.card {
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-1px);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.card__icon i {
  color: var(--accent);
  font-size: 18px;
}
.card__title {
  margin: 12px 0 8px;
  font-weight: 950;
  font-size: 16px;
}
.card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.card__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 750;
  font-size: 13px;
}
.card__list li i {
  color: #16a34a;
}

/* ===== Services ===== */
.service {
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* ХИТ */
.badge--hit {
  background: linear-gradient(135deg, #ff3d00, #ff7a00);
}

/* НОВИНКА */
.badge--new {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.service:hover {
  transform: translateY(-1px);
}

/* фото в карточках каталога/услуг */
.service__img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* если хочешь чуть “живее” при наведении */
.service:hover .service__img img {
  transform: scale(1.03);
  transition: transform 220ms ease;
}

.service__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.service__icon i {
  color: var(--accent);
  font-size: 18px;
}
.service__title {
  margin: 12px 0 8px;
  font-weight: 950;
  font-size: 16px;
}
.service__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.service__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pill {
  border: 1px solid rgba(17, 24, 39, 0.06);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: #111827;
}
.pill i {
  color: var(--accent);
}
.service__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  margin-top: 14px;
}
.service__btn i {
  opacity: 0.95;
}

/* ===== Portfolio ===== */
.work {
  display: block;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0px 60px rgba(0, 0, 0, 0.1);
}
.work:hover {
  transform: translateY(-1px);
}

.work__img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work__img img {
  width: 100%;
  /*height: 100%;*/
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.work__ph {
  color: var(--muted);
  font-weight: 800;
}
.work__body {
  padding: 14px 14px 16px;
}

/* Цена товара */
.work__price {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  white-space: nowrap;
}

.work__price-value {
  font-size: 1.5rem;
  color: var(--accent);
  display: inline-block;
}

.work__price-unit {
  font-size: 0.9rem;
  color: var(--accent2);
  margin-left: 4px;
}

.work__title {
  font-weight: 950;
  margin-bottom: 6px;
}
.work__text {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* ===== Responsive for blocks ===== */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__meta {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Баннер со скидками - Вариант 2 */
.discount-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  margin-bottom: 30px;
  border-left: 6px solid var(--accent);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.discount-banner:hover {
  box-shadow: 0 0px 24px rgba(0, 0, 0, 0.12);
  transform: translateX(1px);
}

.discount-banner__icon {
  font-size: 2.8rem;
  color: var(--accent);
  min-width: 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-banner__content {
  flex: 1;
}

.discount-banner h3 {
  color: var(--text);
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.discount-banner p {
  color: #666;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-cta--small {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--accent);
  color: white;
  transition: all 0.3s ease;
}

.btn-cta--small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
  .discount-banner {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .discount-banner__icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .discount-banner h3 {
    font-size: 1.35rem;
  }

  .discount-banner p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}
/* ===== Section title line (как на фото: оранжевая линия справа) ===== */
.section-head--line {
  align-items: center;
}

.section-title--line {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Линия СПРАВА, фиксированной длины */
.section-title--line::after {
  content: "";
  height: 2px;
  width: 300px; /* ← фиксированная длина */
  background: var(--accent);
  opacity: 0.95;
  transform: translateY(2px);
  flex-shrink: 0; /* не сжимается */
}

/* маленькая линия слева (опционально). Если не нужна — удали блок ниже */
.section-title--line::before {
  content: "";
  height: 2px;
  width: 40px;
  background: var(--accent);
  transform: translateY(2px);
  opacity: 0.95;
}

/* адаптив: чтобы не ломалось на телефоне */
@media (max-width: 620px) {
  .section-title--line {
    gap: 12px;
  }
  .section-title--line::before {
    width: 26px;
  }
  .section-title--line::after {
    width: 26px;
    opacity: 0.9;
  }
}

/* ===== New universal advantages style (u-*) ===== */
.u-advantages {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

/* LEFT: list */
.u-list {
  display: grid;
  gap: 12px;
}

.u-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.u-item:hover {
  transform: translateY(-1px);
}

/* вертикальная “линия бренда” слева */
.u-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--accent);
  opacity: 0.9;
}

.u-item__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.14);
}

.u-item__icon i {
  color: var(--accent);
  font-size: 20px;
}

.u-item__title {
  margin: 0 0 6px;
  font-weight: 950;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.2;
}

.u-item__text {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.55;
  font-weight: 650;
  font-size: 14px;
}

/* RIGHT: panel */
.u-panel {
  position: sticky;
  top: 96px;
  padding: 16px;
  box-shadow: 0 0px 44px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.u-panel__head {
  margin-bottom: 12px;
}

.u-mark__num {
  font-weight: 950;
  font-size: 25px;
  line-height: 1;
}

.u-panel__title {
  font-weight: 950;
  font-size: 25px;
  color: #0f172a;
}
.u-panel__sub {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.45;
  font-weight: 650;
  font-size: 13px;
}

.u-proof {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.u-proof__row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.u-proof__row i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
}

.u-proof__name {
  font-weight: 950;
  color: #0f172a;
  margin-bottom: 4px;
}
.u-proof__text {
  color: rgba(15, 23, 42, 0.7);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

.u-panel__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.u-btn {
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.72);
}

.u-btn:hover {
  transform: translateY(-1px);
}

.u-btn--dark {
  background: #111827;
  color: #fff;
}
.u-btn--dark i {
  opacity: 0.95;
}

.u-btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}
.u-btn--accent i {
  opacity: 0.95;
}

/* ===== Button "Посмотреть больше" ===== */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 22px;

  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #fff;
  font-weight: 900;
  text-decoration: none;

  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
  transition: all 0.25s ease;
}

/* ОБЁРТКА ДЛЯ ЦЕНТРИРОВАНИЯ */
.btn-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.btn-more i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.btn-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.35);
}

.btn-more:hover i {
  transform: translateX(4px);
}

.u-panel__water {
  position: absolute;
  right: -100px;
  bottom: 265px;
  font-weight: 950;
  letter-spacing: 10px;
  font-size: 64px;
  color: rgba(17, 24, 39, 0.08);
  transform: rotate(-90deg);
  user-select: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .u-advantages {
    grid-template-columns: 1fr;
  }
  .u-panel {
    position: relative;
    top: auto;
  }
}
@media (max-width: 620px) {
  .u-item {
    grid-template-columns: 52px 1fr;
  }
  .u-item__icon {
    width: 52px;
    height: 52px;
  }
}

/* ===== HERO STATS BLOCK ===== */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.hero__subtitles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
}
.hero__subtitles h2 {
  margin: 0;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.3;
  font-weight: 500;
  color: #444;
  padding: 6px 14px;
  background: #ffffff73;
  transition:
    background 0.2s,
    color 0.2s;
}
.hero__subtitles h2:hover {
  background: #fff7ed;
  color: var(--accent);
}

.hero-stat {
  background: #ffffff73;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(17, 24, 39, 0.12);
}

.hero-stat__value {
  font-size: 36px;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.hero-stat__value span {
  font-size: 18px;
  color: var(--accent);
}

.hero-stat__label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
}

/* акцентная карточка */
.hero-stat--accent {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #fff;
}

.hero-stat--accent .hero-stat__value,
.hero-stat--accent .hero-stat__label {
  color: #fff;
}

.hero-stat--accent i {
  font-size: 32px;
}

/* адаптив */
@media (max-width: 980px) {
  .hero-stats {
    grid-template-columns: -1fr;
  }
}

/* ===== PROJECT PAGE ===== */
.project-head {
  text-align: center;
}

.project-title {
  margin: 18px 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.2px;
}

.project-subtitle {
  margin: 0px 0px 15px;
  color: var(--muted);
  font-weight: 650;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
}

.p-card {
  background: #fff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.p-gallery {
  padding: 14px;
}

.p-gallery__main {
  overflow: hidden;
  height: 320px;
}

.p-gallery__main img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.p-thumb {
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.88;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.p-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}

.p-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.p-thumb.is-active {
  opacity: 1;
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.p-info {
  padding: 16px;
}

.p-info__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.p-info__title {
  font-weight: 950;
  font-size: 25px;
}

.p-chip {
  display: block;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #e9ecef;
  color: #495057;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 8px;
  border: 1px solid #dee2e6;
  text-align: center;
}

.p-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.p-row__label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.p-row__value {
  color: #111827;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.55;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  margin-bottom: 12px;
}

.p-tags .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, 0.06);
  font-weight: 800;
  color: #111827;
  font-size: 13px;
}

.p-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

.p-actions .btn-light,
.p-actions .btn-cta {
  flex: 1;
}

/* responsive */
@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .p-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Project: extra blocks ===== */

.p-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 6px;
}

.p-fact {
  box-shadow: var(--shadow);
  background: gba(249, 115, 22, 0.1);
  padding: 12px;
  text-align: center;
}

.p-fact__val {
  font-weight: 950;
  letter-spacing: -0.4px;
  font-size: 22px;
  color: #111827;
}

.p-fact__label {
  margin-top: 4px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.65);
  text-transform: uppercase;
}

/* списки материалов */
.p-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.p-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-weight: 650;
  color: #111827;
  font-size: 14px;
}

.p-list i {
  margin-top: 3px;
  color: rgba(249, 115, 22, 0.95);
}

/* этапы */
.p-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.p-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 650;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}

.p-steps li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: #9a3412;
  font-weight: 950;
  font-size: 12px;
}

/* доп. блоки (перки) */
.p-perks {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding-top: 14px;
}

.p-perk {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.p-perk i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

.p-perk__t {
  font-weight: 950;
  margin-bottom: 2px;
}

.p-perk__d {
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

/* примечание */
.p-note {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 12px 14px;
}

.p-note i {
  margin-top: 2px;
  color: rgba(249, 115, 22, 0.95);
}

.page-title {
  font-weight: 900;
  font-size: 34px;
  margin: 0 0 18px;
}

.req-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}

/* left menu */
.req-nav {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.req-nav__link {
  display: block;
  padding: 14px 16px;
  font-weight: 700;
  color: #6b7280;
  background: #fff;
}

.req-nav__link:last-child {
}

.req-nav__link:hover {
  color: #111827;
  background: #f9fafb;
}

.req-nav__link.is-active {
  color: #111827;
  background: #fff;
  position: relative;
}

.req-nav__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

/* right "table" */
.req-table {
  background: #fff;

  overflow: hidden;
  box-shadow: var(--shadow);
}

.req-tr {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 12px 16px;
  align-items: center;
}

.req-tr:nth-child(even) {
  background: #f7f7f8; /* как на скрине */
}

.req-tr:last-of-type {
}

.req-td {
  font-size: 14px;
  color: #111827;
  line-height: 1.45;
}

.req-td--k {
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.req-link {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

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

/* responsive */
@media (max-width: 980px) {
  .req-layout {
    grid-template-columns: 1fr;
  }
  .req-tr {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .req-td--k {
    white-space: normal;
    color: #6b7280;
    text-transform: none;
  }
}

/* ===== ABOUT PAGE (под твой стиль requisites) ===== */

.about-block {
  padding: 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.about-title {
  margin: 0 0 10px;
  font-weight: 950;
  font-size: 18px;
  color: #111827;
}

.about-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
  font-size: 14px;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-subtitle {
  margin: 16px 0 10px;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.about-list {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  list-style: none;
}

.about-list li {
  margin: 0 0 10px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: -18px;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.about-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-card__d {
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
}

/* CTA низом (как аккуратная панель) */
.about-cta {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.about-cta__t {
  font-weight: 950;
  font-size: 16px;
  margin-bottom: 4px;
}

.about-cta__d {
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

.about-cta__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cta {
    grid-template-columns: 1fr;
  }
  .about-cta__right a {
    width: 100%;
  }
}

/* ===== Payment block ===== */
.pay-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pay-card {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.pay-card:hover {
  transform: translateY(-1px);
}

.pay-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.12);
}

.pay-ico i {
  color: var(--accent);
  font-size: 18px;
}

.pay-title {
  font-weight: 950;
  color: #111827;
  margin: 2px 0 6px;
}

.pay-text {
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
}

.pay-note {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.pay-note i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
}

.pay-note__t {
  font-weight: 950;
  margin-bottom: 4px;
  color: #111827;
}

.pay-note__d {
  color: rgba(17, 24, 39, 0.65);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TEAM ===== */
.team-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
}

.team-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f4f6;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-weight: 900;
  font-size: 15px;
  color: #111827;
}

.team-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* адаптив */
@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACTS BLOCK ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 24px;
}

.contacts-info {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.contact-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.1);
}

.contact-ico i {
  color: var(--accent);
  font-size: 18px;
}

.contact-title {
  font-weight: 900;
  font-size: 14px;
}

.contact-link {
  font-weight: 650;
  color: #111827;
}

.contact-text {
  margin: 0px;
  color: var(--muted);
  font-weight: 650;
}

.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Header phone popup ===== */
.topbar-contact {
  position: relative;
}

.topbar-pop {
  position: absolute;
  top: calc(100% + 12px); /* ниже телефона */
  right: 0;

  width: 270px;
  background: #fff;

  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px;
  z-index: 2000;

  opacity: 0;
  visibility: hidden;
  transform: translateX(25%) translateY(10px);
  transition: 200ms ease;
}

/* стрелочка */
/* стрелочка сверху по центру */
.topbar-pop::before {
  content: "";
  position: absolute;

  top: -6px; /* выносим над блоком */
  left: 50%; /* центр по ширине */
  transform: translateX(-50%) rotate(45deg);

  width: 12px;
  height: 12px;
  background: #fff;

  border-top: 1px solid rgba(17, 24, 39, 0.08);
  border-left: 1px solid rgba(17, 24, 39, 0.08);
}

.topbar-contact:hover .topbar-pop,
.topbar-contact:focus-within .topbar-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(25%);
}

/* содержимое */
.topbar-pop__phone a {
  font-weight: 950;
  font-size: 18px;
  color: #111827;
}

.topbar-pop__cta {
  margin: 12px 0 10px;
  height: 44px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
}

.topbar-pop__row {
  margin-top: 10px;
}

.topbar-pop__k {
  font-size: 12px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.55);
}

.topbar-pop__v {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* соцкнопки */
.topbar-pop__social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.soc-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.soc-btn--vk {
  background: #2787f5;
}
.soc-btn--tg {
  background: #2aabee;
}
.soc-btn--wa {
  background: #25d366;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  /* попап выравниваем по центру и ограничиваем ширину */
  .topbar-pop {
    right: 50%;
    left: auto;
    transform: translate(50%, 10px); /* центрируем */
    /* width: min(92vw, 360px); /* почти весь экран */
    padding: 14px 14px 12px;
  }

  /* в открытом состоянии */
  .topbar-contact:hover .topbar-pop,
  .topbar-contact:focus-within .topbar-pop,
  .topbar-contact.is-open .topbar-pop {
    /* transform: translate(50%, 0); */
  }

  /* стрелка по центру */
  .topbar-pop::before {
    left: 75%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }

  /* чуть крупнее и удобнее */
  .topbar-pop__phone a {
    font-size: 18px;
  }
  .topbar-pop__cta {
    height: 46px;
  }
  .soc-btn {
    width: 40px;
    height: 40px;
  }
}

/* контейнер карты */
.p-map {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: #f4f6f8;
}

/* сама карта */
.p-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* кнопка под картой */
.p-gallery .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #e2e5ea;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s ease;
}

.p-gallery .btn-light:hover {
  background: #f3f5f7;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .p-map iframe {
    height: 260px;
  }
}

/* Show more */
.is-hidden {
  display: none !important;
}

.btn-more {
  border: 0;
  cursor: pointer;
}

/* маленькая анимация */
.btn-more i {
  transition: transform 0.2s ease;
}
.btn-more.is-open i {
  transform: rotate(180deg);
}

/* ===== Steps: collapse + fade ===== */
.steps {
  --steps-collapsed: 220px; /* высота видимой части в свернутом виде */
  --steps-bg: #fff; /* фон карточки/блока (поменяй если не белый) */
}

.steps__wrap {
  position: relative;
  overflow: hidden;
  max-height: none;
  transition: max-height 0.45s ease;
}

.steps__wrap.is-collapsed {
  max-height: var(--steps-collapsed);
}

/* эффект затухания снизу (показывается только когда свернуто) */
.steps__wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.85) 55%,
    var(--steps-bg) 100%
  );
}

/* если фон не белый — делаем затухание корректно через переменную */
.steps__wrap.is-collapsed::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    color-mix(in srgb, var(--steps-bg) 70%, transparent) 55%,
    var(--steps-bg) 100%
  );
}

/* кнопка */
.steps__btn {
  margin-top: 10px;
  border: 0px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  background: var(--accent);
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: white;
  font: inherit;
}

.steps__btn i {
  transition: transform 0.3s ease;
}

.steps__btn.is-open i {
  transform: rotate(180deg);
}

/* Блок переключения цены */
.price-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.price-toggle__btn {
  flex: 1;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
}

.price-toggle__btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.price-toggle__btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.price-toggle__btn.active:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Блок переключения цены с 3 кнопками */
.price-toggle--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .price-toggle--3 {
    grid-template-columns: 1fr;
  }

  .price-toggle__btn {
    width: 100%;
  }
}

/* Детали акции */
.discount-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.discount-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discount-details i {
  font-size: 1.1rem;
  min-width: 20px;
}

/* Сетка дополнительных акций */
.promotions-grid {
  margin-top: 30px;
}

.promotion-card {
  background: #fff;
  padding: 15px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Заголовок акции с иконкой */
.promotion-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.promotion-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promotion-card h4 {
  font-size: 18px;
  font-weight: 950;
  margin: -2px;
  line-height: 1.4;
  color: #333;
}

.promotion-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .promotion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .promotion-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .promotion-card h4 {
    font-size: 1.15rem;
  }
}

/* Таймер акции - обновленный стиль */
.promotion-timer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.timer-item {
  text-align: center;
  min-width: 55px;
  background: #fb923c;
  padding: 8px 5px;
  margin: 0 3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timer-value {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Эффект при наведении */
.promotion-timer:hover .timer-item {
  transform: translateY(-3px);
}

/* Дата окончания акции в правом нижнем углу */
.promotion-card {
  position: relative;
  padding-bottom: 30px; /* место для даты */
}

.date-end {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280ab;
  padding: 4px 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-end::before {
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .promotion-card {
    padding-bottom: 50px;
  }

  .date-end {
    bottom: 12px;
    right: 12px;
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .date-end::before {
    font-size: 0.85rem;
  }
}

/* Анимация мигания при окончании */
@keyframes blink {
  50% {
    opacity: 0.7;
  }
}

.promotion-timer.ending {
  animation: blink 1s infinite;
  background: linear-gradient(135deg, #ff3d00 0%, #ff7a00 100%);
  border-color: #ff4d4d;
  box-shadow: 0 14px 28px rgba(255, 61, 0, 0.35);
}

.promotion-timer.ending .timer-item {
  background: rgba(255, 255, 255, 0.05);
}

/* Анимация для цифер */
@keyframes numberFlip {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(-180deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.timer-value {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  animation: numberFlip 0.5s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
  .promotion-timer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timer-item {
    min-width: 50px;
    flex: 1;
    margin: 0;
    padding: 6px 2px;
  }

  .timer-value {
    font-size: 1.5rem;
  }

  .timer-label {
    font-size: 0.65rem;
  }
}

/* Анимация для цифер при обновлении */
@keyframes digitChange {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.timer-value {
  animation: digitChange 0.3s ease;
}

/* ========================================
   Article Styles
   ======================================== */

.article-container {
  margin: 0 auto 64px;
  padding: 0 20px;
}

.article-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 700;
}

.article-intro {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary);
}

.article-intro p {
  margin: 0 0 12px;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 600;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

table th {
  padding: 12px 16px;
  text-align: left;
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: var(--dark);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:nth-child(even) {
  background: #f9f9f9;
}

.price-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.table-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* Grid 2 Columns */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.factors-card {
  background: white;
  padding: 24px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.factors-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 600;
}

.factors-card ul {
  padding-left: 20px;
  margin: 0;
}

.factors-card li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--muted);
}

/* Calculation Example */
.calculation-example {
  background: #fff8e6;
  padding: 32px;
  border-left: 4px solid var(--warning);
}

.calculation-info {
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 6px;
}

.calculation-info p {
  margin: 8px 0;
  color: var(--dark);
}

.calculation-table {
  margin-bottom: 20px;
}

.calculation-table th {
  background: var(--warning);
  color: #54472a;
}

.calculation-table td {
  font-size: 15px;
}

.total-row {
  background: #f5e9b8;
  font-weight: 700;
}

.total-row td {
  font-size: 16px;
  border-bottom: none;
}

.calculation-summary {
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  color: var(--dark);
}

/* Calculator Section */
.calculator-section {
  background: white;
  padding: 32px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculator-card {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
  font-size: 15px;
}

.form-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 83, 163, 0.1);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.radio-label:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + span::before {
  background: var(--primary);
  border-color: var(--primary);
}

.calculator-result {
  margin-top: 20px;
  padding: 20px;
  background: #e8f4ff;
  border-left: 4px solid var(--primary);
}

.result-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.result-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.calculator-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.calculator-note i {
  color: var(--success);
  margin-right: 6px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin: 64px 0;
}

.cta-card {
  padding: 48px;
  background: var(--accent);
  color: var(--text);
}

.cta-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: white;
  font-weight: 700;
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
  color: white;
}

.btn-cta-large {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 16px 40px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-cta-large i {
  margin-right: 10px;
}

.cta-note {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
  color: white;
}

/* Related Articles */
.related-articles {
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-article-card {
  display: block;
  background: #f8f9fa;
  padding: 24px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.related-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-article-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.related-article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: #ccc;
  margin-right: 4px;
}

.breadcrumbs__link {
  color: var(--primary);
  text-decoration: none;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.breadcrumbs__link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs__current {
  color: var(--dark);
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .article-container {
    padding: 0 15px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-section h2 {
    font-size: 20px;
  }

  .cta-card {
    padding: 32px 20px;
  }

  .cta-card h2 {
    font-size: 22px;
  }

  .cta-subtitle {
    font-size: 16px;
  }

  .btn-cta-large {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .calculator-section {
    padding: 24px 15px;
  }

  table {
    font-size: 14px;
  }

  table th,
  table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 22px;
  }

  .article-intro {
    padding: 16px;
  }

  .cta-card h2 {
    font-size: 20px;
  }

  .cta-card {
    padding: 24px 15px;
  }
}

/* ========================================
   FAQ Styles (Accessibility-Friendly)
   ======================================== */

.faq-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 600;
}

.faq-item {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Кнопка-вопрос */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  position: relative;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Иконка стрелки */
.faq-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition:
    transform 0.3s ease,
    background-image 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b53a3'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
}

/* Ответ */
.faq-answer {
  padding: 0 0 16px 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 12px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Анимация при открытии */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer.show {
  animation: fadeIn 0.25s ease;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .faq-question {
    font-size: 16px;
    padding: 12px 0;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* Advice Box Styles */
.advice-box {
  background: var(--bg);
  padding: 24px;
  border-left: 4px solid var(--primary);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 24px 0;
}

.advice-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.advice-content {
  flex: 1;
}

.advice-title {
  margin: 0 0 12px 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}

.advice-text {
  margin: 0 0 16px 0;
  color: var(--dark);
  line-height: 1.6;
  font-size: 15px;
}

.btn-advice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.btn-advice:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 83, 163, 0.2);
}

.btn-advice:active {
  transform: translateY(0);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .advice-box {
    flex-direction: column;
    text-align: center;
  }

  .advice-icon {
    margin: 0 auto 16px;
  }

  .advice-content {
    text-align: center;
  }

  .advice-text {
    font-size: 14px;
  }
}

/* Стили для секции "Что мы берем на себя" */

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.results-content {
  flex: 1;
  min-width: 300px;
}

.results-visual {
  flex: 1;
  min-width: 300px;
  height: 350px; /* Высота блока с фото */
  background: #e9ecef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Стили для списка */
.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px; /* Размер шрифта текста */
  line-height: 1.6;
}

.results-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.results-list li:last-child {
  margin-bottom: 0;
}

/* Стили для цифр (1., 2. и т.д.) */
.results-num {
  color: var(--accent); /* Оранжевый акцентный цвет */
  font-weight: 700;
  margin-right: 12px;
  font-size: 20px;
  line-height: 1.4;
  min-width: 25px; /* Чтобы цифры стояли ровно */
}

/* Стили для картинки внутри блока */
.results-visual img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стили для заглушки (иконки), пока нет фото */
.results-placeholder {
  text-align: center;
  color: #adb5bd;
}

.results-placeholder i {
  font-size: 60px;
  margin-bottom: 15px;
}

/* Адаптив для мобильных телефонов */
@media (max-width: 768px) {
  .results-grid {
    flex-direction: column;
    gap: 30px;
  }

  .results-visual {
    display: none;
    width: 100%;
    height: 250px; /* Чуть меньше высота на телефоне */
    order: -1; /* Если хотите, чтобы фото было НАД текстом на телефоне, раскомментируйте эту строку */
  }

  .results-list {
    font-size: 16px;
  }
}

/* ===== SEO INFO SECTION ===== */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.seo-card {
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.seo-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.seo-card p {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.seo-list {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  list-style: none;
}

.seo-list li {
  margin: 0 0 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.seo-list li::before {
  content: "•";
  position: absolute;
  left: -14px;
  color: var(--accent);
  font-weight: bold;
}

.seo-list li:last-child {
  margin-bottom: 0;
}

.seo-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.seo-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

.seo-card--faq .faq-item {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eee;
}

.seo-card--faq .faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.seo-card--faq .faq-item strong {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.seo-card--faq .faq-item p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.seo-card--faq .seo-link {
  display: block;
  margin-top: 10px;
}

/* Адаптив для SEO-секции */
@media (max-width: 768px) {
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seo-card {
    padding: 18px;
  }

  .seo-card h3 {
    font-size: 17px;
  }

  .seo-card p {
    font-size: 14px;
  }
}

/* SEO Content Styles */
.seo-content {
  margin: 0 auto;
}

.seo-content h3 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.seo-content h3:first-child {
  margin-top: 0;
}

.seo-list {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  list-style: none;
}

.seo-list li {
  margin: 0 0 10px;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

.seo-list li::before {
  content: "✓";
  position: absolute;
  left: -18px;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.seo-list li:last-child {
  margin-bottom: 0;
}

.seo-list-numbered {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  list-style: decimal;
}

.seo-list-numbered li {
  margin: 0 0 8px;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.seo-list-numbered li:last-child {
  margin-bottom: 0;
}
