/* ============================================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ============================================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable; /* Убирает горизонтальный сдвиг при появлении скролла */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    font-family: inherit;
    font-size: 14px;
}

.btn--primary {
    background-color: #d4af37;
    color: #fff;
}
.btn--primary:hover {
    background-color: #b5952f;
}

.btn--outline {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
}
.btn--outline:hover {
    background: #d4af37;
    color: #fff;
}

.btn--full {
    width: 100%;
}

.text-center { text-align: center; }
.text-muted { color: #999; font-weight: normal; }
.mt-20 { margin-top: 20px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background-color: #f8f8f8;
    font-size: 13px;
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar__left, .top-bar__right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
/* --- Соцсети в шапке --- */
.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8892a3; /* Серый по умолчанию */
  transition: color 0.3s, transform 0.2s;
}

.socials a:hover {
  color: #d4af37; /* Золотой при наведении */
  transform: translateY(-2px);
}

/* --- Соцсети в футере --- */
.footer__socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #2b3856; /* Тёмно-синий круг */
  color: #fff;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.2s;
}

.footer__socials a:hover {
  background-color: #d4af37; /* Золотой фон при наведении */
  transform: translateY(-3px);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.nav__list {
    display: flex;
    gap: 25px;
}
.nav__list a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav__list a:hover {
    color: #d4af37;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 110;
}
.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/* ============================================================
   HERO (Главный баннер)
   ============================================================ */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('img/01.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}
.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}
.hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.btn--hero {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
}
.btn--hero:hover {
    background: #fff;
    color: #333;
}
.hero__action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero__action-note {
    font-size: 10px;
    margin-top: 5px;
    color: #ccc;
}

/* ============================================================
   SERVICES SLIDER (Бесконечный)
   ============================================================ */
.services {
    padding: 60px 0;
    background: #fff;
}

.slider {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.slider__viewport {
    overflow: hidden;
    border-radius: 8px;
}

.slider__track {
    display: flex;
    gap: 30px;
    will-change: transform;
    transition: transform 0.5s ease;
    cursor: grab;
    align-items: stretch;
}
.slider__track.dragging {
    transition: none;
    cursor: grabbing;
}

.slider__track > .service-card {
    flex: 0 0 calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.service-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}
.service-card__link:hover {
    transform: translateY(-3px);
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    background-color: #eef2fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a2332;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    line-height: 1.2;
}

.service-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card__text {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   ABOUT (О компании)
   ============================================================ */
.about {
    padding: 80px 0;
    background: #fafafa;
    overflow: hidden;
}
.about__inner {
    display: flex;
    gap: 50px;
    align-items: center;
}
.about__images {
    position: relative;
    flex: 1;
    min-height: 500px;
}
.about__img-main {
    width: 80%;
    border-radius: 8px;
    object-fit: cover;
}
.about__img-secondary {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 60%;
    border-radius: 8px;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about__badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #d4af37;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}
.about__badge-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}
.about__badge-text {
    font-size: 14px;
    text-transform: uppercase;
}
.about__content {
    flex: 1;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}
.check-list {
    margin: 20px 0;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 15px;
}
.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* ============================================================
   TEAM (Специалисты)
   ============================================================ */
.team {
    padding: 80px 0;
}
.section-subtitle {
    margin-bottom: 40px;
    color: #666;
}
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.team-card {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding-bottom: 20px;
}
.team-card__img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    margin-bottom: 15px;
}
.team-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.team-card:hover .team-card__img-wrapper img {
    transform: scale(1.05);
}
.team-card__name {
    font-size: 18px;
    margin-bottom: 5px;
}
.team-card__phone {
    color: #d4af37;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   CONTACT FORM SECTION (Главная)
   ============================================================ */
.contact-section {
    padding: 80px 0;
    background: #fafafa;
}
.contact-section__inner {
    display: flex;
    gap: 50px;
    align-items: center;
}
.contact-section__text {
    flex: 1;
}
.contact-section__text p {
    margin-bottom: 15px;
    font-size: 16px;
}
.contact-form-wrapper {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.contact-form-wrapper__title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d4af37;
}
.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

/* ============================================================
   FOOTER (Подвал)
   ============================================================ */
.footer {
    background-color: #1a2332;
    color: #a0aabf;
    padding: 60px 0 20px;
    font-size: 14px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer__col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}
.footer__col p {
    margin-bottom: 10px;
}
.footer__logo {
    margin-bottom: 15px;
}
.footer__links li {
    margin-bottom: 10px;
}
.footer__links a {
    transition: color 0.3s;
}
.footer__links a:hover {
    color: #fff;
}
.footer-form {
  display: flex;
  flex-direction: column; /* Выстраиваем в колонку */
  gap: 12px;              /* Отступы между элементами */
  margin-top: 15px;
}

.footer-form input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #33445e; /* Темная рамка под стиль футера */
  border-radius: 4px;
  background-color: #1a2332; /* Темный фон, как у футера */
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s;
}

.footer-form input[type="tel"]::placeholder {
  color: #8892a3;
}

.footer-form input[type="tel"]:focus {
  outline: none;
  border-color: #d4af37; /* Золотая рамка при фокусе */
}

/* Кнопка на всю ширину */
.footer-form .btn--full {
  padding: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Чекбокс в футере (адаптация под тёмный фон) --- */
.checkbox-agree--footer {
  color: #a0aabf; /* Светло-серый текст */
  font-size: 12px;
  margin: 5px 0;
}

.checkbox-agree--footer .checkbox-agree__box {
  border-color: #556075; /* Светлее рамка для темного фона */
  background-color: transparent;
}

.checkbox-agree--footer input[type="checkbox"]:checked + .checkbox-agree__box {
  background-color: #d4af37;
  border-color: #d4af37;
}

.checkbox-agree--footer .checkbox-agree__text a {
  color: #d4af37;
}
.footer-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    min-width: 0;
}
.footer__copyright {
    margin-top: 40px;
    font-size: 12px;
    color: #666;
}

/* ============================================================
   СТРАНИЦА КОНТЕНТА (2 колонки: сайдбар + статья)
   ============================================================ */
.page {
    padding: 40px 0 80px;
    background: #fafafa;
    /* Фикс для избежания прыжков футера */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}
.page__inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

/* Плавное появление контента при переходах */
#app-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}
#app-content.loaded {
    opacity: 1;
}

/* --- ЛЕВАЯ КОЛОНКА (Сайдбар) --- */
.sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Три цветных промо-блока */
.sidebar__promo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.promo-box {
    background: #2b3856;
    color: #fff;
    padding: 25px 20px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.promo-box__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.promo-box .btn {
    width: 100%;
    padding: 10px;
}
.btn--phone {
    font-size: 13px;
    padding: 10px;
    letter-spacing: 0.5px;
}

/* Меню — простой список ссылок */
.side-menu {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}
.side-menu__list {
    display: flex;
    flex-direction: column;
}
.side-menu__list li {
    border-bottom: 1px solid #e5e5e5;
}
.side-menu__list li:last-child {
    border-bottom: none;
}
.side-menu__list a {
    display: block;
    padding: 13px 40px 13px 18px;
    font-size: 14px;
    color: #333;
    position: relative;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.side-menu__list a::after {
    content: '›';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #bbb;
    transition: color 0.2s, transform 0.2s;
}
.side-menu__list a:hover {
    background: #fafafa;
    color: #d4af37;
    padding-left: 22px;
}
.side-menu__list a:hover::after {
    color: #d4af37;
    transform: translateY(-50%) translateX(2px);
}

/* --- ПРАВАЯ КОЛОНКА (Контент) --- */
.content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}
.content__title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #1a2332;
    line-height: 1.3;
}
.content__subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1a2332;
    line-height: 1.35;
}
.content p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}
.content a {
    color: #d4af37;
    text-decoration: underline;
}
.content a:hover {
    color: #b5952f;
}
.content em {
    font-style: italic;
    color: #555;
}

/* ============================================================
   ФОРМА ОЦЕНКИ (otsenka.html и подобные)
   ============================================================ */
.form_ocenka {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Общий стиль для fieldset (убираем стандартные рамки) */
.form_ocenka fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

/* --- Сетка для полей адреса --- */
.vnesh {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
}

/* Распределение колонок для полей адреса */
.vnesh input[name="zayavka_gorod"] { grid-column: span 4; }
.vnesh input[name="zayavka_ulitca"] { grid-column: span 8; }
.vnesh input[name="zayavka_dom"] { grid-column: span 2; }
.vnesh input[name="zayavka_etazh"] { grid-column: span 2; }
.vnesh input[name="zayavka_kolkomnat"] { grid-column: span 4; }
.vnesh input[name="zayavka_obploshad"] { grid-column: span 4; }

/* --- Общие стили для инпутов и селектов --- */
.form_ocenka input[type="text"],
.form_ocenka input[type="number"],
.form_ocenka input[type="email"],
.form_ocenka input[type="tel"],
.form_ocenka select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form_ocenka input:focus,
.form_ocenka select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form_ocenka input::placeholder {
    color: #aaa;
}

/* --- Блок выбора объекта (select) --- */
.choose_object {
    margin-bottom: 15px;
}
.sel_service {
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* --- Дополнительные поля (Доля, Комната, Квартира) --- */
.box {
    display: grid;
    gap: 15px;
}
.box.kvartira,
.box.komnata {
    grid-template-columns: 1fr;
}
.box.dolya {
    grid-template-columns: 1fr 1fr;
}

/* --- Радиокнопки (стилизуем как пилюли) --- */
.lbl_mg {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #444;
}
.lbl_mg > span {
    width: 100%;
    font-weight: 500;
    margin-bottom: 5px;
    color: #1a2332;
}

/* Скрываем нативные радиокнопки */
.lbl_mg input[type="radio"] {
    display: none;
}

/* Стилизуем лейблы радиокнопок */
.txt_lbl {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
}

.txt_lbl:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.lbl_mg input[type="radio"]:checked + .txt_lbl {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* --- Контактные данные --- */
.cont {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* --- Предупреждение --- */
.warn_txt {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

/* --- Кнопка отправки --- */
.send_btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    background-color: #d4af37;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
}
.send_btn:hover {
    background-color: #b5952f;
}
.send_btn:active {
    transform: scale(0.99);
}
.send_btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================================ */

/* Планшеты (<= 992px) */
@media (max-width: 992px) {
    .hero__title { font-size: 36px; }
    .about__inner,
    .contact-section__inner {
        flex-direction: column;
    }
    .about__images {
        min-height: 400px;
        width: 100%;
    }
    .footer__inner { grid-template-columns: 1fr 1fr; }

    /* Мобильное меню */
    .burger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 20;
    }
    .nav.active { display: block; }
    .nav__list {
        flex-direction: column;
        gap: 15px;
    }
    .header .btn--outline { display: none; }

    /* Анимация бургера в крестик */
    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Слайдер: 2 карточки */
    .slider__track > .service-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    /* Форма оценки */
    .form_ocenka {
        padding: 20px;
    }
    .vnesh {
        grid-template-columns: 1fr 1fr;
    }
    .vnesh input { grid-column: span 2 !important; }
    .vnesh input[name="zayavka_dom"],
    .vnesh input[name="zayavka_etazh"] { grid-column: span 1 !important; }
    .cont {
        grid-template-columns: 1fr;
    }
    .box.dolya {
        grid-template-columns: 1fr;
    }
    .lbl_mg {
        flex-direction: column;
        align-items: flex-start;
    }
    .txt_lbl {
        width: 100%;
        text-align: center;
    }

    /* Внутренняя страница */
    .page__inner {
        flex-direction: column;
        gap: 30px;
    }
    .sidebar {
        flex: 1;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .sidebar__promo {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .promo-box {
        flex: 1 1 calc(33.333% - 10px);
    }
    .side-menu {
        flex: 1 1 100%;
    }
}

/* Мобильные телефоны (<= 768px) */
@media (max-width: 768px) {
    .top-bar__inner { flex-direction: column; text-align: center; }
    .hero { padding: 80px 0; }
    .hero__title { font-size: 28px; }
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .btn--hero {
        width: 100%;
        max-width: 300px;
    }

    .about__images { min-height: 300px; }
    .about__img-main { width: 100%; }
    .about__img-secondary { display: none; }

    .footer__inner { grid-template-columns: 1fr; }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .team__grid { grid-template-columns: 1fr 1fr; }

    /* Внутренняя страница */
    .promo-box {
        flex: 1 1 100%;
    }
    .content {
        padding: 20px;
    }
    .content__title {
        font-size: 22px;
    }
    .content__subtitle {
        font-size: 18px;
    }
}

/* Очень узкие экраны (<= 576px) */
@media (max-width: 576px) {
    .slider__track > .service-card {
        flex: 0 0 100%;
    }
    .service-card__title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .team__grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
}

/* ============================================================
   ТАБЛИЦА ДОЛЕЙ (doli_v_kvartirah.html)
   ============================================================ */
   .rwd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Чтобы скруглить углы */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rwd-table th,
.rwd-table td {
    padding: 15px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.rwd-table th {
    background-color: #1a2332;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Зебра для строк */
.rwd-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.rwd-table tbody tr:hover {
    background-color: #f5f0e1; /* Легкий золотистый оттенок при наведении */
}

/* Стилизация ячеек */
.rwd-table td p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.rwd-table td p:last-child {
    margin-bottom: 0;
}

/* Выделение цены доли */
.rwd-table td.price-cell {
    font-weight: 700;
    color: #d4af37;
    white-space: nowrap;
}

/* Стоимость всей квартиры */
.rwd-table td .total-price {
    font-weight: 700;
    color: #1a2332;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* Ссылки внутри таблицы */
.rwd-table td a {
    color: #d4af37;
    text-decoration: underline;
    font-weight: 600;
}
.rwd-table td a:hover {
    color: #b5952f;
}

/* Ограничение длины описания (чтобы таблица не вылезала за края) */
.rwd-table td.desc-cell {
    min-width: 300px;
    max-width: 450px;
    word-break: break-word;
}

/* --- АДАПТИВ ДЛЯ МОБИЛЬНЫХ (Карточный вид) --- */
@media (max-width: 992px) {
    .rwd-table, 
    .rwd-table thead, 
    .rwd-table tbody, 
    .rwd-table th, 
    .rwd-table td, 
    .rwd-table tr { 
        display: block; 
    }
    
    .rwd-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .rwd-table tr { 
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    
    .rwd-table td { 
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        /* padding-left: 45%; Оставляем место для заголовка */
        text-align: right;
        min-height: 40px;
    }
    
    .rwd-table td:last-child {
        border-bottom: 0;
    }
    
    /* Вставляем название колонки слева */
    .rwd-table td::before { 
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 40%; 
        padding-right: 10px; 
        white-space: normal; 
        text-align: left;
        font-weight: 600;
        color: #888;
        font-size: 13px;
        text-transform: uppercase;
    }
    
    /* Сбрасываем ограничения ширины для мобильных */
    .rwd-table td.desc-cell {
        min-width: 0;
        max-width: none;
        padding-top: 15px;
    }
    
    /* В карточке описание лучше выровнять по левому краю */
    .rwd-table td.desc-cell {
        text-align: left;
    }
    .rwd-table td.desc-cell::before {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 8px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
}

/* ============================================================
   ПЛАШКА УВЕДОМЛЕНИЯ
   ============================================================ */
   .notification-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a2332; /* Темно-синий цвет в стиле футера */
    color: #fff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Класс для показа плашки */
.notification-banner.show {
    transform: translateY(0);
}

.notification-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-banner__icon {
    color: #d4af37; /* Золотой акцент */
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notification-banner__text {
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.notification-banner__text strong {
    color: #d4af37;
}

.notification-banner__close {
    background: transparent;
    border: none;
    color: #a0aabf;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-banner__close:hover {
    color: #fff;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .notification-banner__content {
        padding: 12px 15px;
        gap: 10px;
    }
    .notification-banner__text {
        font-size: 12px;
    }
    .notification-banner__icon svg,
    .notification-banner__close svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================
   БАННЕР COOKIE
   ============================================================ */
   .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998; /* Чуть ниже плашки восстановления, если они обе появятся */
    transform: translateY(100%);
    transition: transform 0.4s ease;
    padding: 20px 0;
    border-top: 3px solid #d4af37;
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-banner__text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.cookie-banner__text a {
    color: #d4af37;
    text-decoration: underline;
}
.cookie-banner__btn {
    flex-shrink: 0;
    padding: 10px 30px;
    white-space: nowrap;
}

/* ============================================================
   ЧЕКБОКС СОГЛАСИЯ (в формах)
   ============================================================ */
.checkbox-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    user-select: none;
}

/* Скрываем нативный чекбокс */
.checkbox-agree input[type="checkbox"] {
    display: none;
}

/* Рисуем свой чекбокс */
.checkbox-agree__box {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

/* Состояние "выбрано" */
.checkbox-agree input[type="checkbox"]:checked + .checkbox-agree__box {
    background-color: #d4af37;
    border-color: #d4af37;
}

/* Галочка */
.checkbox-agree input[type="checkbox"]:checked + .checkbox-agree__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-agree__text a {
    color: #d4af37;
    text-decoration: underline;
}

/* Адаптив для баннера */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner__btn {
        width: 100%;
    }
}