/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #17191c;
    --color-text-secondary: #5f6873;
    --color-text-light: #8a929c;
    --color-bg-secondary: #f6f7f9;
    --color-bg-muted: #eef1f4;
    --color-accent: #0b5cad;
    --color-accent-hover: #084a8c;
    --color-accent-soft: #e8f2ff;
    --color-warm: #d8902f;
    --color-warm-soft: #fff4e4;
    --color-border: #dfe4ea;
    --color-border-strong: #c6ced8;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Typography === */
.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 16px;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-border-strong);
}

.btn--secondary:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
}

/* === Input === */
.input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
    outline: none;
}

.input:focus {
    border-color: var(--color-accent);
}

.input--textarea {
    resize: vertical;
    min-height: 80px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo-img {
    height: 44px;
    width: auto;
}

.footer__logo-img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header__phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

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

.header__social {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.header__social:hover {
    color: #0077FF;
}

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

.btn--messenger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    transition: all var(--transition);
}

.btn--messenger:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn--vk {
    background: #0077FF;
}

.btn--vk:hover {
    background: #0066DD;
    box-shadow: 0 4px 14px rgba(0, 119, 255, 0.4);
}

.btn--tg {
    background: #229ED9;
}

.btn--tg:hover {
    background: #1E8EC4;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

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

.nav-backdrop {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header__actions--mobile {
    display: none;
}

/* === Hero === */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 720px;
    padding: 128px 0 80px;
    text-align: center;
    overflow: hidden;
    background: #1d2833;
    color: #fff;
}

.hero__slider,
.hero__slider::after,
.hero__slide {
    position: absolute;
    inset: 0;
}

.hero__slider {
    z-index: -2;
}

.hero__slider::after {
    content: "";
    z-index: 2;
    background: linear-gradient(90deg, rgba(8, 18, 29, 0.78), rgba(8, 18, 29, 0.48)),
        linear-gradient(0deg, rgba(8, 18, 29, 0.45), transparent 55%);
}

.hero__slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__slide.active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    background: var(--color-warm-soft);
    color: #8b5417;
    font-size: 13px;
    font-weight: 700;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin: 0 auto 40px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__actions .btn--secondary {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.92);
}

.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(8, 18, 29, 0.38);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background var(--transition), border-color var(--transition);
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    border-color: #fff;
    background: rgba(8, 18, 29, 0.7);
}

.hero__arrow--prev {
    left: 24px;
}

.hero__arrow--next {
    right: 24px;
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: width var(--transition), border-radius var(--transition), background var(--transition);
}

.hero__dot.active {
    width: 28px;
    border-radius: 8px;
    background: #fff;
}

.stat__label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* === About === */
.about {
    padding: 80px 0;
}

.about__text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about__text p {
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--color-text-secondary);
}

.about__text strong {
    color: var(--color-text);
}

/* === Advantages === */
.advantages {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

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

.advantage-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* === Properties === */
.properties {
    padding: 80px 0;
}

.property-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    transition: box-shadow var(--transition);
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
}

.property-card__image {
    min-height: 280px;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.property-card__image-open {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.property-card__image--interactive {
    cursor: pointer;
}

.property-card__image-open:focus-visible {
    z-index: 1;
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    -webkit-user-drag: none;
}

.property-card__image.is-dragging,
.property-card__image.is-dragging .property-card__image-open {
    cursor: grabbing;
}

.property-card__image.is-dragging img {
    transition: none;
}

.property-card__image::after {
    content: "Фото объекта";
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.92);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
}

.property-card__image--interactive::after {
    display: none;
}

.property-card__photo-count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(5px);
}

.property-card__image-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.property-card__image-arrow--prev {
    left: 12px;
}

.property-card__image-arrow--next {
    right: 12px;
}

.property-card__image:hover .property-card__image-arrow,
.property-card__image:focus-within .property-card__image-arrow {
    opacity: 1;
}

.property-card__image-arrow:hover,
.property-card__image-arrow:focus-visible {
    background: var(--color-accent);
}

.property-card__image-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.property-card__photo--next {
    animation: cardPhotoNext 0.32s ease both;
}

.property-card__photo--prev {
    animation: cardPhotoPrev 0.32s ease both;
}

@keyframes cardPhotoNext {
    from { opacity: 0.35; transform: translateX(18px) scale(1.015); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cardPhotoPrev {
    from { opacity: 0.35; transform: translateX(-18px) scale(1.015); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.property-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.property-card__placeholder span {
    display: none;
}

.property-card__info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.property-card__name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.property-card__center {
    margin-bottom: 6px;
    color: var(--color-accent);
    font-size: 15px;
    font-weight: 700;
}

.property-card__address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    text-decoration: none;
    transition: color var(--transition);
    width: fit-content;
}

a.property-card__address:hover {
    color: var(--color-accent);
}

.property-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.property-card__map-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

.property-card__map-link:hover {
    opacity: 0.7;
}

.property-card__tour {
    font-size: 15px;
    font-weight: 700;
    color: #8b5417;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-warm-soft);
}

.property-card__address svg {
    flex-shrink: 0;
}

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

.detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.detail__value {
    font-size: 16px;
    font-weight: 600;
}

.property-card__btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 14px 36px;
    font-size: 16px;
}

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

.catalog-search,
.catalog-sort {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-search span,
.catalog-sort span,
.filter-group__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

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

.filter-group__label {
    min-width: 72px;
}

.filter-chip {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.catalog-reset {
    border: none;
    background: none;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.catalog-card {
    margin-bottom: 0;
}

.catalog-card[hidden] {
    display: none;
}

.property-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.property-card__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: var(--color-warm-soft);
    color: #8b5417;
    font-size: 12px;
    font-weight: 700;
}

.property-card__description {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: -8px 0 16px;
    max-width: 680px;
}

.property-card__spaces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.property-card__spaces span {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
}

.property-card__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.property-card__features li {
    position: relative;
    padding-left: 18px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.property-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.property-card__call {
    padding: 13px 22px;
    font-size: 15px;
}

.catalog-empty,
.catalog-cta {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.catalog-empty {
    text-align: center;
}

.catalog-empty h3,
.catalog-cta h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.catalog-empty p,
.catalog-cta p {
    color: var(--color-text-secondary);
}

.catalog-empty .btn {
    margin-top: 18px;
}

.catalog-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #111820;
    color: #fff;
}

.catalog-cta p {
    color: rgba(255,255,255,0.72);
}

.mobile-sticky-cta {
    display: none;
}

/* === Process === */
.process {
    padding: 72px 0;
    background: var(--color-bg-secondary);
}

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

.process-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.process-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 800;
}

.process-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.process-card p {
    color: var(--color-text-secondary);
    font-size: 15px;
}

/* === FAQ === */
.faq {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.faq__grid {
    max-width: 860px;
    margin: 32px auto 0;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
}

.faq-item summary {
    min-height: 58px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text);
}

.faq-item p {
    padding: 0 22px 20px;
    color: var(--color-text-secondary);
}

/* === Clients === */
.clients {
    padding: 64px 0;
    background: var(--color-bg-secondary);
}

.clients__logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}

.client-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.client-logo img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: var(--radius-md);
}

/* === Team === */
.team {
    padding: 80px 0;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.team-card__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.team-card__phone,
.team-card__email {
    display: block;
    font-size: 13px;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.team__contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.team__contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition),
        color var(--transition), background-color var(--transition), border-color var(--transition);
}

.team__contact--phone {
    color: #fff;
    background: var(--color-accent);
}

.team__contact--phone:hover {
    color: #fff;
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team__contact--email {
    color: var(--color-accent);
    background: var(--color-bg);
    border-color: var(--color-border-strong);
}

.team__contact--email:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.team__contact:focus-visible {
    outline: 3px solid rgba(33, 150, 243, 0.28);
    outline-offset: 3px;
}

.team__contact-icon {
    flex: 0 0 auto;
}

.team__contact-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.team__contact-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.team__contact-value {
    font-size: 15px;
    line-height: 1.35;
}

/* === Reviews === */
.reviews {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: none;
    transition: box-shadow var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-card__company {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.review-card__text {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-card__name {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
}

.review-card__position {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* === Map === */
.map {
    padding: 80px 0 0;
}

.map__embed {
    margin-top: 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.map__embed iframe {
    display: block;
}

/* === Contact === */
.contact {
    padding: 80px 0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__info p {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-top: 16px;
    margin-bottom: 32px;
}

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

.contact__phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

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

.contact__email {
    font-size: 16px;
    color: var(--color-accent);
}

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

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

.contact__privacy a {
    color: var(--color-accent);
}

/* === Footer === */
.footer {
    background: var(--color-text);
    color: #fff;
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
}

.footer__company .logo-text {
    color: #fff;
    margin-bottom: 8px;
}

.footer__company p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.footer h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer__links a,
.footer__platforms a,
.footer__contacts a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer__links a:hover,
.footer__platforms a:hover,
.footer__contacts a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer__bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    z-index: 1;
    animation: modalIn 0.3s ease;
}

.modal--form .modal__content {
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.gallery-modal {
    padding: 20px;
}

.gallery-modal .modal__overlay {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-modal.active .modal__overlay {
    animation: galleryBackdropIn 0.28s ease both;
}

.gallery-modal__content {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-width: none;
    max-height: calc(100vh - 40px);
    padding: 20px;
    border-radius: var(--radius-md);
    background: #111;
    color: #fff;
}

.gallery-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 48px 14px 0;
}

.gallery-modal__content .gallery-modal__head h3 {
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-modal__head span {
    flex: 0 0 auto;
    color: #d6d6d6;
    font-size: 14px;
}

.gallery-modal__close {
    z-index: 2;
    color: #fff;
}

.gallery-modal__stage {
    position: relative;
    display: flex;
    min-height: 240px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #050505;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-modal__stage.is-dragging {
    cursor: grabbing;
}

.gallery-modal__stage > img {
    display: block;
    width: 100%;
    height: min(70vh, 760px);
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-user-drag: none;
}

.gallery-modal__stage.is-dragging > img {
    transition: none;
}

.gallery-modal__image--next {
    animation: galleryImageNext 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery-modal__image--prev {
    animation: galleryImagePrev 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@keyframes galleryImageNext {
    from { opacity: 0; transform: translateX(34px) scale(0.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes galleryImagePrev {
    from { opacity: 0; transform: translateX(-34px) scale(0.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.gallery-modal__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 46px;
    height: 46px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    font-size: 26px;
}

.gallery-modal__arrow:hover,
.gallery-modal__arrow:focus-visible {
    background: var(--color-accent);
}

.gallery-modal__arrow--prev {
    left: 16px;
}

.gallery-modal__arrow--next {
    right: 16px;
}

.gallery-modal__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-modal__thumbs button {
    flex: 0 0 82px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #222;
    cursor: pointer;
    opacity: 0.6;
}

.gallery-modal__thumbs button.is-active {
    border-color: var(--color-accent);
    opacity: 1;
}

.gallery-modal__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 4px;
    line-height: 1;
}

.modal__content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal__content p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.modal__content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-success {
    text-align: center;
    padding: 24px;
}

.form-success p {
    color: var(--color-accent);
    font-weight: 500;
}

/* === Consent checkbox === */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.consent a {
    color: var(--color-accent);
}

/* === Listings (CIAN/Avito) === */
.listings {
    padding: 80px 0;
}

.listings__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.listing-card__icon {
    margin-bottom: 20px;
}

.listing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.listing-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.listing-card__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === Responsive === */
@media (max-width: 900px) {
    .hero__arrow {
        width: 42px;
        height: 42px;
    }

    .hero__arrow--prev {
        left: 12px;
    }

    .hero__arrow--next {
        right: 12px;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .property-card {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .property-card__info {
        padding: 24px;
    }

    .property-card__details {
        grid-template-columns: repeat(3, 1fr);
    }

    .property-card__features {
        grid-template-columns: 1fr;
    }

    .team__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .catalog-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 76px;
    }

    .property-card__image-arrow {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: 0;
    }

    .header__nav {
        display: flex;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        background: #ffffff;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 24px 24px 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__nav .nav-link {
        font-size: 18px;
        font-weight: 500;
        padding: 14px 8px;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--color-border);
    }

    .header__nav .nav-link:last-of-type {
        border-bottom: none;
    }

    .header__actions {
        display: none;
    }

    .header__actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--color-border);
    }

    .header__actions--mobile .header__phone {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        padding: 14px;
        min-height: 48px;
    }

    .header__actions--mobile .btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .header__burger {
        display: flex;
    }

    .nav-backdrop.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        min-height: 760px;
        padding: 96px 0 48px;
        text-align: left;
    }

    .hero__slider::after {
        background: linear-gradient(90deg, rgba(8, 18, 29, 0.78), rgba(8, 18, 29, 0.55)),
            linear-gradient(0deg, rgba(8, 18, 29, 0.55), transparent 55%);
    }

    .hero__title {
        font-size: 32px;
        margin-left: 0;
        margin-right: 0;
    }

    .contact__messengers {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn--messenger {
        width: 100%;
        justify-content: center;
    }

    .hero__subtitle {
        font-size: 17px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 28px;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__actions .btn {
        flex: 1 1 150px;
        min-height: 48px;
    }

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

    .hero__dots {
        bottom: 18px;
    }

    .stat {
        padding: 16px 12px;
    }

    .stat__value {
        font-size: 20px;
    }

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

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

    .properties {
        padding: 56px 0;
    }

    .catalog-filters {
        margin-left: -16px;
        margin-right: -16px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 16px;
    }

    .filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-group__label {
        min-width: auto;
        flex: 0 0 auto;
    }

    .filter-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .catalog-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .property-card {
        gap: 0;
        border-radius: var(--radius-md);
    }

    .property-card__image {
        min-height: 180px;
    }

    .property-card__info {
        padding: 22px;
    }

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

    .property-card__description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .property-card__spaces {
        gap: 6px;
    }

    .property-card__spaces span {
        font-size: 12px;
        padding: 5px 8px;
    }

    .property-card__features {
        margin-bottom: 18px;
    }

    .property-card__actions {
        gap: 10px;
    }

    .property-card__btn,
    .property-card__call {
        width: 100%;
        min-height: 46px;
    }

    .property-card__map-link {
        width: 100%;
        padding-top: 2px;
    }

    .property-card__tour {
        width: 100%;
        text-align: center;
    }

    .catalog-cta {
        padding: 22px;
    }

    .process,
    .faq {
        padding: 56px 0;
    }

    .process-card {
        padding: 22px;
    }

    .faq-item summary {
        padding: 16px 18px;
    }

    .faq-item p {
        padding: 0 18px 18px;
    }

    .catalog-cta .btn {
        width: 100%;
    }

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

    .team__contacts {
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
    }

    .team__contact {
        width: 100%;
        min-width: 0;
        max-width: 360px;
    }

    .team-card__avatar {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

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

    .map__embed iframe.map__iframe {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 70vh;
    }

    .modal__content {
        padding: 24px 20px;
    }

    .gallery-modal {
        padding: 0;
    }

    .gallery-modal__content {
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 14px 10px 10px;
        border-radius: 0;
    }

    .gallery-modal__head {
        padding: 4px 48px 14px 4px;
    }

    .gallery-modal__stage > img {
        height: auto;
        max-height: calc(100vh - 150px);
    }

    .gallery-modal__arrow {
        width: 42px;
        height: 42px;
    }

    .gallery-modal__arrow--prev {
        left: 8px;
    }

    .gallery-modal__arrow--next {
        right: 8px;
    }

    .modal__close {
        width: 44px;
        height: 44px;
        top: 8px;
        right: 8px;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .review-card {
        padding: 20px;
    }

    .client-logo img {
        width: 110px;
    }

    .consent {
        font-size: 14px;
        gap: 12px;
    }

    .consent input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-top: 0;
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.96);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -6px 20px rgba(17,24,32,0.08);
    }

    .mobile-sticky-cta.is-hidden {
        display: none;
    }

    .mobile-sticky-cta .btn {
        min-height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .hero__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide {
        transition: none;
    }

    .property-card__photo--next,
    .property-card__photo--prev,
    .gallery-modal.active .modal__overlay,
    .gallery-modal__image--next,
    .gallery-modal__image--prev {
        animation: none;
    }
}

html {
    overflow-x: hidden;
}
