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

:root {
    --green: #21A038;
    --green-hover: #1A8A2E;
    --green-dark: #0D6B22;
    --green-darker: #064515;
    --green-light: #E8F5E9;
    --gold: #C9A84C;
    --gold-light: #F5ECD7;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #6B7280;
    --gray-light: #F7F8FA;
    --gray-border: #E5E7EB;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--wide {
    max-width: 1920px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--black);
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: 2px;
    margin: 14px auto 0;
}

.section__title--white::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.8), var(--gold));
}

.section__title--white {
    color: var(--white);
}

.section__subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

.section__subtitle--white {
    color: rgba(255,255,255,0.85);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #26B340, #21A038, #17802d);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(33,160,56,0.2);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #21A038, #1A8A2E, #0D6B22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33,160,56,0.35);
}

.btn--white {
    background: var(--white);
    color: var(--green);
    border: 2px solid var(--green);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn--white:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

.btn--outline:hover {
    background: var(--green);
    color: var(--white);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

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

/* ===== Topbar ===== */
.topbar {
    background: var(--green-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform var(--transition);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar__phone {
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.topbar__phone:hover {
    color: var(--gold);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow var(--transition), top var(--transition);
}

.header--scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.logo-accent {
    color: var(--green);
}

.header__nav {
    flex: 1;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.header__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition);
}

.header__link:hover {
    color: var(--green);
}

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

.header__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--black);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.header__cta {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

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

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

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

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

.burger.active {
    display: none;
}

/* ===== Hero ===== */
.hero {
    background: url('img/services/fon.png') center/cover no-repeat;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

/* Floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: particleFloat linear infinite;
    will-change: transform, opacity;
    contain: strict;
}

body.modal-open .particle {
    animation-play-state: paused;
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; top: 20%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { width: 10px; height: 10px; left: 25%; top: 60%; animation-duration: 15s; animation-delay: -3s; }
.particle:nth-child(3) { width: 4px; height: 4px; left: 45%; top: 30%; animation-duration: 10s; animation-delay: -5s; }
.particle:nth-child(4) { width: 8px; height: 8px; left: 60%; top: 75%; animation-duration: 14s; animation-delay: -2s; }
.particle:nth-child(5) { width: 5px; height: 5px; left: 75%; top: 15%; animation-duration: 11s; animation-delay: -7s; }
.particle:nth-child(6) { width: 12px; height: 12px; left: 85%; top: 50%; animation-duration: 16s; animation-delay: -4s; }
.particle:nth-child(7) { width: 7px; height: 7px; left: 35%; top: 85%; animation-duration: 13s; animation-delay: -6s; }
.particle:nth-child(8) { width: 9px; height: 9px; left: 55%; top: 10%; animation-duration: 17s; animation-delay: -1s; }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.6; }
    50% { transform: translateY(-120px) translateX(30px) scale(1.3); opacity: 0.3; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-240px) translateX(-20px) scale(1); opacity: 0; }
}

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

.hero__card {
    max-width: 760px;
    text-align: left;
    margin-left: 3em;
}

.hero__title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 28px;
    color: var(--dark);
    letter-spacing: -1.5px;
}

.hero__title-accent {
    color: #1c8f31;
}

.hero__subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__buttons .btn {
    padding: 14px 40px;
}

.hero__stats {
    display: flex;
    gap: 48px;
    padding: 24px 32px;
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.08);
    justify-content: center;
}

.hero__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__stat-icon svg {
    width: 52px;
    height: 52px;
}

.hero__stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    color: var(--dark);
    white-space: nowrap;
}

.hero__stat-number small {
    font-size: 0.65em;
    font-weight: 600;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: #555;
}

/* ===== Advantages ===== */
.advantages {
    background: var(--gray-light);
}

/* Bento Grid */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento__card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.bento__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.bento__card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.bento__card p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Hero card — spans 2 cols, green gradient */
.bento__card--hero {
    grid-column: span 2;
    background: linear-gradient(135deg, #21A038, #1A8A2E, #0D6B22);
    color: white;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px;
}

.bento__card--hero h3 {
    color: white;
    font-size: 1.25rem;
}

.bento__card--hero p {
    color: rgba(255,255,255,0.8);
}

.bento__big-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    flex-shrink: 0;
    color: white;
}

.bento__big-number span {
    color: rgba(255,255,255,0.4);
}

/* Accent card — green bg */
.bento__card--accent {
    background: var(--green);
    color: white;
}

.bento__card--accent h3 { color: white; }
.bento__card--accent p { color: rgba(255,255,255,0.85); }

/* Dark card */
.bento__card--dark {
    background: #1a1a1a;
    color: white;
    grid-column: span 2;
}

.bento__card--dark h3 { color: white; }
.bento__card--dark p { color: rgba(255,255,255,0.65); }

/* Wide card — full row */
.bento__card--wide {
    grid-column: span 4;
    padding: 32px 40px;
}

.bento__card-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
}

.bento__stat {
    text-align: center;
}

.bento__stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}

.bento__stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.bento__divider {
    width: 1px;
    height: 48px;
    background: #e0e0e0;
    flex-shrink: 0;
}

/* Icons */
.bento__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.bento__icon--green {
    background: #E8F5E9;
}

.bento__card--accent .bento__icon,
.bento__card--dark .bento__icon {
    background: rgba(255,255,255,0.15);
}

.bento__card--hero .bento__icon {
    background: rgba(255,255,255,0.15);
}

/* ===== Services ===== */
.services__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.services__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    background: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.25s;
}

.services__tab svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.25s;
}

.services__tab:hover {
    border-color: var(--green);
    color: var(--green);
}

.services__tab:hover svg {
    opacity: 0.8;
}

.services__tab.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.services__tab.active svg {
    opacity: 1;
    stroke: #fff;
}

.services__panel {
    display: none;
}

.services__panel.active {
    display: block;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.service-card__image {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.service-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.15) 0%, transparent 40%);
}

.service-card__image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__image::after {
    transform: scale(1.5);
}

.service-card__badge {
    background: var(--white);
    color: var(--green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-card__content {
    padding: 24px;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card__text {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-card__features {
    margin-bottom: 20px;
}

.service-card__features li {
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--gray);
    position: relative;
    padding-left: 20px;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* ===== Projects ===== */
.projects {
    background: var(--gray-light);
}

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

.projects__filter {
    padding: 10px 24px;
    border-radius: 24px;
    border: 2px solid var(--gray-border);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition);
}

.projects__filter:hover {
    border-color: var(--green);
    color: var(--green);
}

.projects__filter.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.project-card.hidden {
    display: none;
}

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

.project-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

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

.project-card__label {
    background: rgba(255,255,255,0.92);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-dark);
    z-index: 1;
}

.project-card__content {
    padding: 20px;
}

.project-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card__specs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.project-card__specs span {
    font-size: 0.75rem;
    color: var(--green-dark);
    padding: 3px 10px;
    background: var(--green-light);
    border-radius: 16px;
    white-space: nowrap;
}

.project-card__desc {
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-card__price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}

.project-card__location {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card__location::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.project-card__status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.92);
    padding: 4px 10px;
    z-index: 1;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    z-index: 1;
}

.project-card__status--gold {
    background: linear-gradient(135deg, #C9A84C, #E0C068);
    color: var(--white);
}

.project-card__image {
    height: 245px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #dcedc8;
    background-color: #e8f5e9;
}

.project-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.projects__show-more {
    display: none;
}

.projects__more {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.projects__count {
    font-size: 0.9375rem;
    color: var(--gray);
}

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

/* ===== Stages / Timeline ===== */
.stages {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--green), var(--green-light));
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    margin-bottom: 40px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__number {
    position: absolute;
    left: -60px;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #21A038, #0D6B22);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(33,160,56,0.3);
}

.timeline__content {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.timeline__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green);
}

.timeline__content p {
    color: var(--gray);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ===== Calculator ===== */
.calculator {
    background: var(--gray-light);
}

.calculator__wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.calculator__form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.calc-group {
    margin-bottom: 28px;
}

.calc-group:last-child {
    margin-bottom: 0;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.calc-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.calc-radio-group--small {
    grid-template-columns: repeat(3, 1fr);
}

.calc-radio {
    cursor: pointer;
}

.calc-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-radio__box {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    line-height: 1.4;
}

.calc-radio__icon {
    flex-shrink: 0;
    opacity: 0.5;
}

.calc-radio__box {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-align: left !important;
}

.calc-radio input:checked + .calc-radio__box .calc-radio__icon {
    opacity: 1;
    color: var(--green);
}

.calc-radio__box small {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.8125rem;
}

.calc-radio input:checked + .calc-radio__box {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

.calc-radio input:focus-visible + .calc-radio__box {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.calc-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-border);
    border-radius: 3px;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.calc-slider__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--gray);
}

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

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
}

.calc-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-checkbox__box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-border);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
}

.calc-checkbox input:checked + .calc-checkbox__box {
    background: var(--green);
    border-color: var(--green);
}

.calc-checkbox input:checked + .calc-checkbox__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calc-checkbox input:focus-visible + .calc-checkbox__box {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.calculator__result {
    position: sticky;
    top: 96px;
}

.calc-result-card {
    background: linear-gradient(135deg, #21A038, #1A8A2E, #0D6B22);
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.calc-result-card h3 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.calc-result-card__price {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.calc-result-card__note {
    font-size: 0.8125rem;
    opacity: 0.75;
    margin-bottom: 20px;
    line-height: 1.4;
}

.calc-result-card__summary {
    text-align: left;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.calc-result-card__summary li {
    padding: 6px 0;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
}

.calc-result-card__summary li + li {
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* ===== Mortgage ===== */
.mortgage {
    background: linear-gradient(135deg, #F0FFF4 0%, #E8F5E9 50%, #F7F8FA 100%);
}

.mortgage__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.mortgage__badge {
    display: inline-block;
    background: #21A038;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.mortgage__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.mortgage__rate {
    color: #21A038;
    font-size: 2.4rem;
}

.mortgage__subtitle {
    color: #4B5563;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 28px;
}

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

.mortgage__feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mortgage__feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(33,160,56,0.1);
}

.mortgage__feature strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mortgage__feature span {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.4;
}

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

.mortgage__banks {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.mortgage__banks-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.mortgage__banks-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mortgage__bank {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    transition: all 0.2s;
}

.mortgage__bank:hover {
    border-color: #BBF0C5;
    background: #FAFFFE;
}

.mortgage__bank-logo {
    width: 80px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: hidden;
}
.mortgage__bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}
.mortgage__bank-logo--center img {
    object-position: center center;
}

.mortgage__bank strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.mortgage__bank span {
    font-size: 0.82rem;
    color: #21A038;
    font-weight: 600;
}

.mortgage__banks-note {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 14px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .mortgage__wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .mortgage__features {
        grid-template-columns: 1fr;
    }
    .mortgage__title { font-size: 1.6rem; }
    .mortgage__rate { font-size: 2rem; }
}

/* ===== Reviews ===== */
.reviews {
    background: var(--white);
}

.reviews__carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.reviews__carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green);
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    line-height: 1;
    color: var(--green-light);
    font-family: Georgia, serif;
}

.review-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-card__text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 24px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.review-card__name {
    font-weight: 600;
}

.review-card__city {
    font-size: 0.875rem;
    color: var(--gray);
}

.reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--black);
    transition: all var(--transition);
    box-shadow: var(--shadow);
    z-index: 2;
}

.reviews__arrow:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.reviews__arrow--prev {
    left: -56px;
}

.reviews__arrow--next {
    right: -56px;
}

/* ===== About ===== */
.about {
    background: var(--gray-light);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__text p {
    margin-bottom: 16px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

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

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about__stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about__stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), #4cdf5c);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

.about__stat-card:hover::before {
    transform: scaleX(1);
}

.about__stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    display: inline;
}

.about__stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    display: inline;
}

.about__stat-label {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-top: 4px;
}

/* ===== Promo ===== */
.promo {
    background: var(--white);
    padding: 0;
    margin-bottom: 60px;
}

.promo__card {
    position: relative;
    background: linear-gradient(135deg, #0b5e2a 0%, #1a8a3e 30%, #3bb55a 60%, #7ecf5c 100%);
    border-radius: 24px;
    padding: 56px 48px;
    overflow: hidden;
    color: #fff;
}

.promo__card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,220,50,0.2) 0%, rgba(255,180,0,0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: promoSunGlow 6s ease-in-out infinite;
}

@keyframes promoSunGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.promo__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,80,20,0.25) 0%, transparent 100%);
    pointer-events: none;
}

.promo__flames {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.promo__flame {
    position: absolute;
    border-radius: 50%;
    animation: promoFloat 8s ease-in-out infinite;
}

.promo__flame--1 { width: 220px; height: 220px; top: -60px; right: 15%; background: radial-gradient(circle, rgba(255,230,80,0.15) 0%, transparent 70%); animation-delay: 0s; }
.promo__flame--2 { width: 160px; height: 160px; bottom: -20px; left: 8%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); animation-delay: 2.5s; }
.promo__flame--3 { width: 120px; height: 120px; top: 30%; right: 40%; background: radial-gradient(circle, rgba(255,200,50,0.1) 0%, transparent 70%); animation-delay: 5s; }

@keyframes promoFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.12); opacity: 1; }
}

.promo__sun {
    position: absolute;
    top: -30px;
    right: 60px;
    opacity: 0.8;
    animation: promoSunSpin 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes promoSunSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.promo__content {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.promo__left {
    flex: 1;
}

.promo__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.promo__percent {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 2px 14px;
    border-radius: 10px;
    font-size: 2.6rem;
}

.promo__desc {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 520px;
}

.promo__desc strong {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
}

.promo__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.promo__features svg {
    flex-shrink: 0;
}

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

.promo__cta {
    font-size: 1.05rem;
    padding: 16px 36px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.promo__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,180,0,0.4);
    background: linear-gradient(135deg, #FFE44D 0%, #FFB733 100%);
}

.promo__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.promo__phone:hover { opacity: 1; }

.promo__phone svg { filter: brightness(100); }

.promo__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.promo__discount-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px dashed rgba(255,215,0,0.5);
    background: rgba(255,215,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: promoPulse 3s ease-in-out infinite;
}

@keyframes promoPulse {
    0%, 100% { transform: scale(1); border-color: rgba(255,215,0,0.4); }
    50% { transform: scale(1.05); border-color: rgba(255,215,0,0.8); }
}

.promo__discount-value {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.promo__discount-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
    line-height: 1.3;
}

.promo__timer {
    text-align: center;
}

.promo__timer-label {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo__timer-blocks {
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo__timer-block {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 56px;
    text-align: center;
}

.promo__timer-block span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.promo__timer-block small {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.promo__timer-sep {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.4;
}

/* ===== Promo Popup ===== */
.promo-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 360px;
    background: linear-gradient(135deg, #0b5e2a 0%, #1a8a3e 50%, #7ecf5c 100%);
    border-radius: 20px;
    padding: 28px 24px 24px;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    animation: promoPopupSlide 0.5s ease-out;
}

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

.promo-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.promo-popup__close:hover {
    background: rgba(255,255,255,0.3);
}

.promo-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,215,0,0.2);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #ffe066;
}

.promo-popup__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.promo-popup__title span {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-popup__desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 14px;
    line-height: 1.4;
}

.promo-popup__desc strong {
    color: #ffe066;
}

.promo-popup__timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.promo-popup__timer-block {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 46px;
}

.promo-popup__timer-block span {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.promo-popup__timer-block small {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.promo-popup__timer-sep {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.4;
}

.promo-popup__cta {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #064515 !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-popup__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,215,0,0.4);
}

.promo-popup__link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.promo-popup__link:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .promo-popup {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* ===== FAQ ===== */
.faq {
    background: var(--white);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.faq__item:hover {
    border-color: var(--gray-border);
    border-left-color: var(--green);
    box-shadow: var(--shadow);
}

.faq__item.active {
    border-left-color: var(--green);
    border-color: var(--green-light);
    background: var(--green-light);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq__icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray);
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
    color: var(--green);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq__answer p {
    padding: 0 24px 20px;
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ===== Contacts ===== */
.contacts {
    background: linear-gradient(135deg, #21A038, #1A8A2E, #0D6B22);
    color: var(--white);
}

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

.contacts__form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    color: var(--black);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--black);
    transition: border-color var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
}

.form-input.error {
    border-color: #E53935;
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
}

.form-error {
    display: none;
    color: #E53935;
    font-size: 0.8125rem;
    margin-top: 4px;
}

.form-input.error ~ .form-error {
    display: block;
}

.form-submit {
    width: 100%;
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.form-success h3 {
    font-size: 1.25rem;
    margin: 16px 0 8px;
    color: var(--black);
}

.form-success p {
    color: var(--gray);
}

.contacts__info {
    padding-top: 12px;
}

.contacts__block {
    margin-bottom: 28px;
}

.contacts__block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contacts__block p {
    opacity: 0.9;
    line-height: 1.6;
}

.contacts__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contacts__list a {
    opacity: 0.9;
    transition: opacity var(--transition);
}

.contacts__list a:hover {
    opacity: 1;
}

.contacts__social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, #0D6B22 0%, #21A038 40%, #1A8A2E 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.cta-banner::after {
    content: '';
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.cta-banner__text {
    color: var(--white);
}

.cta-banner__text h2, .cta-banner__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.cta-banner__text p {
    opacity: 0.85;
    font-size: 1.0625rem;
}

/* ===== Team ===== */
.team {
    background: var(--white);
}

.team__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Leader — big card left, stretches full height */
.team-leader {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.team-leader:hover {
    background: var(--white);
    border-color: var(--green-light);
    box-shadow: var(--shadow-lg);
}
.team-leader__avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--green-light);
    overflow: hidden;
    border: 4px solid var(--green);
}
.team-leader__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-leader__name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--black);
}
.team-leader__role {
    font-size: 1rem;
    color: var(--gray);
}

/* Left column: leader + join block */
.team-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Second card in left column */
.team-left__second {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Members — 2 per row on the right */
.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== BIMx 3D Section ===== */
.bimx {
    background: #fff;
    overflow: hidden;
}

.bimx__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.bimx__visual {
    position: relative;
}

.bimx__screen {
    background: linear-gradient(135deg, #F7F8FA 0%, #EDF2F7 100%);
    border-radius: 16px;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}

.bimx__screen-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.bimx__house {
    width: 100%;
    height: 100%;
}

.bimx__screen-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(33, 160, 56, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.bimx__devices {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.bimx__devices span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6B7280;
    font-weight: 500;
}

.bimx__content {
    max-width: 540px;
}

.bimx__label {
    display: inline-block;
    background: linear-gradient(135deg, #21A038, #18C94A);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bimx__title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.bimx__title em {
    font-style: normal;
    color: #21A038;
}

.bimx__text {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.65;
    margin-bottom: 24px;
}

.bimx__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.bimx__feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bimx__feat svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.bimx__feat span {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.45;
}

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

.bimx__app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #21A038;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bimx__app-link:hover {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .bimx__wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bimx__content {
        max-width: 100%;
    }
    .bimx__screen {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .bimx__title {
        font-size: 1.45rem;
    }
    .bimx__devices {
        gap: 12px;
    }
    .bimx__devices span {
        font-size: 0.75rem;
    }
}

.team-card {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
}

.team-card:hover {
    background: var(--white);
    border-color: var(--green-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.team-card__avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    position: relative;
    border-radius: 50%;
    background: var(--green-light);
    overflow: hidden;
    border: 3px solid var(--green);
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-card:hover .team-card__avatar img {
    filter: grayscale(0%);
}

.team-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--black);
}

.team-card__role {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.team-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-card__contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--green);
    font-weight: 500;
    transition: color var(--transition);
}

.team-card__contacts a:hover {
    color: var(--green-hover);
}

/* ===== Contacts specialists ===== */
.contacts__specialists {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts__specialists li {
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid rgba(255,255,255,0.3);
}

.contacts__specialists li strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.contacts__specialists li span {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.65;
    margin-bottom: 6px;
}

.contacts__specialists li a {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 500;
    transition: opacity var(--transition);
}

.contacts__specialists li a:hover {
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-darker) 100%);
    color: var(--white);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__desc {
    opacity: 0.75;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__nav li {
    margin-bottom: 8px;
}

.footer__nav a {
    opacity: 0.75;
    font-size: 0.9375rem;
    transition: opacity var(--transition);
}

.footer__nav a:hover {
    opacity: 1;
}

.footer__contacts li {
    opacity: 0.75;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer__contacts a {
    opacity: 1;
    transition: opacity var(--transition);
}

.footer__contacts a:hover {
    opacity: 0.9;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer__social .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background var(--transition);
}

.footer__social .social-link:hover {
    background: rgba(255,255,255,0.2);
}

.footer__legal li {
    font-size: 0.85rem;
}

.footer__legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer__disclaimer {
    font-size: 0.8rem;
    margin-top: 6px;
    opacity: 0.7;
}

/* Consent checkbox */
.form-consent {
    display: block;
    font-size: 0.82rem;
    color: #6B7280;
    margin: 12px 0 4px;
    cursor: pointer;
    line-height: 1.4;
}

.form-consent input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
    accent-color: var(--green);
}

.form-consent a {
    color: var(--green);
    text-decoration: underline;
}

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

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

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

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

.modal__content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal__content > p {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all var(--transition);
}

.modal__close:hover {
    background: var(--gray-border);
    color: var(--black);
}

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

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Floating call button — hidden on desktop */
.floating-call {
    display: none;
}

.header__nav-contacts {
    display: none;
}

.header__mobile-actions {
    display: none;
}

.header__nav-top {
    display: none;
}

.header__nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
    .topbar__left {
        gap: 16px;
    }

    .header__menu {
        gap: 16px;
    }

    .header__phone {
        display: none;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__stats {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .bento__card--hero {
        grid-column: span 2;
    }

    .bento__card--wide {
        grid-column: span 2;
    }

    .bento__card--dark {
        grid-column: span 2;
    }

    .bento__big-number {
        font-size: 3.5rem;
    }

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

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

    .calculator__result {
        position: static;
    }

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

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

    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .reviews__arrow--prev {
        left: -10px;
    }

    .reviews__arrow--next {
        right: -10px;
    }

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

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header {
        top: 0;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        transition: right var(--transition);
        z-index: 1000;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .header__nav.open {
        right: 0;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 55px 24px 0;
        margin: 0;
        list-style: none;
    }

    .header__menu li {
        width: 100%;
        flex-shrink: 0;
    }

    .header__link {
        display: block;
        padding: 14px 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--gray-border);
    }

    .header__cta {
        display: none;
    }

    .header__nav-contacts {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px 24px 24px;
        flex-shrink: 0;
        border-top: 1px solid var(--gray-border);
    }

    .header__nav-phone,
    .header__nav-email {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--dark);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
    }

    .header__nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .burger {
        display: flex;
    }

    .header__mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header__nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 24px 16px;
        flex-shrink: 0;
        border-bottom: 1px solid var(--gray-border);
    }

    .header__nav-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: var(--dark);
    }

    .header__nav-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--dark);
        font-weight: 700;
        font-size: 1.125rem;
    }

    .header__nav-logo img {
        width: 32px;
        height: 32px;
    }

    .header__mobile-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(33, 160, 56, 0.1);
    }

    .hero {
        padding: 110px 0 50px;
        min-height: auto;
        background-position: center right 30%;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        display: block;
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.85) 0%,
            rgba(255,255,255,0.7) 60%,
            rgba(255,255,255,0.5) 100%
        );
        z-index: 1;
    }

    .hero__card {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 24px;
        padding: 21px 6px;
        justify-content: center;
    }

    .hero__stat {
        gap: 6px;
    }

    .hero__stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .hero__stat-number {
        font-size: 1.1rem;
        line-height: 0.6;
    }

    .hero__stat-label {
        font-size: 0.65rem;
        line-height: 0.6;
    }

    .hero__buttons .btn {
        padding: 12px 28px;
    }

    .hero__buttons {
        margin-bottom: 32px;
    }

    .team .container {
        position: relative;
    }
    .team .container::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100px;
        height: calc(100% - 80px);
        top: auto;
        pointer-events: none;
        background: linear-gradient(to left, var(--white) 0%, transparent 100%);
        z-index: 2;
        transition: opacity 0.3s;
    }
    .team .container.scrolled-end::after {
        opacity: 0;
    }
    .team__grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 12px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .team__grid::-webkit-scrollbar {
        display: none;
    }
    .team__grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .team-left {
        display: contents;
    }
    .team-members {
        display: contents;
    }
    .team__grid .team-leader,
    .team__grid .team-card {
        min-width: 200px;
        max-width: 200px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .team-leader__avatar {
        width: 120px;
        height: 120px;
    }
    .team-card__avatar {
        width: 120px;
        height: 120px;
    }

    .cta-banner__text h2, .cta-banner__title {
        font-size: 1.375rem;
    }

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

    .bento__card--hero,
    .bento__card--wide,
    .bento__card--dark {
        grid-column: span 1;
    }

    .bento__big-number {
        font-size: 2.5rem;
    }

    .bento__card {
        padding: 22px;
    }

    .promo__card {
        padding: 36px 24px;
        border-radius: 18px;
    }

    .promo__content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .promo__title {
        font-size: 1.6rem;
    }

    .promo__percent {
        font-size: 1.8rem;
        padding: 2px 10px;
    }

    .promo__desc {
        font-size: 0.95rem;
    }

    .promo__features {
        align-items: flex-start;
        text-align: left;
    }

    .promo__features li {
        font-size: 0.88rem;
    }

    .promo__actions {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

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

    .promo__discount-circle {
        width: 140px;
        height: 140px;
    }

    .promo__discount-value {
        font-size: 2.4rem;
    }

    .promo__badge {
        font-size: 0.78rem;
    }

    .bento__card-row {
        flex-direction: column;
        gap: 16px;
    }

    .bento__divider {
        width: 80%;
        height: 1px;
    }

    .bento__stat-num {
        font-size: 1.75rem;
    }

    .services__tabs {
        gap: 6px;
    }

    .services__tab {
        padding: 8px 14px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .services__tab svg {
        width: 16px;
        height: 16px;
    }

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

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

    .projects__grid .project-card:not(.hidden) ~ .project-card--show-limit {
        display: none;
    }

    .projects__show-more {
        display: block;
        margin: 24px auto 0;
    }

    .projects__show-more.is-hidden {
        display: none;
    }

    .calc-radio-group {
        grid-template-columns: 1fr;
    }

    .calc-radio-group--small {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .reviews__arrow {
        display: none;
    }

    .timeline {
        padding-left: 48px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline__number {
        left: -48px;
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .floating-call {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        background: var(--green);
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(33,160,56,0.4);
        z-index: 999;
        transition: transform 0.2s ease;
    }

    .floating-call:hover {
        transform: scale(1.1);
    }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 48px 0;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .hero__buttons {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .btn {
        padding: 12px 24px;
    }

    .btn--lg {
        padding: 14px 28px;
    }

    .calc-radio-group--small {
        grid-template-columns: 1fr;
    }

    .calc-result-card__price {
        font-size: 1.75rem;
    }

    .contacts__form-wrapper {
        padding: 24px;
    }

    .modal__content {
        padding: 28px;
        width: 95%;
    }

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

    .projects__filters {
        gap: 6px;
    }

    .projects__filter {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    .team__grid .team-leader,
    .team__grid .team-card {
        min-width: 180px;
        max-width: 180px;
    }

    .gallery-modal__content {
        width: 98%;
        max-height: 95vh;
        padding: 16px;
    }

    .gallery-modal__main-image {
        height: 250px;
    }

    .gallery-modal__specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-modal__nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .hero__stats {
        gap: 12px;
        padding: 14px 10px;
        border-radius: 12px;
    }

    .hero__stat {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .hero__stat-icon {
        display: none;
    }

    .hero__stat-number {
        font-size: 0.95rem;
        line-height: 1;
        white-space: nowrap;
    }

    .hero__stat-label {
        font-size: 0.6rem;
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* ===== Gallery Modal ===== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    contain: layout style;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.gallery-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.gallery-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    color: #333;
}

.gallery-modal__close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.gallery-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.gallery-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gallery-modal__badge {
    padding: 4px 12px;
    background: var(--green);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.gallery-modal__body {
    margin-bottom: 24px;
}

.gallery-modal__main-image {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: grab;
    user-select: none;
}

.gallery-modal__main-image:active {
    cursor: grabbing;
}

.gallery-modal__track {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(-33.333%);
}

.gallery-modal__img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    pointer-events: none;
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-modal__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-modal__nav--prev { left: 12px; }
.gallery-modal__nav--next { right: 12px; }

.gallery-modal__counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-modal__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.gallery-modal__thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-modal__thumb {
    scroll-snap-align: center;
}

.gallery-modal__thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.gallery-modal__thumb.active {
    border-color: var(--green);
    opacity: 1;
}

.gallery-modal__thumb:hover {
    opacity: 1;
}

.gallery-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal__info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.gallery-modal__desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.gallery-modal__spec {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.gallery-modal__spec-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.gallery-modal__spec-value {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.gallery-modal__cta {
    width: 100%;
}

.gallery-modal__bimx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-top: 10px;
    margin-right: 24px;
    width: fit-content;
    background: none;
    border: none;
    color: #1A1A1A;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-modal__bimx-btn:hover {
    color: #21A038;
}
.gallery-modal__bimx-btn svg {
    stroke: #21A038;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gallery-modal__main-image {
        height: 280px;
    }

    .gallery-modal__specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-modal__title {
        font-size: 1.2rem;
    }
}

/* ===== Scroll to top ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(33, 160, 56, 0.85);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 900;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: rgba(33, 160, 56, 1);
    box-shadow: 0 4px 20px rgba(33, 160, 56, 0.35);
}
.scroll-top svg {
    width: 20px;
    height: 20px;
}
@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}