/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-feature-settings: 'lnum' 1;
}


:root {
    --color-bg-white: #ffffff;
    --color-bg-light: #f5f9ff;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-accent: #1f75fe;
    --color-accent-hover: #1a65e0;
    --max-width: 1320px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text-primary);
    line-height: 1.6;
    background: var(--color-bg-white);
}

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

/* Header + Navigation Wrapper */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.header-wrapper.hidden {
    transform: translateY(-100%);
}

/* Header */
.header {
    background: var(--color-bg-white);
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header__logo-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__logo {
    width: 168px;
    height: auto;
}

.header__logo-text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-secondary);
    max-width: 300px;
    padding-left: 24px;
    border-left: 1px solid #000000;
}

.header__info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header__badge {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.header__badge:hover {
    background: var(--color-accent-hover);
}

.header__address,
.header__phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    padding-left: 24px;
    border-left: 1px solid #000000;
}

.header__address:hover,
.header__phone:hover {
    color: var(--color-accent);
}

/* Navigation */
.navigation {
    background: var(--color-bg-light);
    padding: 16px 0;
}

.nav__list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    gap: 24px;
}

.nav__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link.active {
    color: var(--color-accent);
    font-weight: 700;
}

/* Banner Section */
.banner-section {
    background: var(--color-bg-white);
    padding: var(--spacing-lg) 0;
    position: relative;
    margin-top: 124px;
}

.banner__wrapper {
    width: 94%;
    margin: 0 auto;
    position: relative;
    height: 60vh;
    border-radius: 24px;
    overflow: hidden;
}

.banner__image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    align-items: center;
    padding: 60px;
}

.banner__text-block {
    width: 100%;
}

.banner__text {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 48px #00000080;
}

.form-container {
    position: relative;
    margin-top: -140px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}

/* Form */
.form {
    background: var(--color-accent);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(31, 117, 254, 0.3);
}

.form__header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.form__title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin: 0;
}

.form__step-counter {
    font-size: 16px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form__row--with-button {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

.form__button-wrapper {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.form__group {
    margin-bottom: 0;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.form__control {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    color: #1f2937;
}

.form__control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Select styling */
select.form__control {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231f75fe' 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 16px center;
    background-size: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.form__control::-ms-expand {
    display: none;
}

/* Option styling */
select.form__control option {
    padding: 14px 18px;
    background: white;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
}

select.form__control option:hover,
select.form__control option:focus,
select.form__control option:checked {
    background: #f5f9ff;
    color: #1f75fe;
}

select.form__control option:disabled {
    color: #9ca3af;
    background: #f3f4f6;
}

/* Firefox-specific option styling */
@-moz-document url-prefix() {
    select.form__control option {
        padding: 8px 12px;
    }
}

.form__input,
.form__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.form__checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.form__checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.form__checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: white;
    flex: 1;
}

.form__checkbox a {
    color: white;
    text-decoration: underline;
}

.form__checkbox a:hover {
    opacity: 0.8;
}

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

.form__error {
    display: block;
    color: #fca5a5;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.form__group.has-error .form__control {
    border: 2px solid #fca5a5;
}

.form__checkbox.has-error {
    padding: 8px;
    background: rgba(252, 165, 165, 0.1);
    border-radius: 8px;
}

.form__checkbox.has-error .form__error {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
}

.form__buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form__buttons .form__button {
    flex: 1;
}

.form__button {
    padding: 16px 32px;
    background: #ff8935;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    min-width: 160px;
}

.form__button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 137, 53, 0.4);
    background: #ff9a52;
}

.form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form__button--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.form__button--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

/* Две кнопки: Отправить + Дополнить */
.form__buttons--two {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form__buttons--two .form__button {
    flex: 1;
    min-width: 0;
}

/* Три кнопки: Назад + Отправить в группе, Дополнить отдельно — все одинаковой ширины */
.form__buttons--three {
    display: flex;
    gap: 12px;
}

.form__buttons--three .form__buttons-group {
    display: flex;
    gap: 12px;
    flex: 2;
}

.form__buttons--three .form__buttons-group .form__button {
    flex: 1;
    min-width: 0;
}

.form__buttons--three > .form__button {
    flex: 1;
    min-width: 0;
}

/* Single button positioned to the left */
.form-step > .form__button.step-next {
    display: block;
    margin-top: 24px;
    margin-right: 0;
}

.form__message {
    margin-top: 16px;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.form__message--success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.form__message--error {
    background: rgba(252, 165, 165, 0.2);
    color: #fca5a5;
    border: 2px solid #fca5a5;
}

/* Workflow Section */
.workflow-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-white);
    margin-top: var(--spacing-lg);
}

.workflow__title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.workflow__tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.workflow__tab {
    padding: 10px 20px;
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.workflow__tab:hover {
    background: var(--color-accent);
    color: white;
}

.workflow__tab.active {
    background: var(--color-accent);
    color: white;
    border-color: transparent;
}

.workflow__content {
    max-width: 1200px;
    margin: 0 auto;
}

.workflow__diagram {
    width: 100%;
}

.workflow__svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Cases Section */
.cases-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-white);
}

.cases__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.cases__tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cases__tab {
    padding: 14px 32px;
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cases__tab.active {
    background: var(--color-accent);
    color: white;
    border-color: transparent;
}

.cases__tab:hover {
    background: var(--color-accent);
    color: white;
}

.cases__content {
    position: relative;
}

.cases__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-white);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    padding: 0;
}

.cases__arrow i {
    font-size: 24px;
    line-height: 1;
}

.cases__arrow:hover {
    background: var(--color-accent);
    color: white;
}

.cases__arrow--left {
    left: -24px;
}

.cases__arrow--left i {
    padding-right: 2px;
}

.cases__arrow--right {
    right: -24px;
}

.cases__arrow--right i {
    padding-left: 2px;
}



.cases__slider {
    overflow: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cases__slider::-webkit-scrollbar {
    display: none;
}

.cases__list {
    display: flex;
    gap: 24px;
    padding: 8px 60px;
    justify-content: center;
}

.case-card {
    width: 80%;
    max-width: 1056px;
    background: var(--color-bg-white);
    border-radius: 0;
    overflow: visible;
    display: flex;
    min-height: 400px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin: 0 auto;
}

.case-card.active {
    opacity: 1;
}

.case-card__testimonial-block {
    width: 40%;
    flex-shrink: 0;
    padding: 32px;
    background: var(--color-bg-light);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.case-card__client-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.case-card__testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-style: italic;
}

.case-card__details {
    width: 60%;
    padding: 32px 40px 32px 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.case-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.case-card__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-bottom: 32px;
}

.case-card__info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-card__info-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card__info-value {
    font-size: 18px;
    color: var(--color-text-primary);
    font-weight: 700;
}

.case-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: 24px;
    margin-top: auto;
}

.case-card__price-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-primary);
    flex: 1;
}

.cookie-banner__button {
    padding: 12px 32px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-banner__button:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--color-bg-white);
    border-top: 1px solid #e5e7eb;
    padding: var(--spacing-md) 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
}

.footer__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.footer__top {
    padding-top: 8px;
}

.footer__logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
}

.footer__logo {
    width: 168px;
    height: auto;
}

.footer__logo-text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding-left: 24px;
    border-left: 1px solid #000000;
}

.footer__copyright {
    font-size: 14px;
    margin-top: 12px;
    color: var(--color-text-secondary);
}

.footer__right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    text-align: right;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    text-align: right;
}

.footer__socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__social-link {
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}

.footer__social-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.footer__social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.footer__contact-link {
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Animations */
html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.header,
.navigation {
    animation: fadeInDown 0.5s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .header__content {
        flex-wrap: wrap;
    }

    .footer__content {
        flex-direction: column;
        align-items: center;
    }

    .footer__logo-block {
        text-align: center;
        flex-direction: column;
    }

    .footer__info {
        align-items: center;
        text-align: center;
    }

    .footer__socials {
        justify-content: center;
    }

    .cases__scroll-arrow--left {
        left: -15px;
    }

    .cases__scroll-arrow--right {
        right: -15px;
    }

    .properties-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .page-header__title {
        font-size: 36px;
    }

    .properties-filters__advanced {
        gap: 16px;
    }
}

/* ========== НОВЫЕ СТИЛИ ДЛЯ КЕЙСОВ - ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ========== */

/* Фильтры категорий */
.cases__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.cases__filter-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    background: var(--color-bg-light);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-primary);
    font-family: inherit;
}

.cases__filter-btn:hover {
    background: var(--color-accent);
    color: white;
}

.cases__filter-btn.active {
    background: var(--color-accent);
    border-color: transparent;
    color: white;
}

/* Wrapper для горизонтального скролла */
.cases__scroll-wrapper {
    position: relative;
    margin-bottom: 40px;
}

/* Контейнер с горизонтальным скроллом */
.cases__scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    border-radius: 12px;
    padding: 0 40px;
}

/* Webkit - скрываем scrollbar */
.cases__scroll-container::-webkit-scrollbar {
    display: none;
}

/* Плавное появление контейнера */
.cases__scroll-wrapper {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Стрелки навигации */
.cases__scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cases__scroll-arrow:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.cases__scroll-arrow:hover i {
    color: white;
}


.cases__scroll-arrow--left {
    left: -25px;
}

.cases__scroll-arrow--left i {
    padding-top: 1px;
    padding-right: 2px;
}

.cases__scroll-arrow--right {
    right: -25px;
}

.cases__scroll-arrow--right i {
    padding-top: 1px;
    padding-left: 2px;
}

.cases__scroll-arrow i {
    font-size: 24px;
    color: #555;
    transition: all 0.3s ease;
}

/* Маленькая карточка кейса */
.case-card-small {
    flex: 0 0 320px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 280px;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    cursor: pointer;
}

.case-card-small:hover {
    border-color: #007bff;
    transform: translateY(-4px);
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка анимации для разных карточек */
.case-card-small:nth-child(1) { animation-delay: 0.1s; }
.case-card-small:nth-child(2) { animation-delay: 0.15s; }
.case-card-small:nth-child(3) { animation-delay: 0.2s; }
.case-card-small:nth-child(4) { animation-delay: 0.25s; }
.case-card-small:nth-child(5) { animation-delay: 0.3s; }
.case-card-small:nth-child(6) { animation-delay: 0.35s; }
.case-card-small:nth-child(7) { animation-delay: 0.4s; }
.case-card-small:nth-child(8) { animation-delay: 0.45s; }
.case-card-small:nth-child(9) { animation-delay: 0.5s; }
.case-card-small:nth-child(10) { animation-delay: 0.55s; }

.case-card-small__title {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-small__category {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f8ff;
    color: #007bff;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 12px;
    align-self: flex-start;
    flex-shrink: 0;
}

.case-card-small__preview {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.case-card-small__preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.case-card-small__read-more {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
}

.case-card-small__read-more:hover {
    background: #0056b3;
    transform: translateX(2px);
}

/* Индикатор загрузки */
.cases__loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cases__loading p {
    color: #777;
    font-size: 16px;
}

/* Сообщение о конце списка */
.cases__end-message {
    text-align: center;
    padding: 40px 0;
}

.cases__end-message p {
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* Модальное окно */
.case-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.case-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.case-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    max-height: 80dvh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.case-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.case-modal__close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.case-modal__close i {
    font-size: 20px;
    color: #555;
}

.case-modal__header {
    padding: 40px 40px 0 40px;
    flex-shrink: 0;
}

.case-modal__body {
    padding: 40px 40px 40px 40px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.case-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-right: 40px;
}

.case-modal__category {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f8ff;
    color: #007bff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 0;
}

.case-modal__text {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 0;
}

/* Стилизованный скроллбар для текста */
.case-modal__text::-webkit-scrollbar {
    width: 4px;
}

.case-modal__text::-webkit-scrollbar-track {
    background: transparent;
}

.case-modal__text::-webkit-scrollbar-thumb {
    background: #1f75fe;
    border-radius: 2px;
}

.case-modal__text::-webkit-scrollbar-thumb:hover {
    background: #1a65e0;
}

/* Firefox */
.case-modal__text {
    scrollbar-width: thin;
    scrollbar-color: #1f75fe transparent;
}

.case-modal__text p {
    margin-bottom: 0;
}

.case-modal__text p:not(:last-child) {
    margin-bottom: 16px;
}

.case-modal__text strong {
    font-weight: 700;
    color: #2c3e50;
}

.case-modal__text em {
    font-style: italic;
}

.case-modal__text ul,
.case-modal__text ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.case-modal__text li {
    margin-bottom: 8px;
}

.case-modal__text h1,
.case-modal__text h2,
.case-modal__text h3,
.case-modal__text h4 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    margin-top: 20px;
}

.case-modal__text h1 { font-size: 24px; }
.case-modal__text h2 { font-size: 22px; }
.case-modal__text h3 { font-size: 20px; }
.case-modal__text h4 { font-size: 18px; }

/* Properties Section */
.properties-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-white);
}

.properties__title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.properties__filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.properties__filter-btn {
    padding: 10px 20px;
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.properties__filter-btn:hover {
    background: var(--color-accent);
    color: white;
}

.properties__filter-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: transparent;
}

.properties__scroll-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.properties__scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 12px;
    padding: 0 40px;
}

.properties__scroll-container::-webkit-scrollbar {
    display: none;
}

.properties__scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #dee2e6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.properties__scroll-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.properties__scroll-arrow:hover i {
    color: white;
}

.properties__scroll-arrow--left {
    left: -25px;
}

.properties__scroll-arrow--left i {
    padding-top: 2px;
    padding-right: 2px;
}

.properties__scroll-arrow--right {
    right: -25px;
}

.properties__scroll-arrow--right i {
    padding-top: 2px;
    padding-left: 2px;
}

.properties__scroll-arrow i {
    font-size: 24px;
    color: #555;
    transition: all 0.3s ease;
}

/* Карточка объекта */
.property-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}

.property-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

.property-card:hover .property-card__image img {
    transform: scale(1.05);
}

.property-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.property-card__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.property-card__details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    flex-shrink: 0;
}

.property-card__metro {
    font-size: 15px;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.property-card__metro-station {
    font-weight: 600;
}

.property-card__metro-time {
    font-weight: 400;
}

.property-card__address {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Индикатор загрузки */
.properties__loading {
    text-align: center;
    padding: 40px 0;
}

.properties__loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.properties__loading p {
    color: #777;
    font-size: 16px;
}

/* Модальное окно объекта */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.property-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.property-modal__wrapper {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    max-height: 80dvh;
    z-index: 10000;
    padding: 40px;
}

.property-modal__content {
    max-height: calc(80vh - 80px);
    max-height: calc(80dvh - 80px);
    overflow-y: auto;
}

.property-modal__content::-webkit-scrollbar {
    width: 8px;
}

.property-modal__content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0;
}

.property-modal__content::-webkit-scrollbar-thumb {
    background: #1f75fe;
    border-radius: 4px;
}

.property-modal__content::-webkit-scrollbar-thumb:hover {
    background: #1a65e0;
}

/* Firefox */
.property-modal__content {
    scrollbar-width: thin;
    scrollbar-color: #1f75fe transparent;
}

.property-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.property-modal__close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.property-modal__close i {
    font-size: 18px;
    color: #333;
}

.property-modal__gallery {
    display: flex;
    gap: 10px;
    padding: 0;
    padding-bottom: 20px;
    background: transparent;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.property-modal__gallery::-webkit-scrollbar {
    height: 8px;
}

.property-modal__gallery::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.property-modal__gallery::-webkit-scrollbar-thumb {
    background: #1f75fe;
    border-radius: 4px;
}

.property-modal__image {
    flex: 0 0 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.property-modal__image:hover {
    transform: scale(1.05);
}

.property-modal__info {
    padding: 0;
    margin-top: 20px;
}

.property-modal__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.property-modal__details {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.property-modal__location {
    margin-bottom: 24px;
}

.property-modal__location > div {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.property-modal__location > div:first-child {
    font-size: 18px;
    font-weight: 600;
}

.property-modal__description {
    line-height: 1.8;
    color: #444;
}

.property-modal__description p {
    margin-bottom: 0;
}

.property-modal__description p:not(:last-child) {
    margin-bottom: 16px;
}

.property-modal__description strong {
    font-weight: 700;
    color: #2c3e50;
}

.property-modal__description em {
    font-style: italic;
}

.property-modal__description ul,
.property-modal__description ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.property-modal__description li {
    margin-bottom: 8px;
}

.property-modal__description h1,
.property-modal__description h2,
.property-modal__description h3,
.property-modal__description h4 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    margin-top: 20px;
}

.property-modal__description h1 { font-size: 24px; }
.property-modal__description h2 { font-size: 22px; }
.property-modal__description h3 { font-size: 20px; }
.property-modal__description h4 { font-size: 18px; }

/* Страницы списков (Наши объекты, Наши кейсы) */

/* Заголовок страницы */
.page-header {
    padding: 60px 0 40px;
    background: var(--color-bg-light);
    margin-top: 124px;
}

.page-header__title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.page-header__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* Фильтры объектов */
.properties-filters-section {
    padding: 40px 0 0;
    background: white;
}

.properties-filters-section .properties__filters {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.properties-filters__categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.properties-filters__category-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.properties-filters__category-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.properties-filters__category-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.properties-filters__advanced {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.properties-filters__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.properties-filters__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

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

.properties-filters__input {
    width: 120px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.properties-filters__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.properties-filters__separator {
    color: var(--color-text-secondary);
}

.properties-filters__select {
    min-width: 200px;
    padding: 10px 14px;
    padding-right: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231f75fe' 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 12px center;
    background-size: 18px;
    color: var(--color-text-primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.properties-filters__select::-ms-expand {
    display: none;
}

.properties-filters__select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.properties-filters__select option {
    background: white;
    color: var(--color-text-primary);
}

.properties-filters__apply,
.properties-filters__reset {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.properties-filters__apply {
    background: var(--color-accent);
    color: white;
}

.properties-filters__apply:hover {
    background: var(--color-accent-hover);
}

.properties-filters__reset {
    background: #f5f5f5;
    color: var(--color-text-primary);
}

.properties-filters__reset:hover {
    background: #e0e0e0;
}

/* Сетка объектов */
.properties-grid-section {
    padding: 60px 0;
    background: white;
}

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

/* Карточка объекта в сетке */
.property-card-grid {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.property-card-grid__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.property-card-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card-grid:hover .property-card-grid__image img {
    transform: scale(1.05);
}

.property-card-grid__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

.property-card-grid__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-card-grid__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.property-card-grid__details {
    font-size: 14px;
    color: #666;
}

.property-card-grid__metro {
    font-size: 15px;
    color: var(--color-text-primary);
}

.property-card-grid__metro-station {
    font-weight: 600;
}

.property-card-grid__metro-time {
    font-weight: 400;
}

.property-card-grid__address {
    font-size: 14px;
    color: #777;
}

/* Секция фильтров кейсов */
.cases-filters-section {
    padding: 30px 0 0;
    background: white;
}

.cases-filters-section .cases__filters {
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Информационные страницы (Ипотека, Юристы) */
.info-page-section {
    padding: 40px 0 60px;
    background: white;
}

.info-page__content {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-primary);
}

.info-page__content h1,
.info-page__content h2,
.info-page__content h3,
.info-page__content h4,
.info-page__content h5,
.info-page__content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.info-page__content h1 { font-size: 32px; }
.info-page__content h2 { font-size: 28px; }
.info-page__content h3 { font-size: 24px; }
.info-page__content h4 { font-size: 20px; }

.info-page__content p {
    margin-bottom: 16px;
}

.info-page__content ul,
.info-page__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.info-page__content li {
    margin-bottom: 8px;
}

.info-page__content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.info-page__content a:hover {
    color: var(--color-accent-hover);
}

.info-page__content strong {
    font-weight: 700;
}

.info-page__content em {
    font-style: italic;
}

.info-page__content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-accent);
    font-style: italic;
}

.info-page__content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.info-page__content th,
.info-page__content td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.info-page__content th {
    background: var(--color-bg-light);
    font-weight: 600;
}

.info-page__content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.info-page__empty {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-secondary);
    font-size: 18px;
}

/* Модальное окно вакансий */
.vacancy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.vacancy-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.vacancy-modal__content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    z-index: 1;
}

.vacancy-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-primary);
    transition: background-color 0.2s;
}

.vacancy-modal__close:hover {
    background: #e0e0e0;
}

.vacancy-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    padding-right: 40px;
    line-height: 1.3;
}

.vacancy-modal__subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.vacancy-modal__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vacancy-modal__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: background-color 0.2s, transform 0.2s;
}

.vacancy-modal__link:hover {
    background: #e8f0fe;
    transform: translateX(4px);
}

.vacancy-modal__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.vacancy-modal__link-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

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

.vacancy-modal__empty {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 20px;
}

/* Сетка кейсов */
.cases-grid-section {
    padding: 40px 0 60px;
    background: white;
}

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

/* Карточка кейса в сетке */
.case-card-grid {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 320px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.case-card-grid:hover {
    border-color: #007bff;
    transform: translateY(-4px);
}

/* Анимация появления карточек */
.case-card-grid:nth-child(1) { animation-delay: 0.1s; }
.case-card-grid:nth-child(2) { animation-delay: 0.15s; }
.case-card-grid:nth-child(3) { animation-delay: 0.2s; }
.case-card-grid:nth-child(4) { animation-delay: 0.25s; }
.case-card-grid:nth-child(5) { animation-delay: 0.3s; }
.case-card-grid:nth-child(6) { animation-delay: 0.35s; }

.case-card-grid__title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-shrink: 0;
}

.case-card-grid__category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-bg-light);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.case-card-grid__preview {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.case-card-grid__preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.case-card-grid__read-more {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
}

.case-card-grid__read-more:hover {
    background: #0056b3;
    transform: translateX(2px);
}

/* Индикаторы загрузки */
.properties-grid__loading,
.cases-grid__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
}

.properties-grid__empty,
.cases-grid__empty {
    text-align: center;
    padding: 60px 0;
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.pagination__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination__btn:hover:not(:disabled) {
    background: #1976d2;
    transform: translateY(-2px);
}

.pagination__btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination__btn i {
    font-size: 14px;
}

.pagination__info {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    min-width: 120px;
    text-align: center;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

/* Бургер-кнопка */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.burger__line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

/* Анимация бургера в крестик */
.burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Контакты внутри мобильного меню */
.nav__contacts {
    display: none;
}

.nav__contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav__contact-link i {
    color: var(--color-accent);
    font-size: 14px;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) ========== */
@media (max-width: 992px) {
    /* Бургер-кнопка видна */
    .burger {
        display: flex;
    }

    /* Скрыть адрес и телефон в хедере */
    .header__address,
    .header__phone {
        display: none;
    }

    /* Скрыть бейдж */
    .header__badge {
        display: none;
    }

    /* Навигация - скрыта по умолчанию, выпадает при клике */
    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 0;
    }

    .navigation.active {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        padding: 8px 0 0 0;
        gap: 0;
    }

    .nav__list li {
        border-bottom: 1px solid #eee;
    }

    .nav__list li:last-child {
        border-bottom: none;
    }

    .nav__link {
        display: block;
        padding: 12px 0;
        font-size: 15px;
    }

    /* Контакты внутри мобильного меню */
    .nav__contacts {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        margin-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .nav__badge {
        display: inline-block;
        background: var(--color-accent);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        align-self: flex-start;
    }

    /* Header - компактный, всегда вверху, фиксированная высота */
    .header-wrapper {
        position: fixed;
        top: 0;
        transform: translateY(0) !important;
        height: 58px;
    }

    .header-wrapper.hidden {
        transform: translateY(0) !important;
    }

    .header {
        padding: 0;
        height: 58px;
    }

    .container {
        padding: 0 16px;
    }

    .header .container {
        height: 100%;
    }

    .header__content {
        height: 100%;
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .header__logo-block {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 0 1 auto;
    }

    .header__logo {
        width: 100px;
        flex-shrink: 0;
    }

    /* Надпись "Выкуп недвижимости..." видна */
    .header__logo-text {
        font-size: 10px;
        max-width: 140px;
        padding-left: 10px;
        line-height: 1.2;
        border-left: 1px solid #ccc;
    }

    .header__info {
        display: none;
    }

    /* Баннер - уменьшенный отступ от хедера */
    .banner-section {
        margin-top: 56px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .banner__wrapper {
        width: 100%;
        height: 45vh;
        min-height: 280px;
        border-radius: 16px;
    }

    .banner__overlay {
        padding: 24px 20px;
        bottom: 40px;
    }

    .banner__text {
        font-size: 24px;
        text-align: left;
    }

    /* Форма - залезает на баннер, уже чем баннер */
    .form-container {
        width: 96%;
        margin-top: -100px;
    }

    .form {
        padding: 20px;
    }

    .form__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .form__title {
        font-size: 18px;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form__row--with-button {
        grid-template-columns: 1fr;
    }

    /* Кнопки в ряд, одинакового размера */
    .form__buttons {
        flex-direction: row;
        gap: 10px;
    }

    .form__buttons .form__button {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Две кнопки на мобилке: Отправить сверху, Далее снизу */
    .form__buttons--two {
        flex-direction: column;
        gap: 10px;
    }

    .form__buttons--two .form__button {
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
    }

    .form__buttons--two .form__button--secondary {
        order: 1;
    }

    .form__buttons--two .form__button:not(.form__button--secondary) {
        order: 2;
    }

    /* Три кнопки на мобилке: группа сверху, Далее снизу */
    .form__buttons--three {
        flex-direction: column;
        gap: 10px;
    }

    .form__buttons--three .form__buttons-group {
        display: flex;
        gap: 10px;
        order: 1;
    }

    .form__buttons--three .form__buttons-group .form__button {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
    }

    .form__buttons--three > .form__button {
        order: 2;
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Workflow - табы с горизонтальным скроллом */
    .workflow-section {
        padding: 48px 0;
    }

    .workflow__title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .workflow__tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 32px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .workflow__tabs::-webkit-scrollbar {
        display: none;
    }

    .workflow__tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Кейсы - фильтры с горизонтальным скроллом */
    .cases-section {
        padding: 48px 0;
    }

    .cases__title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .cases__filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 24px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cases__filters::-webkit-scrollbar {
        display: none;
    }

    .cases__filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Скрыть стрелки на мобильных - только свайп */
    .cases__scroll-arrow,
    .properties__scroll-arrow {
        display: none;
    }

    .cases__scroll-container,
    .properties__scroll-container {
        padding: 0 16px;
        scroll-snap-type: x mandatory;
    }

    .case-card-small,
    .property-card {
        scroll-snap-align: start;
    }

    /* Properties - фильтры с горизонтальным скроллом */
    .properties-section {
        padding: 48px 0;
    }

    .properties__title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .properties__filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 32px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .properties__filters::-webkit-scrollbar {
        display: none;
    }

    .properties__filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Модальные окна */
    .case-modal__content {
        width: 95%;
        margin: 16px;
        max-height: 80vh;
        max-height: 80dvh;
    }

    .case-modal__header {
        padding: 20px 16px 0;
    }

    .case-modal__body {
        padding: 16px;
    }

    .case-modal__title {
        font-size: 20px;
        padding-right: 30px;
    }

    .case-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .property-modal__wrapper {
        width: 95%;
        padding: 16px;
        max-height: 80vh;
        max-height: 80dvh;
    }

    .property-modal__content {
        max-height: calc(80vh - 32px);
        max-height: calc(80dvh - 32px);
    }

    .property-modal__price {
        font-size: 26px;
    }

    .property-modal__details {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .property-modal__image {
        flex: 0 0 280px;
        height: 200px;
    }

    .property-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .property-modal__description {
        font-size: 13px;
    }

    /* Footer */
    .footer__content {
        gap: 24px;
    }

    .footer__left {
        align-items: center;
        text-align: center;
    }

    .footer__logo-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__logo-text {
        padding-left: 0;
        border-left: none;
        text-align: center;
    }

    .footer__right {
        align-items: center;
        text-align: center;
    }

    .footer__info {
        align-items: center;
    }

    /* Cookie Banner */
    .cookie-banner {
        padding: 16px 0;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-banner__text {
        font-size: 13px;
    }

    .cookie-banner__button {
        width: 100%;
    }

    /* Пагинация */
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
        padding: 24px 0;
    }

    .pagination__btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .pagination__info {
        font-size: 14px;
        min-width: auto;
        order: -1;
        width: 100%;
    }

    /* Page Header */
    .page-header {
        margin-top: 58px;
        padding: 24px 0 20px;
    }

    /* Info Page */
    .info-page-section {
        padding: 30px 0 40px;
    }

    .info-page__content {
        font-size: 15px;
    }

    .info-page__content h1 { font-size: 26px; }
    .info-page__content h2 { font-size: 22px; }
    .info-page__content h3 { font-size: 20px; }
    .info-page__content h4 { font-size: 18px; }

    .info-page__content blockquote {
        padding: 12px 16px;
        margin: 20px 0;
    }

    .info-page__content th,
    .info-page__content td {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Фильтры страницы объектов - горизонтальный скролл */
    .properties-filters__categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .properties-filters__categories::-webkit-scrollbar {
        display: none;
    }

    .properties-filters__category-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* === Перенесено из отдельных блоков 768px === */

    /* Сетки */
    .properties-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-card-grid__image {
        height: 200px;
    }

    .properties-filters__input {
        flex: 1;
    }

    .properties-filters__select {
        width: 100%;
    }

    .properties-filters__group {
        width: 100%;
    }

    .properties-filters__advanced {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

/* ========== МАЛЕНЬКИЕ МОБИЛЬНЫЕ (480px и меньше) ========== */
@media (max-width: 480px) {
    /* Header еще компактнее */
    .header__logo {
        width: 110px;
    }

    .header__logo-text {
        font-size: 9px;
        max-width: 120px;
    }

    /* Баннер */
    .banner__wrapper {
        height: 25vh;
        min-height: 280px;
    }

    .banner__text {
        font-size: 24px;
    }

    .form-container {
        margin-top: -60px;
    }

    /* Карточки кейсов и объектов - почти на всю ширину */
    .case-card-small {
        flex: 0 0 calc(100vw - 48px);
    }

    .property-card {
        flex: 0 0 calc(100vw - 48px);
    }

    /* Workflow, Cases, Properties titles */
    .workflow__title,
    .cases__title,
    .properties__title {
        font-size: 24px;
    }

    /* Форма */
    .form__title {
        font-size: 18px;
    }

    .form__control {
        padding: 12px 14px;
        font-size: 15px;
    }

    /* Модальные окна */
    .case-modal__title {
        font-size: 18px;
    }

    .case-modal__text {
        font-size: 15px;
    }

    .property-modal__price {
        font-size: 22px;
    }

    .property-modal__image {
        flex: 0 0 calc(100vw - 64px);
        height: 180px;
    }

    /* Page Header */
    .page-header__title {
        font-size: 24px;
    }

    .page-header__subtitle {
        font-size: 14px;
    }

    /* Info Page */
    .info-page-section {
        padding: 24px 0 32px;
    }

    .info-page__content {
        font-size: 14px;
        line-height: 1.6;
    }

    .info-page__content h1 { font-size: 22px; margin-top: 24px; }
    .info-page__content h2 { font-size: 20px; margin-top: 24px; }
    .info-page__content h3 { font-size: 18px; margin-top: 20px; }
    .info-page__content h4 { font-size: 16px; margin-top: 20px; }

    .info-page__content ul,
    .info-page__content ol {
        padding-left: 20px;
    }

    .info-page__content blockquote {
        padding: 10px 14px;
        margin: 16px 0;
    }

    .info-page__content table {
        font-size: 13px;
    }

    .info-page__content th,
    .info-page__content td {
        padding: 8px 10px;
    }

    .info-page__empty {
        padding: 40px 0;
        font-size: 16px;
    }

    /* Vacancy modal mobile */
    .vacancy-modal__content {
        padding: 24px;
        max-width: calc(100% - 32px);
    }

    .vacancy-modal__title {
        font-size: 20px;
    }

    .vacancy-modal__subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .vacancy-modal__link {
        padding: 12px 16px;
        gap: 12px;
    }

    .vacancy-modal__logo {
        width: 32px;
        height: 32px;
    }

    .vacancy-modal__link-text {
        font-size: 14px;
    }

    /* === Перенесено из отдельных блоков 480px === */

    /* Старые case-card */
    .case-card__title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .case-card__info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .case-card__info-value {
        font-size: 16px;
    }

    .case-card__price {
        font-size: 24px;
    }

    .case-card__price-block {
        padding: 20px;
    }

    /* Cases scroll */
    .cases__scroll-container {
        padding: 15px 5px;
    }

    .case-card-small__title {
        font-size: 15px;
    }

    .case-card-small__category {
        font-size: 10px;
        padding: 3px 8px;
    }

    .case-card-small__preview {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }

    .case-card-small__read-more {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Уменьшаем текст параграфов */
    p a li {
        font-size: 13px;
    }
}


