/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --clr-dark: #1a1a2e;
    --clr-dark-alt: #16213e;
    --clr-accent: #e67e22;
    --clr-accent-hover: #d35400;
    --clr-light: #f8f9fa;
    --clr-bg: #ffffff;
    --clr-text: #333333;
    --clr-text-muted: #6c757d;
    --clr-border: #dee2e6;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --header-h: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--small {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn--primary {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

.btn--primary:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo__mark {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(230, 126, 34, 0.45));
    transition: filter var(--transition), transform var(--transition);
}

.header__logo:hover .logo__mark {
    filter: drop-shadow(0 3px 12px rgba(230, 126, 34, 0.7));
    transform: rotate(6deg) scale(1.05);
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.logo__sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.9;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width var(--transition);
}

.nav__link:hover {
    color: #fff;
}

.nav__link:hover::after {
    width: 100%;
}

.header__phone {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

.header__phone:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    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);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/full/canopies-05.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.92) 0%,
        rgba(22, 33, 62, 0.82) 50%,
        rgba(26, 26, 46, 0.88) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__title span {
    color: var(--clr-accent);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(230, 126, 34, 0.12);
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.8s ease;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-accent);
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    animation: pulse 2s infinite;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    z-index: 0;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 720px;
    margin: 56px auto 0;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
    text-align: center;
}

.hero-stat__num {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.hero-stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-mouse {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    position: relative;
}

.hero__scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__badge, .hero-stat__num, .hero__scroll-mouse span { animation: none; }
}

/* ===== FAB (mobile call button) ===== */
.fab-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--clr-accent);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.45);
    z-index: 900;
    animation: pulseFab 2.5s infinite;
}

@keyframes pulseFab {
    0%, 100% { box-shadow: 0 8px 24px rgba(230, 126, 34, 0.45), 0 0 0 0 rgba(230, 126, 34, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(230, 126, 34, 0.45), 0 0 0 14px rgba(230, 126, 34, 0); }
}

/* ===== SECTION TITLES ===== */
.section__title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--clr-dark);
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 48px;
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--clr-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.section__title--light {
    color: #fff;
}

.section__subtitle--light {
    color: rgba(255, 255, 255, 0.55);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.about-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--clr-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-4px);
}

.about-card:hover::before {
    transform: scaleY(1);
}

.about-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.12);
    color: var(--clr-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    transition: all var(--transition);
}

.about-card:hover .about-card__icon {
    background: var(--clr-accent);
    color: #fff;
    transform: scale(1.05) rotate(-4deg);
}

.about-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.about-card__label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ===== PROCESS ===== */
.process {
    padding: 100px 0;
    background: var(--clr-light);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
    position: relative;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--clr-accent) 0 8px, transparent 8px 16px);
    opacity: 0.4;
    z-index: 0;
}

.process-step {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.process-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.35);
}

.process-step__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 10px;
}

.process-step__text {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.55;
}

/* ===== CTA ===== */
.cta {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before,
.cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.cta::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -80px;
}

.cta::after {
    width: 240px;
    height: 240px;
    bottom: -120px;
    right: -60px;
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.cta__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 560px;
}

.cta__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn--light {
    background: #fff;
    color: var(--clr-accent);
    border-color: #fff;
}

.btn--light:hover {
    background: var(--clr-dark);
    color: #fff;
    border-color: var(--clr-dark);
    transform: translateY(-2px);
}

.cta .btn--primary {
    background: var(--clr-dark);
    border-color: var(--clr-dark);
}

.cta .btn--primary:hover {
    background: #0d0d1a;
    border-color: #0d0d1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--clr-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--clr-bg);
    border-radius: var(--radius);
    padding: 40px 28px 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--clr-accent);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--clr-dark);
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-accent);
    transition: color var(--transition);
}

.service-card:hover .service-card__link {
    color: var(--clr-accent-hover);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
}

.portfolio__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--clr-light);
    border: 2px solid var(--clr-border);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.filter-btn.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}

.filter-count {
    font-size: 0.78rem;
    opacity: 0.7;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--clr-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0);
    transition: background var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    background: rgba(26, 26, 46, 0.2);
}

.gallery-item.hidden {
    display: none;
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 100px 0;
    background: var(--clr-light);
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--clr-bg);
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent);
}

.contact-card--location {
    cursor: default;
}

.contact-card--location:hover {
    transform: none;
    border-color: transparent;
}

.contact-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    margin-bottom: 16px;
}

.contact-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
    margin-bottom: 8px;
}

.contact-card__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-dark);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--clr-dark);
    color: rgba(255, 255, 255, 0.6);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__col--brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 12px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__logo .logo__name {
    font-size: 1rem;
    color: #fff;
}

.footer__logo .logo__sub {
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.footer__col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
}

.footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__contacts a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer__contacts a:hover {
    color: var(--clr-accent);
}

.footer__bottom {
    padding: 20px 0;
}

.footer__copy {
    font-size: 0.82rem;
    text-align: center;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    transition: opacity 0.25s ease;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
    z-index: 2001;
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all var(--transition);
    z-index: 2001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
    left: 16px;
}

.lightbox__next {
    right: 16px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--clr-dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .header__nav.open {
        right: 0;
    }

    .nav__link {
        font-size: 1.15rem;
    }

    .header__phone {
        display: none;
    }

    .burger {
        display: flex;
    }

    .logo__sub {
        display: none;
    }

    .hero__content {
        padding: 100px 16px 60px;
    }

    .services {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process {
        padding: 60px 0;
    }

    .process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .process__grid::before {
        display: none;
    }

    .process-step {
        padding: 24px 18px;
    }

    .cta {
        padding: 50px 0;
    }

    .cta__inner {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }

    .cta__actions {
        justify-content: center;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-top: 40px;
        padding-top: 28px;
    }

    .hero__scroll {
        display: none;
    }

    .fab-call {
        display: inline-flex;
    }

    .portfolio {
        padding: 60px 0;
    }

    .contacts {
        padding: 60px 0;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        border-radius: 6px;
    }

    .section__subtitle {
        margin-bottom: 32px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        padding: 36px 0 28px;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }

    .lightbox__prev {
        left: 8px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox__next {
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn--large {
        width: 100%;
        justify-content: center;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* ===== MOBILE MENU OVERLAY ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SKIP LINK (accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 2002;
    padding: 10px 24px;
    background: var(--clr-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ===== FOCUS VISIBLE (keyboard navigation) ===== */
:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
    border-radius: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

.service-card:focus-visible,
.gallery-item:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 120px 0 80px; min-height: 100vh; background: var(--clr-bg); }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--clr-dark); margin-bottom: 8px; }
.legal-page .legal-date { color: var(--clr-text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; color: var(--clr-dark); margin: 36px 0 12px; }
.legal-page p,
.legal-page li { color: var(--clr-text); line-height: 1.75; font-size: 0.97rem; margin-bottom: 12px; }
.legal-page ul,
.legal-page ol { padding-left: 24px; margin-bottom: 12px; }
.legal-page ul li,
.legal-page ol li { margin-bottom: 6px; }
.legal-page a { color: var(--clr-accent); }
.legal-page a:hover { text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--clr-accent); font-weight: 600; margin-bottom: 36px; font-size: 0.95rem; transition: gap 0.2s; }
.legal-back:hover { gap: 12px; }
.legal-page .header { background: rgba(26,26,46,0.97) !important; }
.offer-box { background: var(--clr-light); border-left: 4px solid var(--clr-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 24px 0; font-size: 0.95rem; color: var(--clr-text); }

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .fab-call,
    .lightbox,
    .nav-overlay,
    .hero__scroll,
    .burger,
    .cta,
    .hero__badge { display: none !important; }
    body { background: white !important; color: black !important; }
    .hero { min-height: auto; background: none !important; }
    .hero__overlay { display: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
