/* ===== CSS Variables ===== */
:root {
    --color-primary: #18181b;
    --color-primary-light: #27272a;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-accent-light: rgba(245, 158, 11, 0.15);
    --color-dark: #09090b;
    --color-text: #3f3f46;
    --color-text-light: #71717a;
    --color-text-muted: #a1a1aa;
    --color-bg: #fafafa;
    --color-bg-alt: #f4f4f5;
    --color-white: #ffffff;
    --color-border: #e4e4e7;
    --color-success: #22c55e;
    
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-accent: 0 4px 20px rgba(245, 158, 11, 0.35);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: inherit;
    animation: shineMoveFirst 2s infinite linear;
}

.btn--primary * {
    position: relative;
    z-index: 2;
}

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

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

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

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

.btn--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn--dark:hover {
    background: var(--color-primary-light);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 16px;
}

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

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-accent-light);
    color: var(--color-accent-hover);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.section-header--light .section-tag {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-accent);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-header--light .section-title {
    color: var(--color-white);
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
}

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

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 40px;
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: var(--color-dark);
}

.logo__accent {
    color: var(--color-accent);
}

.nav {
    display: flex;
    gap: 36px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

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

.header__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-dark);
}

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

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

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 20px;
    overflow: hidden;
    background: var(--color-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9,9,11,0.7) 0%, rgba(9,9,11,0.4) 50%, rgba(9,9,11,0.6) 100%);
}

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

.hero__text {
    max-width: 680px;
}

.hero__title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.2;
    animation: fadeUp 0.8s ease forwards;
}

.hero__title .accent {
    display: block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero__desc {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin-bottom: 36px;
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero__triggers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    padding: 0 20px;
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.trigger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.trigger__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    color: var(--color-dark);
    flex-shrink: 0;
}

.trigger span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.hero__buttons {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
    overflow: visible;
}

.hero__buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero__buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

.hero__buttons .btn:first-child::before {
    animation: shineMoveFirst 2s infinite linear;
    animation-delay: 0s;
}

.hero__buttons .btn:last-child::before {
    animation: shineMoveSecond 2s infinite linear;
    animation-delay: 0.3s;
}

.hero__buttons .btn * {
    position: relative;
    z-index: 2;
}

.hero__wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    animation: fadeUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero__wa svg {
    color: #25D366;
}

.hero__wa:hover {
    color: var(--color-white);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes shineMoveFirst {
    0% {
        left: -100%;
    }
    37.5% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shineMoveSecond {
    0% {
        left: -100%;
    }
    37.5% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4);
    }
}

@keyframes pulseBlur {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: var(--color-accent);
}

.service-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}


.service-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card__content .btn {
    margin-top: auto;
}

.service-card__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== Why Us ===== */
.why-us {
    padding: 100px 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
}

.why-card__number {
    font-family: var(--font-heading);
    font-size: 52px;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 12px;
}

.why-card__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.why-card__icon svg {
    color: var(--color-accent);
}

.why-card__title {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.why-card__text {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

.why-us__cta {
    text-align: center;
}

.why-us__cta .btn {
    position: relative;
    overflow: hidden;
}

.why-us__cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: inherit;
    animation: shineMoveFirst 2s infinite linear;
}

.why-us__cta .btn * {
    position: relative;
    z-index: 2;
}

/* ===== Scenarios ===== */
.scenarios {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

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

.scenario-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(245, 158, 11, 0.01) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}


.scenario-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}

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


.scenario-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--color-accent);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.scenario-card__icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.scenario-card:hover .scenario-card__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, rgba(245, 158, 11, 0.8) 100%);
    color: var(--color-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.scenario-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-dark);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.scenario-card__text {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
    flex: 1;
    position: relative;
    z-index: 1;
}

.scenario-card .btn {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* ===== Portfolio ===== */
.portfolio {
    padding: 2ch 0;
    background: var(--color-white);
}

.portfolio__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg);
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-btn:hover {
    color: var(--color-dark);
    border-color: var(--color-border);
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-dark);
}

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

.portfolio-item.hidden-more {
    display: none;
}

.portfolio__grid.show-all .portfolio-item.hidden-more:not(.hidden) {
    display: block;
}

.portfolio__show-more {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 48px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-item__overlay {
    opacity: 1;
}

.portfolio-item:hover img,
.portfolio-item:focus img {
    transform: none;
}

.portfolio-item__tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    width: fit-content;
}

.portfolio-item__info {
    color: var(--color-white);
    font-size: 13px;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio__cta {
    text-align: center;
}

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

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

.process-step {
    position: relative;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.process__cta {
    text-align: center;
}

.process__cta .btn {
    position: relative;
    overflow: hidden;
}

.process__cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: inherit;
    animation: shineMoveFirst 2s infinite linear;
}

.process__cta .btn * {
    position: relative;
    z-index: 2;
}

/* ===== Guarantees ===== */
.guarantees {
    padding: 100px 0;
    background: var(--color-white);
}

.guarantees__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.guarantees__list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantees__list li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.guarantees__list li:hover {
    border: 2px solid var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}


.guarantees__list svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.guarantees__list li:hover svg {
    background: linear-gradient(135deg, var(--color-accent) 0%, #fbbf24 100%);
    color: var(--color-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.guarantees__list span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    transition: color var(--transition);
}

.guarantees__list li:hover span {
    color: var(--color-dark);
}

.guarantees__content .btn--outline {
    background: var(--color-accent);
    color: var(--color-dark);
    border: none;
    padding: 18px 36px;
    font-size: 16px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.guarantees__content .btn--outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: inherit;
    animation: shineMoveFirst 2s infinite linear;
}

.guarantees__content .btn--outline * {
    position: relative;
    z-index: 2;
}

.guarantees__content .btn--outline:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.guarantees__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    align-items: stretch;
}

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

/* ===== Calculator ===== */
.calculator {
    padding: 100px 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.calculator__info .section-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-accent);
}

.calculator__info .section-title {
    color: var(--color-white);
}

.calculator__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    line-height: 1.7;
}

.calculator__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

.benefit svg {
    color: var(--color-accent);
}

.calculator__form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 50;
}

/* Page calculator steps styling */
.calculator__form-wrapper .calc-form--steps {
    max-width: 100%;
}

.calculator__form-wrapper .calc-step.active {
    position: relative;
    z-index: 51;
}

.calculator__form-wrapper .calc-steps__progress {
    margin-bottom: 32px;
    padding-bottom: 24px;
    align-items: center;
}

.calculator__form-wrapper .calc-steps__progress-item {
    align-items: center;
}

.calculator__form-wrapper .calc-steps__progress-label {
    display: none;
}

.calculator__form-wrapper .calc-steps__progress-line {
    align-self: center;
    margin-top: 0;
}

.calculator__form-wrapper .calc-step__title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.calculator__form-wrapper .object-type-option {
    padding: 20px;
}

.calculator__form-wrapper .object-type-option__icon {
    width: 52px;
    height: 52px;
}

.calculator__form-wrapper .additional-element-option {
    padding: 20px;
}

.calculator__form-wrapper .additional-element-option__icon {
    width: 52px;
    height: 52px;
}

.calculator__form-wrapper .calc-step .form-group--checkbox {
    margin-top: 24px;
}

/* ===== Forms ===== */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 16px 18px;
    font-size: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.form-group--checkbox,
.form-group--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}

.checkbox-label input,
.radio-label input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--color-white);
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: var(--color-accent);
}

.checkbox-label input:checked + .checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-label input:checked + .radio-mark {
    border-color: var(--color-accent);
}

.radio-label input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.form-privacy {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

.checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: var(--transition);
}

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

/* ===== Calculator Steps ===== */
.calc-form--steps {
    position: relative;
}

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

.fence-preview {
    width: 100%;
    height: 60px;
    position: relative;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

/* Горизонтальные лаги (2 чёрные палки) */
.fence-preview__rail {
    position: absolute;
    left: 8px;
    width: 0%;
    height: 5px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: width 0.2s ease-out;
}

.fence-preview__rail--top {
    top: 10px;
}

.fence-preview__rail--bottom {
    bottom: 12px;
}

/* Контейнер штакетников */
.fence-preview__pickets {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 3;
}

/* Штакетник */
.fence-picket {
    width: 2%;
    height: 85%;
    background: linear-gradient(90deg, #3a3a3a 0%, #5a5a5a 30%, #4a4a4a 70%, #2a2a2a 100%);
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.2s ease-out;
    box-shadow: 1px 0 2px rgba(0,0,0,0.25);
    position: relative;
}

/* Верхушка штакетника (треугольная) */
.fence-picket::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: inherit;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Штакетник виден */
.fence-picket.visible {
    transform: translateY(0);
}

/* Трава внизу */
.fence-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    z-index: 4;
}

.fence-slider__value {
    font-size: 16px;
    color: #000;
    text-align: center;
    font-weight: 800;
}

.fence-slider__unit {
    font-weight: 700;
}

/* Range styling */
.fence-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    accent-color: auto;
}

.fence-slider input[type="range"]:focus,
.fence-slider input[type="range"]:focus-visible {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.fence-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(9, 9, 11, 0.08);
    border-radius: 999px;
}

.fence-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-accent);
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    margin-top: -5px;
    cursor: pointer;
}

.fence-slider input[type="range"]::-moz-range-track {
    height: 8px;
    background: rgba(9, 9, 11, 0.08);
    border-radius: 999px;
}

.fence-slider input[type="range"]::-moz-range-thumb {
    width: 38px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-accent);
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    cursor: pointer;
}

.fence-slider input[type="range"]::-moz-focus-outer {
    border: 0;
}

.calc-steps__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.calc-steps__progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.calc-steps__progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.calc-steps__progress-item.active .calc-steps__progress-number {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.calc-steps__progress-item.completed .calc-steps__progress-number {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-white);
}

.calc-steps__progress-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    transition: var(--transition);
}

.calc-steps__progress-item.active .calc-steps__progress-label {
    color: var(--color-accent);
    font-weight: 600;
}

.calc-steps__progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 10px;
    align-self: center;
    transition: var(--transition);
}

.calc-steps__progress-item.completed ~ .calc-steps__progress-line,
.calc-steps__progress-item.active ~ .calc-steps__progress-line {
    background: var(--color-accent);
}

.calc-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.calc-step input,
.calc-step select,
.calc-step textarea {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.calc-step.active input,
.calc-step.active select,
.calc-step.active textarea {
    pointer-events: auto !important;
}

#page_calc_name,
#page_calc_phone {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-step__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.calc-step__actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-end;
}

.calc-step__actions .btn {
    flex: 1;
    max-width: 200px;
}

@media (max-width: 768px) {
    .calc-steps__progress {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .calc-steps__progress-line {
        display: none;
    }
    
    /* Полоски в модальном окне всегда отображаются */
    .modal__content .calc-steps__progress-line {
        display: block;
    }
    
    .calc-steps__progress-item {
        flex: 0 0 calc(50% - 8px);
    }
    
    .calc-steps__progress-label {
        font-size: 11px;
    }
    
    .calc-step__actions {
        flex-direction: column;
    }
    
    .calc-step__actions .btn {
        max-width: 100%;
    }
}

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

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

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
    color: var(--color-dark);
}

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

.faq-item__question svg {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--color-accent);
}

.faq-item.active .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 200px;
}

.faq-item__answer p {
    padding: 0 24px 22px;
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "image content"
        "image stats";
    column-gap: 60px;
    row-gap: 36px;
    align-items: start;
}

.about__image {
    grid-area: image;
    /* Make PNG truly look transparent: remove card frame & clipping */
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.about__content {
    grid-area: content;
}

.about__image img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.about__text {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__stats {
    grid-area: stats;
    display: flex;
    gap: 40px;
    margin-top: 0;
    padding-top: 36px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--color-accent);
    line-height: 1;
}

.stat__label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ===== Reviews Section ===== */
.reviews {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-light) 0%, #fafafa 100%);
}

.reviews .section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.review-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.review-card::before {
    content: none;
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 72px;
    font-family: Georgia, serif;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__avatar span {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.review-card__info {
    flex: 1;
    min-width: 0;
}

.review-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 4px 0;
}

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

.review-card__rating {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.review-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 16px 0;
    flex: 1;
}

.review-card__date {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.reviews__actions {
    text-align: center;
    margin-top: 40px;
}

/* ===== Contacts ===== */
.contacts {
    padding: 100px 0;
    background: var(--color-bg);
}

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

.contacts__desc {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

/* Desktop/tablet layout for the icon links wrapper (mobile overrides in `mobile.css`) */
.contacts__icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Phone link full width, WA + TG in two columns */
.contacts__icons > a.contact-item:first-child {
    grid-column: 1 / -1;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

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

.contact-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item__icon svg {
    color: var(--color-dark);
}

.contact-item__icon--wa {
    background: #25D366;
}

.contact-item__icon--wa svg {
    color: var(--color-white);
}

.contact-item__icon--tg {
    background: #0088cc;
}

.contact-item__icon--tg svg {
    color: var(--color-white);
}

.contact-item__label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-item__value {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 15px;
}

.contacts__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

.contacts__map iframe {
    border: none;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background: var(--color-dark);
    color: var(--color-white);
}

.footer .logo__text {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.footer .logo__accent {
    color: var(--color-accent);
}

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

.footer__logo p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

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

.footer__copy {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

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

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

.modal__content {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
}

@media (max-height: 760px) {
    .modal__content:has(.calc-form--steps) {
        padding: 22px 26px 20px;
    }
    .modal__body h3 {
        font-size: 22px;
    }
    .modal__body > p {
        margin-bottom: 14px;
    }
    .modal__content .calc-steps__progress {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
}

.modal__content:has(.calc-form--steps) {
    max-width: 600px;
    overflow: hidden;
    padding: 28px 32px 26px;
}

.modal__content .calc-form--steps {
    max-width: 100%;
}

.modal__content .calc-form--steps ~ * {
    max-width: 100%;
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

/* ===== Portfolio Slider ===== */
.portfolio-slider {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.portfolio-slider.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-slider__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.portfolio-slider__content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
    padding: 0;
    box-sizing: border-box;
}

.portfolio-slider.active .portfolio-slider__content {
    transform: translateY(0) scale(1);
}

.portfolio-slider__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
}

.portfolio-slider__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.portfolio-slider__prev,
.portfolio-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
}

.portfolio-slider__prev {
    left: 10px;
}

.portfolio-slider__next {
    right: 10px;
}

.portfolio-slider__prev:hover,
.portfolio-slider__next:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-slider__image-container {
    position: relative;
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
}

.portfolio-slider__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.portfolio-slider__info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    max-width: 90%;
}

.portfolio-slider__tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.portfolio-slider__info-text {
    color: var(--color-white);
    font-size: 16px;
    margin: 0;
}

.portfolio-slider__counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 12px;
}

.portfolio-slider__thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px 0 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
}

.portfolio-slider__thumbnails::-webkit-scrollbar {
    height: 6px;
}

.portfolio-slider__thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.portfolio-slider__thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.portfolio-slider__thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.portfolio-slider__thumbnail:hover {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.3);
}

.portfolio-slider__thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent);
}

.portfolio-slider__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .portfolio-slider__content {
        padding: 0;
    }
    
    .portfolio-slider__prev {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .portfolio-slider__next {
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .portfolio-slider__close {
        top: 10px;
        right: 10px;
    }
    
    .portfolio-slider__image-container {
        height: 90vh;
    }
}

@media (max-width: 768px) {
    .portfolio-slider__content {
        padding: 0;
    }
    
    .portfolio-slider__image-container {
        height: 90vh;
    }
    
    .portfolio-slider__prev,
    .portfolio-slider__next {
        width: 36px;
        height: 36px;
    }
    
    .portfolio-slider__close {
        width: 36px;
        height: 36px;
    }
    
    .portfolio-slider__thumbnails {
        gap: 6px;
        padding: 10px 0 0;
    }
    
    .portfolio-slider__thumbnail {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .portfolio-slider__info {
        bottom: 15px;
        padding: 12px 20px;
        max-width: 95%;
    }
    
    .portfolio-slider__info-text {
        font-size: 14px;
    }
    
    .portfolio-slider__counter {
        font-size: 11px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-slider__content {
        padding: 0;
    }
    
    .portfolio-slider__image-container {
        height: 90vh;
    }
    
    .portfolio-slider__prev,
    .portfolio-slider__next {
        width: 32px;
        height: 32px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .portfolio-slider__prev {
        left: 10px;
    }
    
    .portfolio-slider__next {
        right: 10px;
    }
    
    .portfolio-slider__info {
        bottom: 10px;
        padding: 10px 16px;
        max-width: 98%;
    }
    
    .portfolio-slider__counter {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .portfolio-slider__thumbnails {
        gap: 4px;
        padding: 8px 0 0;
    }
    
    .portfolio-slider__thumbnail {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal__close:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.modal__body h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.modal__body > p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.modal__content .btn--outline {
    color: var(--color-dark);
    border-color: rgba(9, 9, 11, 0.2);
}

.modal__content .btn--outline:hover {
    border-color: var(--color-accent);
}

.modal__content .calc-form--steps {
    margin-top: 0;
}

.modal__content .calc-steps__progress {
    margin-bottom: 18px;
    padding-bottom: 32px;
    flex-wrap: nowrap;
}

.modal__content .calc-steps__progress-item {
    flex: 0 0 auto;
    min-width: 0;
}

.modal__content .calc-steps__progress-label {
    display: none;
}

.modal__content .calc-steps__progress-line {
    flex: 1;
    min-width: 8px;
    margin: 0 4px;
}

.modal__content .calc-step__title {
    font-size: 18px;
    margin-bottom: 14px;
}

.modal__content .calc-steps__progress-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.modal__content .calc-step .form-group:not(.form-group--checkbox) {
    margin-bottom: 24px;
}

.modal__content .calc-step .form-group--checkbox {
    margin-top: 8px;
}

/* Object type selection with icons */
.object-type-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.object-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-white);
    text-align: center;
}

.modal__content:has(.calc-form--steps) .object-type-option__icon {
    width: 40px;
    height: 40px;
}

.modal__content:has(.calc-form--steps) .object-type-option__label {
    font-size: 13px;
}

.modal__content:has(.calc-form--steps) .calc-step__actions {
    margin-top: 18px;
}

.object-type-option:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.object-type-option input[type="radio"] {
    display: none;
}

.object-type-option:has(input[type="radio"]:checked) {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.object-type-option:has(input[type="radio"]:checked) .object-type-option__icon {
    color: var(--color-accent);
    transform: scale(1.1);
}

.object-type-option:has(input[type="radio"]:checked) .object-type-option__label {
    color: var(--color-accent);
    font-weight: 700;
}

.object-type-option__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.object-type-option__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.object-type-option__icon svg {
    width: 100%;
    height: 100%;
}

.object-type-option__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

/* Additional elements selection (gates, wicket) */
.additional-elements-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.additional-element-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-white);
    text-align: center;
}

.additional-element-option:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.additional-element-option input[type="checkbox"] {
    display: none;
}

.additional-element-option:has(input[type="checkbox"]:checked) {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.additional-element-option:has(input[type="checkbox"]:checked) .additional-element-option__icon {
    color: var(--color-accent);
    transform: scale(1.1);
}

.additional-element-option:has(input[type="checkbox"]:checked) .additional-element-option__label {
    color: var(--color-accent);
    font-weight: 700;
}

.additional-element-option__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.additional-element-option__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.modal__content:has(.calc-form--steps) .additional-element-option__icon {
    width: 40px;
    height: 40px;
}

.additional-element-option__icon svg {
    width: 100%;
    height: 100%;
}

.additional-element-option__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.modal__content:has(.calc-form--steps) .additional-element-option__label {
    font-size: 13px;
}

/* ===== Success Message ===== */
.success-message {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-message.active {
    opacity: 1;
    visibility: visible;
}

.success-message__content {
    text-align: center;
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.success-message__content svg {
    color: var(--color-success);
    margin-bottom: 24px;
}

.success-message__content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.success-message__content p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ===== Floating WhatsApp ===== */
.floating-contact {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-contact__main {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    transition: var(--transition);
    order: 1;
    animation: pulse 2s infinite;
}

.floating-contact__main::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    filter: blur(8px);
    animation: pulseBlur 2s infinite;
    z-index: -1;
}

.floating-contact__main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(245, 158, 11, 0.5);
    animation: none;
}

.floating-contact__main:hover::before {
    animation: none;
    opacity: 0;
}

.floating-contact__item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    pointer-events: none;
    order: 0;
}

.floating-contact__item--phone {
    background: #22c55e;
}

.floating-contact__item--wa {
    background: #25D366;
}

.floating-contact__item--tg {
    background: #0088cc;
}

.floating-contact:hover .floating-contact__item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-contact:hover .floating-contact__item:nth-child(1) {
    transition-delay: 0.1s;
}

.floating-contact:hover .floating-contact__item:nth-child(2) {
    transition-delay: 0.15s;
}

.floating-contact:hover .floating-contact__item:nth-child(3) {
    transition-delay: 0.2s;
}

.floating-contact__item:hover {
    transform: scale(1.15) translateY(0);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ===== Tablet Responsive (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero Section - Tablet */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }
    
    .hero__title {
        font-size: clamp(28px, 4.5vw, 42px);
    }
    
    .hero__subtitle {
        font-size: clamp(16px, 2vw, 20px);
    }
    
    .hero__desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .hero__triggers {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 32px;
    }
    
    .trigger {
        padding: 14px 16px;
    }
    
    .trigger__icon {
        width: 40px;
        height: 40px;
    }
    
    .trigger span {
        font-size: 13px;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 12px;
    }
    
    .hero__buttons .btn--lg {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    /* Services - Tablet */
    .services {
        padding: 80px 0;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card__img {
        height: 180px;
    }
    
    .service-card__content {
        padding: 20px;
    }
    
    .service-card__title {
        font-size: 18px;
    }
    
    .service-card__text {
        font-size: 13px;
    }
    
    /* Why Us - Tablet */
    .why-us {
        padding: 80px 0;
    }
    
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .why-card {
        padding: 24px;
    }
    
    .why-card__number {
        font-size: 44px;
    }
    
    .why-card__title {
        font-size: 16px;
    }
    
    .why-card__text {
        font-size: 13px;
    }
    
    /* Scenarios - Tablet */
    .scenarios {
        padding: 80px 0;
    }
    
    .scenarios__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .scenario-card {
        padding: 28px 20px;
    }
    
    .scenario-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .scenario-card__icon svg {
        width: 36px;
        height: 36px;
    }
    
    .scenario-card__title {
        font-size: 17px;
    }
    
    .scenario-card__text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Portfolio - Tablet */
    .portfolio {
        padding: 80px 0;
    }
    
    .portfolio__filters {
        gap: 8px;
        margin-bottom: 32px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    /* Process - Tablet */
    .process {
        padding: 80px 0;
    }
    
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .process-step {
        padding: 24px;
    }
    
    .process-step__number {
        font-size: 40px;
    }
    
    .process-step__title {
        font-size: 16px;
    }
    
    .process-step__text {
        font-size: 13px;
    }
    
    /* Guarantees - Tablet */
    .guarantees {
        padding: 80px 0;
    }
    
    .guarantees__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .guarantees__list {
        margin: 24px 0;
        gap: 10px;
    }
    
    .guarantees__list li {
        padding: 16px 18px;
        gap: 14px;
    }
    
    .guarantees__list span {
        font-size: 14px;
    }
    
    .guarantees__image {
        min-height: 400px;
    }
    
    /* Calculator - Tablet */
    .calculator {
        padding: 80px 0;
    }
    
    .calculator__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator__info {
        text-align: center;
    }
    
    .calculator__benefits {
        justify-content: center;
    }
    
    .calculator__form-wrapper {
        padding: 32px;
    }
    
    .object-type-select,
    .additional-elements-select {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .object-type-option,
    .additional-element-option {
        padding: 16px 12px;
    }
    
    .object-type-option__icon,
    .additional-element-option__icon {
        width: 44px;
        height: 44px;
    }
    
    .object-type-option__label,
    .additional-element-option__label {
        font-size: 13px;
    }
    
    /* FAQ - Tablet */
    .faq {
        padding: 80px 0;
    }
    
    .faq__list {
        max-width: 100%;
    }
    
    .faq-item__question {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .faq-item__answer p {
        padding: 0 20px 18px;
        font-size: 14px;
    }
    
    /* About - Tablet */
    .about {
        padding: 80px 0;
    }
    
    .about__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about__text {
        font-size: 15px;
    }
    
    .about__stats {
        gap: 24px;
        margin-top: 28px;
        padding-top: 28px;
    }
    
    .stat__number {
        font-size: 32px;
    }
    
    .stat__label {
        font-size: 12px;
    }
    
    /* Contacts - Tablet */
    .contacts {
        padding: 80px 0;
    }
    
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contacts__list-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts__map {
        min-height: 350px;
    }
    
    /* Footer - Tablet */
    .footer {
        padding: 40px 0;
    }
    
    .footer__inner {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer__links {
        gap: 24px;
    }
    
    .footer__links a {
        font-size: 13px;
    }
    
    /* Modal - Tablet */
    .modal__content {
        max-width: 520px;
        padding: 32px;
    }
    
    .modal__content:has(.calc-form--steps) {
        max-width: 560px;
        padding: 24px 28px;
    }
    
    /* Section Headers - Tablet */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: clamp(28px, 4vw, 40px);
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    /* Floating Contact - Tablet */
    .floating-contact {
        bottom: 24px;
        right: 24px;
    }
    
    .floating-contact__main {
        width: 56px;
        height: 56px;
    }
    
    .floating-contact__item {
        width: 46px;
        height: 46px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scenarios__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 24px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav__link {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav__link::after {
        display: none;
    }
    
    .header__actions {
        margin-left: auto;
        margin-right: 12px;
    }
    
    .header__phone {
        padding: 8px;
        background: var(--color-accent-light);
        border-radius: var(--radius-md);
    }
    
    .header__phone span {
        display: none;
    }
    
    .header__phone svg {
        width: 22px;
        height: 22px;
    }
    
    .header__cta {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .contacts__map {
        min-height: 300px;
    }
}

/* Tablet-specific overrides (above 768px but below 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .hero__triggers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guarantees__inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .about__inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .about__image {
        order: 0;
    }
}

/* Below tablet - single column layouts */
/* ===== Mobile Responsive (max-width: 767px) ===== */
@media (max-width: 767px) {
    /* Hero Section - Mobile */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 24px;
    }
    
    .hero__title {
        font-size: 26px;
        line-height: 1.25;
    }
    
    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .hero__desc {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .hero__triggers {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 24px;
    }
    
    .trigger {
        padding: 12px 14px;
    }
    
    .trigger__icon {
        width: 36px;
        height: 36px;
    }
    
    .trigger__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .trigger span {
        font-size: 13px;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__buttons .btn--lg {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    /* Guarantees, Calculator, About, Contacts - 1 column */
    .guarantees__inner,
    .calculator__inner,
    .about__inner,
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about__image {
        order: -1;
    }
    
    /* Services - Mobile */
    .service-card__img {
        height: 200px;
    }
    
    .service-card__content {
        padding: 20px;
    }
    
    .service-card__title {
        font-size: 18px;
    }
    
    .service-card__text {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    /* Why Us - Mobile */
    .why-card {
        padding: 24px 20px;
    }
    
    .why-card__number {
        font-size: 42px;
    }
    
    .why-card__title {
        font-size: 16px;
    }
    
    .why-card__text {
        font-size: 13px;
    }
    
    /* Portfolio - Mobile */
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .portfolio-item {
        aspect-ratio: 4/3;
    }
    
    /* Process - Mobile */
    .process-step {
        padding: 24px 20px;
    }
    
    .process-step__number {
        font-size: 36px;
    }
    
    .process-step__title {
        font-size: 16px;
    }
    
    .process-step__text {
        font-size: 13px;
    }
    
    /* Guarantees - Mobile */
    .guarantees__list {
        margin: 20px 0;
        gap: 8px;
    }
    
    .guarantees__list li {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .guarantees__list span {
        font-size: 14px;
    }
    
    .guarantees__image {
        min-height: 280px;
        border-radius: var(--radius-lg);
    }
    
    /* Calculator - Mobile */
    .calculator__benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .benefit {
        font-size: 13px;
    }
    
    .object-type-select,
    .additional-elements-select {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .object-type-option,
    .additional-element-option {
        padding: 12px 8px;
    }
    
    .object-type-option__icon,
    .additional-element-option__icon {
        width: 36px;
        height: 36px;
    }
    
    .object-type-option__label,
    .additional-element-option__label {
        font-size: 11px;
    }
    
    /* FAQ - Mobile */
    .faq-item__question {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .faq-item__answer p {
        padding: 0 18px 16px;
        font-size: 13px;
    }
    
    /* About - Mobile */
    .about__text {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .about__stats {
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .stat__number {
        font-size: 28px;
    }
    
    .stat__label {
        font-size: 11px;
    }
    
    /* Contacts - Mobile */
    .contacts__desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .contact-item {
        padding: 14px;
    }
    
    .contact-item__icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-item__value {
        font-size: 14px;
    }
    
    .contacts__map {
        min-height: 250px;
        border-radius: var(--radius-lg);
    }
    
    /* Section Headers - Mobile */
    .section-title {
        font-size: 24px;
    }
    
    .section-desc {
        font-size: 14px;
    }
    
    .section-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    /* Modal - Mobile */
    .modal__content {
        padding: 24px 20px;
        max-width: 100%;
        margin: 16px;
        border-radius: var(--radius-lg);
    }
    
    .modal__content:has(.calc-form--steps) {
        padding: 20px 16px;
    }
    
    .modal__body h3 {
        font-size: 20px;
    }
    
    .calc-step__title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services,
    .why-us,
    .scenarios,
    .portfolio,
    .process,
    .guarantees,
    .calculator,
    .faq,
    .about,
    .contacts {
        padding: 60px 0;
    }
    
    .services__grid,
    .why-us__grid,
    .scenarios__grid,
    .portfolio__grid,
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scenario-card {
        padding: 28px 20px;
    }
    
    .scenario-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .scenario-card__icon svg {
        width: 36px;
        height: 36px;
    }
    
    .scenario-card__title {
        font-size: 17px;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn--lg {
        width: 100%;
        justify-content: center;
    }
    
    .about__stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat {
        flex: 1;
        min-width: 80px;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer__links a {
        font-size: 13px;
    }
    
    .footer__copy {
        flex-direction: column;
        gap: 8px;
    }
    
    .floating-contact {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    
    .floating-contact__main {
        width: 52px;
        height: 52px;
    }
    
    .floating-contact__item {
        width: 44px;
        height: 44px;
    }
    
    .modal__content {
        padding: 24px;
    }
    
    .calculator__form-wrapper {
        padding: 24px;
    }
    
    .calculator__form-wrapper .object-type-option {
        padding: 12px;
    }
    
    .calculator__form-wrapper .object-type-option__icon {
        width: 36px;
        height: 36px;
    }
    
    .calculator__form-wrapper .additional-element-option {
        padding: 12px;
    }
    
    .calculator__form-wrapper .additional-element-option__icon {
        width: 36px;
        height: 36px;
    }
    
    .contacts__list-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Small Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 12px;
    }
    
    /* Hero - Small Mobile */
    .hero__title {
        font-size: 22px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .hero__desc {
        font-size: 13px;
    }
    
    .hero__buttons .btn--lg {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .trigger {
        padding: 10px 12px;
    }
    
    .trigger__icon {
        width: 32px;
        height: 32px;
    }
    
    .trigger span {
        font-size: 12px;
    }
    
    /* Services - Small Mobile */
    .service-card__img {
        height: 180px;
    }
    
    .service-card__content {
        padding: 16px;
    }
    
    .service-card__title {
        font-size: 16px;
    }
    
    .service-card__text {
        font-size: 13px;
    }
    
    /* Why Us - Small Mobile */
    .why-card {
        padding: 20px 16px;
    }
    
    .why-card__number {
        font-size: 36px;
    }
    
    .why-card__title {
        font-size: 15px;
    }
    
    /* Portfolio - Small Mobile */
    .portfolio__filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
    
    .portfolio-item {
        aspect-ratio: 3/2;
    }
    
    /* Scenarios - Small Mobile */
    .scenario-card {
        padding: 24px 16px;
    }
    
    .scenario-card__icon {
        width: 56px;
        height: 56px;
    }
    
    .scenario-card__icon svg {
        width: 32px;
        height: 32px;
    }
    
    .scenario-card__title {
        font-size: 16px;
    }
    
    .scenario-card__text {
        font-size: 13px;
    }
    
    /* Process - Small Mobile */
    .process-step {
        padding: 20px 16px;
    }
    
    .process-step__number {
        font-size: 32px;
    }
    
    /* Guarantees - Small Mobile */
    .guarantees__list li {
        padding: 12px 14px;
    }
    
    .guarantees__list span {
        font-size: 13px;
    }
    
    .guarantees__image {
        min-height: 220px;
    }
    
    /* Calculator - Small Mobile */
    .calculator__form-wrapper {
        padding: 20px 16px;
    }
    
    .object-type-select,
    .additional-elements-select {
        gap: 6px;
    }
    
    .object-type-option,
    .additional-element-option {
        padding: 10px 6px;
    }
    
    .object-type-option__icon,
    .additional-element-option__icon {
        width: 32px;
        height: 32px;
    }
    
    .object-type-option__label,
    .additional-element-option__label {
        font-size: 10px;
    }
    
    /* FAQ - Small Mobile */
    .faq-item__question {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .faq-item__answer p {
        font-size: 12px;
    }
    
    /* About - Small Mobile */
    .about__stats {
        justify-content: space-between;
    }
    
    .stat__number {
        font-size: 24px;
    }
    
    .stat__label {
        font-size: 10px;
    }
    
    /* Contacts - Small Mobile */
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item__icon {
        width: 38px;
        height: 38px;
    }
    
    .contact-item__value {
        font-size: 13px;
    }
    
    .contacts__map {
        min-height: 200px;
    }
    
    /* Section Headers - Small Mobile */
    .section-title {
        font-size: 22px;
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    /* Modal - Small Mobile */
    .modal__content {
        padding: 20px 16px;
        margin: 12px;
    }
    
    .modal__body h3 {
        font-size: 18px;
    }
    
    .calc-step__title {
        font-size: 15px;
    }
    
    .calc-steps__progress-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Footer - Small Mobile */
    .footer {
        padding: 32px 0;
    }
    
    .footer__links {
        gap: 12px;
    }
    
    .footer__links a {
        font-size: 12px;
    }
    
    .footer__copy {
        font-size: 11px;
    }
    
    /* Floating Contact - Small Mobile */
    .floating-contact {
        bottom: 12px;
        right: 12px;
    }
    
    .floating-contact__main {
        width: 48px;
        height: 48px;
    }
    
    .floating-contact__item {
        width: 40px;
        height: 40px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}
