/* ========== База ========== */
:root {
    --color-primary: #5581b8;
    --color-primary-dark: #446a99;
    --color-text: #333;
    --color-bg: #fff;
    --color-light: #f5f5f5;
    --container: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6, p, span, ul, li, .btn {
    font-family: Roboto, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Шапка ========== */
.site-header {
    /* Полупрозрачный белый фон */
    background: rgba(255, 255, 255, 0.85); 
    /* Магия: размываем то, что находится позади шапки */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 80px;
    flex-wrap: wrap;
}



/* ========== Логотип ========== */
.logo-link {
    display: block;
    width: 220px; /* Увеличили ширину */
    height: 70px; /* Увеличили высоту */
    background-image: url('/templates/tpl_cowork/images/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    transition: opacity 0.2s;
}

/* Шапку тоже сделаем чуть выше, чтобы логотип дышал */
.header-inner {
    min-height: 100px; /* Было 80px */
}

@media (max-width: 767px) {
    .logo-link {
        width: 160px;
        height: 50px;
    }
    .header-inner {
        min-height: 70px;
    }
}

.header-menu ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.header-menu a:hover { color: var(--color-primary); }

/* Контакты и кнопки в шапке (из HTML-модуля) */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-phones { display: flex; flex-direction: column; line-height: 1.3; }

.header-phone {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-pay {
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-pay:hover { background: var(--color-primary-dark); color: #fff; }

.header-messenger {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f4f7;
    transition: background 0.2s;
}
.header-messenger:hover { background: #e1e5ea; }

/* ========== Основной контент ========== */
.site-main { min-height: 60vh; }

/* ========== Футер ========== */
/* ========== Футер ========== */
.site-footer {
    /* Графитовый градиент, о котором договаривались */
    background: linear-gradient(135deg, #3d434c 0%, #2a2f36 100%);
    color: #fff;
    padding: 4rem 0 1.5rem;
}

.site-footer a { 
    color: #ccc; 
    text-decoration: none; 
    transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }

.site-footer h3 {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    color: #fff;
    font-weight: 700;
    position: relative;
}

/* Аккуратная полоска под заголовками в футере */
.site-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #5581b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-list li { margin-bottom: 0.7rem; }

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bbb;
}
.footer-address p { margin: 0 0 1rem; }

.footer-messengers {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-messenger {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-messenger:hover { 
    opacity: 0.8; 
    transform: translateY(-2px);
}
.footer-messenger svg { width: 22px; height: 22px; }
.footer-messenger--tg { background: #29A9EB; }
.footer-messenger--max { background: #3a3a3c; }

.footer-requisites {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbb;
}

.footer-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

/* Нижняя полоса */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}




/* ========== Адаптив ========== */
@media (max-width: 991px) {
    .header-inner { min-height: 64px; }
    .header-phones { display: none; }
    .btn-pay { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .header-menu ul { flex-wrap: wrap; gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}


.logo-link { display: inline-block; }
.logo-img { max-height: 50px; width: auto; display: block; }

/* ========== Футер ========== */
.site-footer {
    /* Сделаем графит чуть светлее и с легким синим подтоном, чтобы он перекликался с кнопками */
    background: linear-gradient(135deg, #353b45 0%, #23272e 100%);
    color: #fff;
    padding: 4rem 0 1.5rem;
}

.site-footer a { 
    color: #e1e5ea; /* Светлее для контраста */
    text-decoration: none; 
    transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }

.site-footer h3 {
    font-size: 1.2rem; /* Увеличили заголовки */
    margin: 0 0 1.5rem;
    color: #fff;
    font-weight: 700;
    position: relative;
}

.site-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px; /* Полоска чуть длиннее */
    height: 3px; /* И толще */
    background: #5581b8;
    border-radius: 2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ВЫРАВНИВАЕМ ШРИФТЫ */
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem; /* Выровняли размер */
    line-height: 1.6;
}
.footer-list li { margin-bottom: 0.8rem; }

.footer-address {
    font-style: normal;
    font-size: 1rem; /* Выровняли размер */
    line-height: 1.6;
    color: #e1e5ea;
}
.footer-address p { margin: 0 0 1rem; }

.footer-messengers {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-messenger {
    display: inline-flex;
    width: 44px; /* Увеличили иконки */
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-messenger:hover { 
    opacity: 0.9; 
    transform: translateY(-3px);
}
.footer-messenger svg { width: 24px; height: 24px; }
.footer-messenger--tg { background: #29A9EB; }
.footer-messenger--max { background: #3a3a3c; }

.footer-requisites {
    font-size: 1rem; /* Выровняли размер */
    line-height: 1.6;
    color: #e1e5ea;
}

.footer-note {
    font-size: 0.9rem;
    color: #999; /* Сделали чуть светлее */
    margin-top: 1rem;
}

/* Нижняя полоса */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #bbb;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}


/* ========== Герой ========== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-image: url('/images/fon2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 30, 45, 0.75) 0%, rgba(20, 30, 45, 0.35) 60%, rgba(20, 30, 45, 0.1) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content {
    max-width: 640px;
}

.hero-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cfe0f5;
    margin: 0 0 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.15rem;
    color: #e6ecf5;
    margin: 0 0 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #5581b8;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}
.btn-primary:hover { background: #446a99; color: #fff; }

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #fff;
    transition: all 0.2s;
    display: inline-block;
}
.btn-secondary:hover { background: #fff; color: #1a1d22; }

@media (max-width: 767px) {
    .hero { min-height: 520px; }
    .hero-title { font-size: 1.75rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; text-align: center; }
}





/* ========== Секции лендинга: общее ========== */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: 0 0 2.5rem;
    color: #1a1d22;
    font-weight: 700;
}

section { padding: 4rem 0; }
section .container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ========== Возможности ========== */
.features { background: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 30, 45, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef7;
    border-radius: 14px;
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #1a1d22;
}

.feature-card p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.55;
}

@media (max-width: 991px) {
    .features-grid { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }
}




/* ========== Иконки возможностей (data URI) ========== */
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8eef7;
    border-radius: 14px;
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-icon--meetings {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.feature-icon--work {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

.feature-icon--growth {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E");
}



/* ========== Тарифы ОПЕН СПЕЙС ========== */
.tariffs {
    background: #f7f9fc;
    --accent: #a52b80; /* запасное значение, если не задано inline */
}

.tariffs .section-title { color: var(--accent); }

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tariff-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 16px rgba(20, 30, 45, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 4px solid var(--accent);
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 30, 45, 0.1);
}

.tariff-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--accent);
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tariff-image {
    height: 160px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1rem;
    background-color: #e8eef7;
}

.tariff-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.tariff-desc,
.tariff-list {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.tariff-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tariff-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.tariff-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.tariff-price {
    font-size: 1rem;
    color: #555;
    margin: auto 0 1rem;
}

.tariff-price span {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1d22;
}

/* Кнопка внутри тарифов — цвет акцента */
.tariffs .btn-primary {
    background: var(--accent);
    width: 100%;
    text-align: center;
}
.tariffs .btn-primary:hover {
    background: var(--accent);
    filter: brightness(0.9);
    color: #fff;
}

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

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



/* ========== Смарт-офисы ========== */
.smart {
    background: #fff;
    --accent: #F9C246;
}

.smart .section-title { color: #1a1d22; }

/* Вводный блок: фото + стрелки */
.smart-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.smart-intro-image {
    height: 100%;
    min-height: 420px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f2f4f7;
}

.smart-intro-list-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Список со стрелками */
.smart-arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.smart-arrow-list li {
    display: flex;
    align-items: stretch;
    position: relative;
    cursor: default;
}

/* Желтая стрелка с цифрой */
.arrow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px; /* Фиксируем высоту квадрата */
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    position: relative;
    z-index: 2;
    /* Ключевой момент: выталкиваем стрелку вправо, чтобы она накрыла поле */
    margin-right: -12px; 
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Белое поле с текстом */
.arrow-text {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: 6px; /* Скругляем все углы, чтобы левый край был полноценным */
    padding: 0.6rem 1rem 0.6rem 1.75rem; /* Увеличили левый отступ, чтобы текст не залезал под стрелку */
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ --- */

/* При наведении на строку (li) стрелка вытягивается вправо */
.smart-arrow-list li:hover .arrow-num {
    transform: translateX(6px);
}

/* При наведении на строку (li) поле становится чуть темнее */
.smart-arrow-list li:hover .arrow-text {
    /* Используем акцентный цвет с прозрачностью 15% для фона */
    background: color-mix(in srgb, var(--accent) 15%, #fff);
    /* Делаем обводку чуть темнее акцента, смешивая его с черным */
    border-color: color-mix(in srgb, var(--accent) 80%, #000);
}

/* Карточки */
.smart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.smart-card {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 4px solid var(--accent);
    transition: transform 0.25s, box-shadow 0.25s;
}

.smart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 30, 45, 0.1);
}

.smart-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: #1a1d22;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-image {
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1rem;
    background-color: #e8eef7;
}

.smart-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.smart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: left;
    font-size: 0.93rem;
    color: #444;
    line-height: 1.5;
}

.smart-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.smart-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c99a1e;
    font-weight: 700;
}

/* Кнопка с акцентом и тёмным текстом */
.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: #1a1d22;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: filter 0.2s;
}

.btn-accent:hover {
    color: #1a1d22;
    filter: brightness(0.92);
}

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

@media (max-width: 991px) {
    .smart-intro { grid-template-columns: 1fr; }
    .smart-intro-image { min-height: 300px; }
}

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





/* ========== Переговорные комнаты ========== */
.meeting {
    background: #f7f9fc; /* Чередуем фон: тарифы #f7f9fc -> смарт #fff -> переговорные #f7f9fc */
    --accent: #a0c7de;
}

.meeting .section-title { color: #1a1d22; }

/* Кнопки и маркеры в этом блоке наследуют цвета из .smart, 
   но так как мы используем переменную --accent, они автоматически перекрасятся. */

/* Кнопка в переговорных: тёмный текст на голубом */
.meeting .btn-accent {
    background: var(--accent);
    color: #1a1d22;
}
.meeting .btn-accent:hover {
    filter: brightness(0.92);
    color: #1a1d22;
}

/* Маркеры списков чуть темнее для читаемости на светлом фоне */
.meeting .smart-list li::before {
    color: #74a4c2;
}

/* Примечание про кофе-брейк */
.meeting-note {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.15rem;
    color: #1a1d22;
    font-weight: 600;
    background: #eaf2f8;
    border: 1px solid #a0c7de;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575px) {
    .meeting-note { font-size: 1rem; padding: 1rem; }
}


/* Делаем карточки в переговорных белыми, чтобы они выделялись на сером фоне */
.meeting .smart-card {
    background: #fff;
    box-shadow: 0 4px 16px rgba(20, 30, 45, 0.06);
}

/* Эффект при наведении на карточку (усиливаем тень) */
.meeting .smart-card:hover {
    box-shadow: 0 12px 28px rgba(20, 30, 45, 0.1);
}






/* ========== Планы помещений ========== */
.floors {
    background: #fff;
    padding: 4rem 0;
}

.section-lead {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: -1rem auto 2.5rem;
}

/* Контейнер просмотрщика */
.floor-viewer {
    position: relative;
    background: #f7f9fc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e1e5ea;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Переключатель этажей (сверху) */
.floor-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.floor-tab {
    background: #fff;
    border: 2px solid #e1e5ea;
    color: #555;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.floor-tab:hover {
    border-color: #5581b8;
    color: #5581b8;
}

.floor-tab.active {
    background: #5581b8;
    border-color: #5581b8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(85, 129, 184, 0.3);
}

/* Блок с картинкой и панелью */
/* Контейнер с картинкой должен быть relative, чтобы панель позиционировалась внутри него */
.floor-images {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden; /* Скрываем вылезающие края */
    background: #fff;
    cursor: zoom-in;
    display: flex; /* Помогает картинке занимать нужное место */
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Чтобы контейнер не схлопывался, пока грузится фото */
}

.floor-img {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Убираем абсолютное позиционирование картинки, если оно было */
    position: relative; 
    z-index: 1; /* Картинка на первом слое */
}

.floor-img.active {
    display: block;
}

/* Панель со списком */
.floor-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    
    /* ВОТ ГЛАВНОЕ ИСПРАВЛЕНИЕ: */
    z-index: 10; /* Панель выше картинки */
    pointer-events: auto; /* Разрешаем клики по панели (на всякий случай) */
}
.floor-panel-content {
    display: none;
}

.floor-panel-content.active {
    display: block;
}

.floor-panel h3 {
    margin: 0 0 1rem;
    color: #1a1d22;
    font-size: 1.2rem;
}

.floor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floor-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

.floor-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5581b8;
    font-weight: 700;
}

/* ========== Лайтбокс ========== */
.floor-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.floor-lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.floor-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.floor-lightbox-close:hover {
    color: #ccc;
}

/* Мобильная адаптация */
@media (max-width: 991px) {
    .floor-panel {
        position: static;
        max-width: 100%;
        margin-top: 1rem;
        pointer-events: auto;
        background: #fff;
        box-shadow: none;
        padding: 1rem;
    }
    
    .floor-images {
        cursor: default;
    }
}


/* ========== Галерея (А что внутри?) ========== */
.gallery {
    background: #f7f9fc;
    padding: 4rem 0;
    overflow: hidden; /* Чтобы слайдер не ломал страницу */
}

.gallery-slider {
    display: flex;
    gap: 1.5rem;
    /* Включаем горизонтальную прокрутку */
    overflow-x: auto;
    /* Плавная прокрутка и прилипание (snap) */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.5rem; /* Место для полосы прокрутки */
    
    /* Скрываем стандартный скроллбар в Webkit (Chrome, Safari) для красоты */
    -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
    height: 6px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: #e1e5ea;
    border-radius: 10px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: #5581b8;
    border-radius: 10px;
}

/* Карточка с картинкой */
.gallery-item {
    flex: 0 0 calc(33.333% - 1rem); /* Показываем 3 картинки в ряд на десктопе */
    height: 300px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8eef7;
    /* Прилипание при прокрутке */
    scroll-snap-align: start;
    position: relative;
    box-shadow: 0 4px 16px rgba(20, 30, 45, 0.08);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Подсказка */
.gallery-hint {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none; /* Показываем только на мобильных */
}

/* Стили для картинок внутри галереи */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок без искажений */
    border-radius: 12px;
    cursor: zoom-in; /* Курсор-лупа */
    display: block;
}

/* ========== Адаптив ========== */
@media (max-width: 991px) {
    .gallery-item {
        flex: 0 0 calc(50% - 0.75rem); /* На планшетах 2 картинки в ряд */
    }
}

@media (max-width: 575px) {
    .gallery-item {
        flex: 0 0 85%; /* На мобильных одна картинка с краешком следующей */
        height: 250px;
    }
    .gallery-hint {
        display: block; /* Показываем подсказку на мобильных */
    }
}


/* ========== Стрелки лайтбокса ========== */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 32px;
    height: 32px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* На мобилках делаем стрелки поменьше */
@media (max-width: 767px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    .lightbox-nav svg { width: 24px; height: 24px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}



/* ========== Отзывы и соцсети ========== */
.social-proof {
    background: #f7f9fc;
    padding: 4rem 0;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch; /* Колонки одинаковой высоты */
}

.social-col {
    display: flex;
    flex-direction: column;
}

/* Общие стили для виджетов */
.social-widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 30, 45, 0.06);
    border: 1px solid #e1e5ea;
    height: 100%;
    min-height: 700px; /* Фиксируем высоту, чтобы блоки были ровными */
}

/* Виджет Яндекса */
.yandex-widget iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 700px;
    display: block;
    border: none;
}

/* Виджет ВК (адаптивный) */
.vk-widget {
    padding: 1px; /* Чтобы скрипт ВК не ломал рамки */
}
.vk-widget #vk_groups {
    width: 100% !important; /* Заставляем ВК тянуться на всю ширину */
    height: 700px !important;
}
.vk-widget iframe {
    width: 100% !important;
}

/* Адаптив */
@media (max-width: 991px) {
    .social-grid {
        grid-template-columns: 1fr; /* На планшетах и мобилках в одну колонку */
    }
    .social-widget {
        min-height: auto; /* Снимаем жесткую высоту */
    }
    .yandex-widget iframe {
        min-height: 500px; /* Оставляем комфортную высоту на мобильных */
    }
    .vk-widget #vk_groups {
        height: 500px !important; /* Уменьшаем ВК на мобильных */
    }
}






/* ========== Дополнительные плюсы ========== */
.benefits {
    background: #fff;
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #f7f9fc;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e1e5ea;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(85, 129, 184, 0.15);
    border-color: #5581b8;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #5581b8;
    opacity: 0;
    transition: opacity 0.3s;
}

.benefit-card:hover::before {
    opacity: 1;
}

/* Иконки */
.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: #e8eef7;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
    /* Настройки для фоновой картинки */
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: center;
}

.benefit-card:hover .benefit-icon {
    background-color: #5581b8;
}

/* Сами иконки (белые) */
.benefit-icon--wifi {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14.08 0'/%3E%3Cpath d='M1.42 9a16 16 0 0 1 21.16 0'/%3E%3Cpath d='M8.53 16.11a6 6 0 0 1 6.95 0'/%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'/%3E%3C/svg%3E");
}
.benefit-card:hover .benefit-icon--wifi {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14.08 0'/%3E%3Cpath d='M1.42 9a16 16 0 0 1 21.16 0'/%3E%3Cpath d='M8.53 16.11a6 6 0 0 1 6.95 0'/%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'/%3E%3C/svg%3E");
}

.benefit-icon--metro {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='3' width='16' height='16' rx='2' ry='2'/%3E%3Cpath d='M4 11h16'/%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='m8 19-2 3'/%3E%3Cpath d='m18 19 2 3'/%3E%3C/svg%3E");
}
.benefit-card:hover .benefit-icon--metro {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='3' width='16' height='16' rx='2' ry='2'/%3E%3Cpath d='M4 11h16'/%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='m8 19-2 3'/%3E%3Cpath d='m18 19 2 3'/%3E%3C/svg%3E");
}

.benefit-icon--parking {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}
.benefit-card:hover .benefit-icon--parking {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}

.benefit-icon--book {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235581b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.benefit-card:hover .benefit-icon--book {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

/* Текст */
.benefit-content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #1a1d22;
    font-weight: 700;
}

.benefit-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

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

@media (max-width: 767px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-card {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }
    .benefit-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        background-size: 24px 24px;
    }
}



/* ========== Модальные окна ========== */
.rf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rf-modal.active {
    display: flex;
}

.rf-modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rf-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.rf-close:hover { color: #333; }

.rf-modal-content h3 { margin-top: 0; color: #1a1d22; font-size: 1.5rem; }
.rf-modal-content p { margin-bottom: 1.5rem; color: #666; font-size: 0.95rem; }

.rf-group { margin-bottom: 1rem; }

.rf-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.rf-input:focus {
    border-color: #5581b8;
    outline: none;
}

.rf-checkbox {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    align-items: flex-start;
    cursor: pointer;
}
.rf-checkbox input { margin-top: 0.2rem; }
.rf-checkbox a { color: #5581b8; text-decoration: underline; }

.rf-btn {
    width: 100%;
    background: #5581b8;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}
.rf-btn:hover { background: #446a99; }

.rf-messengers {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.rf-mess { font-weight: 600; text-decoration: none; }
.rf-mess-tg { color: #29A9EB; }
.rf-mess-max { color: #3a3a3c; }