/* ===== Дополнения к исходному дизайну (bescontaktno.ru) ===== */
ol, ol li { list-style: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
a:focus-visible, [role="button"]:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #3C6DF0; outline-offset: 2px; }

.btn-lg { display: inline-block; padding: 15px 30px; cursor: pointer; transition: background .2s, color .2s; }
.btn-main:hover { background: #4f7bfa; }
.btn-ghost { background: #fff; color: #3C6DF0; }
.btn-ghost:hover { background: #eef3ff; }

/* --- шапка --- */
.header__list { flex-wrap: wrap; gap: 8px 28px; }
.header__item-link { font-size: 16px; transition: color .2s; }
.header__item-link:hover { color: #3C6DF0; }
.header__item-link--active { color: #3C6DF0; font-weight: 600; }
.header__logo-name { font-size: 24px; font-weight: 800; }

/* --- главная: первый экран --- */
.home__subtitle { margin-bottom: 32px; }
.home__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- услуги --- */
.services__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.services__card { display: block; flex: none; text-align: left; transition: transform .2s; }
.services__card:hover { transform: translateY(-3px); }
.services__card-img { width: 100%; max-width: 210px; height: auto; aspect-ratio: 1 / 1; margin: 0 0 16px; }
.services__card-img::after { border-radius: 999px 0 0 999px; }
.services__card-image { max-width: 76%; max-height: 76%; width: auto; height: auto; }
.services__card-text { max-width: none; text-align: left; }
.services__card-text-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
.services__card-sub { font-size: 14px; line-height: 1.4; opacity: .75; }
.advantages__step-num { display: block; }
.advantages__step-text { margin: 0; }

/* --- калькулятор --- */
.price-calc__item-price { opacity: .6; white-space: nowrap; }
.price-calc__dropdown-item:hover { background: #f1f5ff; }
.price-calc__dropdown-item { font-size: 14px; line-height: 1.4; }
.price-calc__dropdown-active { cursor: pointer; }
.price-calc__note { font-size: 13px; line-height: 1.5; opacity: .75; margin: 0 0 18px; }
.price-calc-warning.is-visible { display: block; margin-top: 10px; }
.page__price--inner { margin-bottom: 60px; }
.page__price--inner .price__inner { padding: 20px 0 80px; }

/* --- внутренние страницы --- */
.navigation { padding: 18px 0; margin: 0 0 24px; }
.navigation__item-link { margin-right: 6px; }
.page-head { padding: 10px 0 50px; }
.page-head__inner { display: flex; gap: 48px; align-items: center; justify-content: space-between; }
.page-head__text { flex: 1 1 auto; max-width: 700px; }
.page-title { font-size: 40px; font-weight: 800; line-height: 1.15; margin: 0 0 20px; text-align: left; color: #2C2C2C; }
.page-lead { font-size: 20px; line-height: 1.55; margin: 0 0 28px; max-width: 700px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-head__img { flex: 0 0 300px; max-width: 300px; border-radius: 18px; overflow: hidden; background: #eef3ff; box-shadow: 0 12px 40px rgba(60, 109, 240, .2); }
.page-head__img img { width: 100%; height: auto; display: block; }
.page-head__photo { aspect-ratio: 4 / 5; object-fit: cover; }
.page-head__product { width: auto !important; max-width: 100%; max-height: 280px; margin: 0 auto; padding: 24px; }

.section { margin: 0 0 80px; }
.section__title, .text h2 { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0 0 24px; text-align: left; color: #2C2C2C; }
.section--center .section__title, .section--center.text h2, .section--center h2 { text-align: center; font-size: 40px; }
.section__lead { font-size: 18px; line-height: 1.6; margin: -10px 0 24px; }
.section__more { margin: 28px 0 0; text-align: center; }
.text p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; max-width: 900px; }
.text h3:not([class]) { font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.text a:not([class]) { color: #3C6DF0; text-decoration: underline; }
.text .questions__accordion-desc { margin: 0; max-width: none; font-size: 17px; }
.text .questions__accordion-desc a { color: #3C6DF0; text-decoration: underline; }
.list { margin: 0 0 20px; }
.list li { position: relative; padding: 0 0 0 28px; margin: 0 0 12px; font-size: 18px; line-height: 1.6; max-width: 900px; }
.list li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: #6790FF; }
.text p.note, .note { font-size: 14px; line-height: 1.55; opacity: .75; margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.card { display: block; padding: 24px; border-radius: 8px; border: 1px solid rgba(5, 147, 224, .3); background: rgba(87, 174, 240, .1); transition: transform .2s, background .2s; }
.card--link:hover { background: rgba(87, 174, 240, .2); transform: translateY(-2px); }
.card__title { font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.text .card__text, .card__text { font-size: 16px; line-height: 1.55; margin: 0; }
.card__more { display: inline-block; margin-top: 14px; color: #3C6DF0; font-weight: 600; font-size: 15px; }
.text a.card, .text a.blog-card { text-decoration: none; color: inherit; }
.contacts .card__text { font-size: 20px; }
.contacts .card__text a { color: #3C6DF0; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin: 24px 0; }
.steps__item { display: flex; gap: 16px; align-items: flex-start; }
.steps__num { font-size: 44px; font-weight: 700; line-height: 1; color: #fff; -webkit-text-stroke: 1px #6790FF; flex: none; }
.steps__title { font-size: 19px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.text .steps__item p { font-size: 16px; line-height: 1.55; margin: 0; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 520px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid #e3e9f7; text-align: left; vertical-align: top; }
.table thead th { background: #eef3ff; font-weight: 700; color: #2C2C2C; }
.table tbody th { font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 24px 0; }
.gallery__item { margin: 0; }
.gallery__link { display: block; border-radius: 12px; overflow: hidden; background: #eef3ff; aspect-ratio: 3 / 4; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__item figcaption { font-size: 14px; line-height: 1.4; margin-top: 8px; opacity: .8; }
.gallery--all { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lb { position: fixed; inset: 0; background: rgba(10, 16, 30, .9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb__close { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 40px; line-height: 1; background: none; cursor: pointer; }

.cta-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 36px 40px; border-radius: 16px; background: linear-gradient(135deg, #6790FF, #3C6DF0); color: #fff; }
.cta-band__title { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: #fff; text-align: left; line-height: 1.2; }
.cta-band p { font-size: 17px; line-height: 1.5; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-main { background: #fff; color: #3C6DF0; border-color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-main:hover { background: #eef3ff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .15); }

.related { display: flex; flex-wrap: wrap; gap: 12px; }
.text .related__link, .related__link { padding: 10px 18px; border-radius: 30px; border: 1px solid rgba(5, 147, 224, .4); background: rgba(87, 174, 240, .1); font-size: 16px; color: #2C2C2C; text-decoration: none; transition: background .2s; }
.related__link:hover { background: rgba(87, 174, 240, .22); }

.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid rgba(5, 147, 224, .3); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 10px 30px rgba(60, 109, 240, .15); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.blog-card__body { padding: 20px; }
.blog-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; text-align: left; }
.blog-card__body p { font-size: 15px; line-height: 1.55; margin: 0; }
.article .text > p, .article .list li { font-size: 18px; }
.article__date { opacity: .6; font-size: 14px; margin: 0 0 28px !important; }
.article .page-title { max-width: 900px; }
.faq-section .questions__content { max-width: 1000px; margin: 0 auto; }

/* --- форма и подвал --- */
.footer-form__hint { color: #fff; opacity: .9; margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.footer-form__error { color: #ffc2c2; font-size: 13px; text-align: left; }
.footer-form__error:empty { display: none; }
.footer-form__inp.is-invalid, .footer-form__textarea.is-invalid { border-color: #ff7a7a; }
.footer-form__consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; color: #fff; font-size: 13px; line-height: 1.45; cursor: pointer; }
.footer-form__consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.footer-form__consent a { text-decoration: underline; color: #fff; }
.footer-form__button-submit { display: block !important; width: 100%; padding: 15px 20px; }
.footer-form__button-submit[disabled] { opacity: .6; cursor: default; }
.footer-form__status { color: #fff; font-weight: 600; font-size: 15px; line-height: 1.45; margin-top: 4px; }
.footer-form__status.is-error { color: #ffc2c2; }
.footer-form__status a { text-decoration: underline; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 0 0 30px; padding: 0 0 26px; border-bottom: 1px solid #ffffff7c; }
.footer__nav a { color: #fff; font-size: 15px; opacity: .9; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; }
.footer__copy { color: #fff; opacity: .8; font-size: 13px; line-height: 1.55; margin-top: 18px; text-align: center; }
.footer__copy a { text-decoration: underline; }
.footer__link:hover { text-decoration: underline; }

/* --- адаптив --- */
@media (max-width: 1220px) {
  .services__cards { grid-template-columns: repeat(3, 1fr); }
  .services__card { display: block; }
  .services__card-text { text-align: left; font-size: 18px; }
  .services__card-img { margin: 0 0 14px; }
}
@media (max-width: 900px) {
  .page-head__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .page-head__img { flex: none; max-width: 280px; }
  .footer__left { flex-wrap: wrap; gap: 14px 28px; }
}
@media (max-width: 768px) {
  .services__cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .services__card-text-name { font-size: 17px; }
  .services__card-text { font-size: 16px; }
  .services__card-sub { font-size: 13px; }
  .page-title { font-size: 30px; }
  .page-lead { font-size: 17px; }
  .section { margin-bottom: 50px; }
  .section__title, .text h2 { font-size: 26px; }
  .section--center .section__title, .section--center h2 { font-size: 28px; }
  .text p, .list li { font-size: 16px; }
  .cta-band { padding: 26px 22px; }
  .cta-band__title { font-size: 23px; }
  .table { font-size: 14px; }
  .table th, .table td { padding: 10px; }
  .btn-lg { padding: 13px 22px; }
  .steps__num { font-size: 36px; }
  .navigation { padding: 10px 0; }
  .navigation__list { flex-wrap: wrap; }
  .home__actions .btn-lg { flex: 1 1 100%; }
  .page-head__actions .btn-lg { flex: 1 1 100%; text-align: center; }
}

.section--center .section__lead { text-align: center; }
