@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --orange: #C97832;
    --orange-dark: #A85E20;
    --orange-light: #E8A05D;
    --orange-bg: #F3E7DA;
    --dark: #132025;
    --dark-2: #1D2C31;
    --gray: #6C7A7D;
    --gray-light: #E7ECEB;
    --gray-border: #CDD7D5;
    --white: #F8F6F1;
    --text: #17252A;
    --text-secondary: #526267;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ── PRELOADER ── */
/* Preloader removed */

/* ── HEADER ── */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(19,32,37,0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.22); }
.header-container {
    max-width: 1240px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; gap: 32px;
    height: 88px;
    position: relative;
}
@media (min-width: 1200px) {
    .header-container { max-width: none; padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1300px) {
    .header-logo { margin-left: 60px; }
    .header-container .nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-wrap {
    display: block;
    width: 150px;
    height: 48px;
    position: relative;
    transition: var(--transition);
}
.logo-wrap::before,
.footer-logo-wrap::before,
.legal-page .nav-logo::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 38px;
    height: 38px;
    background: url('images/logo.png') -2px -46px / 210px 140px no-repeat;
    pointer-events: none;
}
.logo-wrap::after,
.footer-logo-wrap::after,
.legal-page .nav-logo::after {
    content: 'Пять Плюсов';
    position: absolute;
    top: 11px;
    left: 48px;
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}
.logo-wrap:hover { opacity: 0.85; transform: scale(1.02); }
.logo-img { display: none; }

.nav { display: flex; gap: 6px; align-items: center; }
.header-phone-mobile, .nav-cta-mob { display: none; }
.nav-link {
    font-size: 14px; font-weight: 500; color: rgba(248,246,241,0.76);
    padding: 6px 12px; border-radius: 8px;
    transition: var(--transition); white-space: nowrap;
}
.nav-link:hover { color: var(--orange); background: var(--orange-bg); }

.header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; color: rgba(248,246,241,0.68); }
.header-phone > div { min-width: 164px; }
.header-phone svg { color: var(--orange); flex-shrink: 0; }
.phone-number { display: block; font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.2; white-space: nowrap; }
.phone-hours { display: block; font-size: 11px; color: rgba(248,246,241,0.6); line-height: 1; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange); color: var(--white);
    font-size: 14px; font-weight: 600;
    padding: 12px 22px; border-radius: var(--radius-sm);
    border: none; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
    text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,0,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { font-size: 16px; padding: 16px 32px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 16px; }
.btn-sm { font-size: 13px; padding: 8px 16px; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-size: 15px; font-weight: 500;
    background: none; border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover { color: var(--orange); }
.btn-play {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--gray-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--orange); transition: var(--transition); flex-shrink: 0;
}
.btn-ghost:hover .btn-play { border-color: var(--orange); background: var(--orange-bg); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
/* ── HERO ── */
.hero {
    background: var(--white);
    overflow: hidden;
    padding: 88px 0 0;
}
.hero-container {
    width: 100%;
    max-width: none;
    padding: 0;
    position: relative;
    display: block;
    min-height: calc(100vh - 88px);
}

/* LEFT: text block */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 60px 72px 80px;
    width: min(600px, 50%);
    min-height: calc(100vh - 88px);
}

.hero-tag {
    display: inline-block;
    font-size: 12px; font-weight: 700; color: var(--orange);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 56px; font-weight: 800; line-height: 1.08;
    letter-spacing: -1.5px; color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}
.hero-accent { color: var(--orange); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 32px; text-shadow: 0 2px 5px rgba(0,0,0,0.85); }

.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.badge { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
.badge-experienced { display: none; }
.badge b { color: var(--white); font-weight: 700; }
.badge svg { flex-shrink: 0; }

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

/* RIGHT: image — fills the column top to bottom, edge to edge */
.hero-image-col {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: var(--dark);
}
.hero-image-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 28%, rgba(0,0,0,0.12) 62%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}
.hero-panel-glow {
    position: absolute;
    z-index: 1;
    top: 56%;
    left: 84%;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,165,76,0.28) 0%, rgba(245,165,76,0.09) 38%, transparent 72%);
    transform: translate(-50%, -50%) scale(0.85);
    animation: panelPulse 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes panelPulse {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.85); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-panel-glow { animation: none; }
}
.hero-col-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero-col-img--mobile {
    display: none;
}
.hero-content .hero-tag { color: var(--orange-light); }
.hero-content .btn-ghost { color: var(--white); }
.hero-content .btn-play { background: rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.45); }

/* Keep old class refs that may exist elsewhere */
.hero-visual { position: relative; }
.hero-img-wrap { position: relative; }
.hero-img { width: 100%; border-radius: 24px; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.15)); }
.hero-float {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px; line-height: 1.4; font-weight: 500;
    display: flex; align-items: flex-start; gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    animation: floatUp 3s ease-in-out infinite;
}
.hero-float svg { flex-shrink: 0; margin-top: 1px; }
.hero-float-1 { bottom: 80px; left: -30px; animation-delay: 0s; }
.hero-float-2 { bottom: 20px; right: -20px; animation-delay: 1.5s; }
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }


/* ── SECTION COMMON ── */
section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    font-size: 12px; font-weight: 700; color: var(--orange);
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 40px; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.5px; color: var(--dark);
    margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* ── SERVICES ── */
.services, .how, .projects, .why, .contact { background: var(--dark); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.service-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    padding: 32px;
    border: 1.5px solid var(--gray-border);
    transition: var(--transition);
    position: relative;
}
.service-card:hover { border-color: var(--orange); box-shadow: 0 8px 32px rgba(255,107,0,0.1); transform: translateY(-2px); }
.service-card--main {
    grid-column: 1; grid-row: 1 / 3;
    background: var(--dark);
    border-color: transparent;
    color: var(--white);
}
.service-card--main h3 { color: var(--white); }
.service-card--main p { color: rgba(255,255,255,0.6); }

.sc-icon {
    width: 56px; height: 56px;
    background: var(--orange-bg);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--orange);
}
.service-card--main .sc-icon { background: rgba(255,107,0,0.15); }

.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

.sc-list { list-style: none; margin-bottom: 24px; }
.sc-list li {
    font-size: 14px; color: rgba(255,255,255,0.7);
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 8px;
}
.sc-list li::before { content: "→"; color: var(--orange); font-weight: 700; }

.sc-price {
    display: inline-block;
    font-size: 15px; font-weight: 700; color: var(--orange);
    background: var(--orange-bg); padding: 6px 14px; border-radius: 99px;
}
.service-card--main .sc-price { background: rgba(255,107,0,0.2); }

/* ── HOW WE WORK — TIMELINE ── */
.how-timeline {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-step-new {
    display: flex;
    gap: 0;
    position: relative;
}
.hsn-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}
.hsn-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--orange);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}
.hsn-dot--accent {
    background: var(--orange);
    box-shadow: 0 0 0 5px var(--orange-bg);
}
.hsn-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--orange), var(--gray-border));
    margin: 6px 0;
    min-height: 40px;
}

.hsn-body {
    display: flex;
    gap: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
    align-items: flex-start;
    flex: 1;
}
.how-step-new--last .hsn-body { padding-bottom: 0; }

.hsn-num {
    font-family: 'Manrope', sans-serif;
    font-size: 36px; font-weight: 800;
    color: var(--orange); opacity: 0.15;
    line-height: 1; flex-shrink: 0;
    width: 48px;
    margin-top: -4px;
}
.hsn-num--accent { opacity: 1; }

.hsn-content { flex: 1; }
.hsn-content h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 8px; color: var(--white);
}
.hsn-content p {
    font-size: 15px; color: rgba(248,246,241,0.72);
    line-height: 1.65; margin-bottom: 12px;
}
.hsn-detail {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--gray);
    background: var(--dark-2);
    padding: 6px 12px; border-radius: 99px;
}
.hsn-detail svg { color: var(--gray); flex-shrink: 0; }
.hsn-detail--accent { background: var(--orange-bg); color: var(--orange); }
.hsn-detail--accent svg { color: var(--orange); }

/* ── PROJECTS SLIDER ── */

.proj-tabs-wrap {
    display: flex; justify-content: center;
    margin-bottom: 32px; padding: 0 40px;
}
.proj-tabs {
    display: flex; gap: 8px;
    background: var(--dark-2);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 6px;
}
.proj-tab {
    font-family: inherit; font-size: 14px; font-weight: 600;
    color: rgba(248,246,241,0.72);
    background: none; border: none; cursor: pointer;
    padding: 8px 20px; border-radius: 8px;
    transition: var(--transition);
}
.proj-tab:hover { color: var(--orange); }
.proj-tab.active { background: var(--orange); color: var(--white); }

.proj-slider-wrap {
    position: relative;
    overflow: hidden;
}
.proj-slider {
    display: flex;
    gap: 20px;
    padding: 0 40px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.proj-slider::-webkit-scrollbar { display: none; }

.proj-slide {
    background: var(--dark-2);
    border-radius: var(--radius);
    border: 1.5px solid rgba(255,255,255,0.14);
    overflow: hidden;
    flex: 0 0 320px;
    scroll-snap-align: start;
    transition: var(--transition);
}
.proj-slide:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proj-slide.hidden { display: none; }

.ps-img {
    height: 200px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ps-svg { width: 200px; height: 140px; }
.ps-badge {
    position: absolute; top: 14px; left: 14px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--orange); background: rgba(255,107,0,0.12);
    border: 1px solid rgba(255,107,0,0.25);
    padding: 4px 10px; border-radius: 99px;
    backdrop-filter: blur(4px);
}
.ps-info { padding: 20px 24px; }
.ps-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ps-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.ps-meta { display: flex; align-items: center; justify-content: space-between; }
.ps-time {
    font-size: 12px; color: var(--gray); font-weight: 500;
    background: var(--gray-light); padding: 4px 10px; border-radius: 99px;
}
.ps-price {
    font-size: 16px; font-weight: 800; color: var(--orange);
}

.proj-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 1.5px solid var(--gray-border);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: var(--transition); z-index: 10;
}
.proj-arrow:hover { border-color: var(--orange); color: var(--orange); }
.proj-arrow-prev { left: 8px; }
.proj-arrow-next { right: 8px; }

.proj-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 24px; padding: 0 40px;
}
.proj-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gray-border); border: none; cursor: pointer;
    transition: var(--transition); padding: 0;
}
.proj-dot.active { background: var(--orange); width: 24px; border-radius: 4px; }

/* ── WHY US — BENEFITS GRID ── */

.why-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.why-benefit {
    background: var(--dark-2);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}
.why-benefit:hover {
    border-color: var(--orange);
    background: #31454A;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,107,0,0.08);
}
.wb-icon {
    width: 52px; height: 52px;
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid var(--gray-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--orange); margin-bottom: 18px;
    transition: var(--transition);
}
.why-benefit:hover .wb-icon { border-color: var(--orange); background: rgba(201,120,50,0.16); }
.why-benefit h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.why-benefit p { font-size: 14px; color: rgba(248,246,241,0.72); line-height: 1.6; }

.why-cta-strip {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 36px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.wcs-text {
    display: flex; flex-direction: column; gap: 4px;
}
.wcs-text strong {
    font-size: 22px; font-weight: 800; color: var(--white);
    font-family: 'Manrope', sans-serif;
}
.wcs-text span { font-size: 15px; color: rgba(255,255,255,0.55); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-desc { font-size: 16px; color: rgba(248,246,241,0.72); margin-bottom: 36px; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
    display: flex; align-items: center; gap: 14px;
    background: var(--dark-2); border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-sm); padding: 14px 18px;
    transition: var(--transition);
}
.contact-link:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(255,107,0,0.08); }
.cl-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--orange); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cl-icon--tg { background: #2AABEE; }
.cl-label { display: block; font-size: 11px; color: rgba(248,246,241,0.56); font-weight: 500; margin-bottom: 2px; }
.cl-value { display: block; font-size: 15px; font-weight: 700; color: var(--white); }

.contact-form-wrap {
    background: var(--dark-2); border-radius: var(--radius);
    padding: 40px; border: 1.5px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.form-row { margin-bottom: 14px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; font-family: inherit; font-size: 15px;
    padding: 13px 16px; border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-sm); background: var(--dark);
    color: var(--white); outline: none; transition: var(--transition);
    resize: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--orange); background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.form-note { font-size: 12px; color: var(--gray); margin-top: 12px; }
.form-note a { color: var(--orange); }

/* ── DARK SITE THEME ── */
body { background: var(--dark); color: var(--white); }
.section-title { color: var(--white); }
.section-sub { color: rgba(248,246,241,0.68); }
.service-card:not(.service-card--main) h3,
.ps-info h3,
.contact-form h3 { color: var(--white); }
.service-card:not(.service-card--main) p,
.ps-info p { color: rgba(248,246,241,0.68); }
.proj-tabs { background: var(--dark-2); border-color: rgba(255,255,255,0.14); }
.proj-slide { background: var(--dark-2); border-color: rgba(255,255,255,0.14); }
.proj-tab { color: rgba(248,246,241,0.72); }
.why-benefit { background: var(--dark-2); border-color: rgba(255,255,255,0.14); }
.why-benefit h4 { color: var(--white); }
.why-benefit p { color: rgba(248,246,241,0.68); }
.contact-link { background: var(--dark-2); border-color: rgba(255,255,255,0.14); }
.contact-form-wrap { background: var(--dark-2); border-color: rgba(255,255,255,0.14); }
.form-row input, .form-row select, .form-row textarea { background: var(--dark); color: var(--white); border-color: rgba(255,255,255,0.16); }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(248,246,241,0.45); }

/* ── FOOTER — LIGHT STYLE ── */
.footer {
    background: var(--dark);
    border-top: 2px solid rgba(255,255,255,0.12);
    padding: 60px 0 40px;
    color: var(--white);
}
.footer-inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    margin-bottom: 28px;
}
.footer-logo-wrap {
    display: inline-block;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 18px;
    width: 150px;
    height: 48px;
    position: relative;
}
.footer-logo { display: none; }
.footer-brand p { font-size: 14px; color: rgba(248,246,241,0.7); line-height: 1.6; margin-bottom: 14px; }
.footer-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--orange);
    background: var(--orange-bg);
    padding: 5px 12px; border-radius: 99px;
}

.footer-col-title {
    display: block;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(248,246,241,0.56); margin-bottom: 14px;
}
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.footer-nav a, .footer-contacts a, .footer-contacts span {
    font-size: 14px; color: rgba(248,246,241,0.72); transition: var(--transition);
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--orange); }

.footer-tg {
    display: inline-flex; align-items: center; gap: 6px;
    color: #2AABEE !important;
    font-weight: 600;
}
.footer-tg:hover { color: #1a8fc4 !important; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: var(--gray);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--gray); transition: var(--transition); }
.footer-legal a:hover { color: var(--orange); }
.footer-design { color: var(--gray-border); transition: var(--transition); font-size: 12px; }
.footer-design:hover { color: var(--gray); }

/* ── MODAL ── */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 9000; align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-box {
    background: var(--white); border-radius: 20px; padding: 48px;
    text-align: center; max-width: 400px; width: 90%;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--orange); color: var(--white);
    font-size: 28px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.modal-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-box p { color: var(--text-secondary); margin-bottom: 28px; }

/* ── QUIZ ── */
.quiz-box {
    position: relative;
    max-width: 520px;
    text-align: left;
    background: var(--dark-2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 36px;
}
.quiz-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    color: rgba(248,246,241,0.65);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.quiz-progress {
    height: 4px;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}
.quiz-progress span {
    display: block;
    height: 100%;
    width: 20%;
    background: var(--orange);
    transition: width 0.25s ease;
}
.quiz-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--orange-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.quiz-box h3 { margin-bottom: 24px; color: var(--white); font-size: 24px; line-height: 1.2; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-sm);
    background: rgba(19,32,37,0.8);
    color: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-option:hover { border-color: var(--orange); background: rgba(201,120,50,0.18); }
.quiz-form { display: grid; gap: 12px; }
.quiz-form input[type="text"], .quiz-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: var(--white);
    font: inherit;
    outline: none;
}
.quiz-form input:focus { border-color: var(--orange); }
.quiz-form input::placeholder { color: rgba(248,246,241,0.45); }
.quiz-consent { display: flex; align-items: flex-start; gap: 9px; color: rgba(248,246,241,0.65); font-size: 11px; line-height: 1.45; }
.quiz-consent input { margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.quiz-consent a { color: var(--orange-light); }
.quiz-success { text-align: center; }
.quiz-success .modal-icon { margin-bottom: 18px; }
.quiz-success h3 { margin-bottom: 8px; }
.quiz-success p { margin-bottom: 0; color: rgba(248,246,241,0.7); }

/* ── COOKIE ── */
.cookie {
    position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 520px;
    background: var(--dark); color: var(--white);
    border-radius: var(--radius); padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    box-shadow: var(--shadow-lg); z-index: 8000;
    transition: var(--transition);
}
.cookie.hidden { opacity: 0; visibility: hidden; transform: translateY(10px); }
.cookie p { font-size: 13px; color: rgba(255,255,255,0.7); flex: 1; }
.cookie p a { color: var(--orange); }
.cookie-btns { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cookie-decline {
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: rgba(255,255,255,0.4); font-family: inherit;
    transition: var(--transition);
}
.cookie-decline:hover { color: rgba(255,255,255,0.7); }

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
    .nav {
        position: fixed; top: 100px; left: 0; right: 0;
        background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.14);
        flex-direction: column; padding: 16px 24px;
        display: none;
        z-index: 999;
    }
    .nav.active { display: flex; }
    .nav-link { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); width: 100%; font-size: 15px; color: rgba(248,246,241,0.8); }
    .nav-toggle { display: flex; }
    .header-right { display: none; }
    .header-container { gap: 16px; }
    /* Phone button in burger menu area */
    .header-phone-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 0 4px;
        border-top: none;
    }
    .header-phone-mobile a {
        font-size: 15px;
        font-weight: 700;
        color: var(--white);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header-phone-mobile svg { color: var(--orange); }
    .nav-cta-mob {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--orange);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        padding: 14px;
        border-radius: 10px;
        margin-top: 8px;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-content { padding: 48px 40px; width: 60%; min-height: calc(100vh - 100px); }
    .hero-title { font-size: 40px; }
    .hs-badge { display: none; }
    .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card--main { grid-column: 1 / -1; grid-row: auto; }
    .why-benefits { grid-template-columns: repeat(2, 1fr); }
    .why-cta-strip { padding: 28px 32px; }
}

@media (max-width: 768px) {
    .proj-slider { padding: 0 20px 4px; }
    .proj-slide { flex: 0 0 280px; }
    .proj-arrow { display: none; }
    .proj-tabs-wrap { padding: 0 20px; }
    .proj-tabs { overflow-x: auto; justify-content: flex-start; }
    .how-timeline { max-width: 100%; }
    .hsn-num { display: none; }
}

@media (max-width: 640px) {
    /* ── CONTAINER ── */
    .container { padding: 0 20px; }

    /* ── HEADER ── */
    .header-container { padding: 0 20px; gap: 12px; height: 72px; }
    .logo-img { display: none; }
    .logo-wrap { width: 112px; height: 42px; }
    .logo-wrap::before, .footer-logo-wrap::before, .legal-page .nav-logo::before { width: 32px; height: 32px; background-size: 177px 118px; background-position: -2px -39px; }
    .logo-wrap::after, .footer-logo-wrap::after, .legal-page .nav-logo::after { top: 10px; left: 40px; font-size: 14px; }
    .nav { top: 72px; }

    /* ── HERO MOBILE: текст сверху, картинка снизу ── */
    .hero {
        padding: 72px 0 0;
        background: var(--white);
    }
    .hero-container {
        padding: 0;
        display: block;
        position: relative;
        min-height: calc(100vh - 72px);
    }

    /* Текст идёт первым (order:0) */
    .hero-content {
        position: relative;
        z-index: 2;
        padding: 48px 28px 40px;
        width: 100%;
        min-height: calc(100vh - 72px);
        justify-content: center;
        align-items: stretch;
        text-align: left;
        transform: translateY(-28px);
        background: transparent;
    }

    /* Картинка — снизу (order:1), занимает всю ширину */
    .hero-image-col {
        position: absolute;
        inset: 0;
        height: auto;
        z-index: 0;
    }

    /* Скрываем десктопную картинку */
    .hero-col-img { display: none; }

    /* Мобильная картинка — contain чтобы вся влезла без обрезки */
    .hero-col-img--mobile {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* Градиент сверху картинки — плавный стык с белым текстовым блоком */
    .hero-image-col::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 100%;
        background: linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.32) 48%, rgba(0,0,0,0.2) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-panel-glow { top: 53%; left: 84%; width: 18%; }

    /* Цвета текста — стандартные тёмные */
    .hero-tag { color: var(--orange); font-size: 11px; letter-spacing: 1.2px; }
    .hero-title { font-size: 30px; color: var(--white); letter-spacing: -0.8px; margin-bottom: 12px; }
    .hero-accent { color: var(--orange); }
    .hero-desc { font-size: 15px; color: rgba(255,255,255,0.82); margin-bottom: 20px; }
    .badge { color: rgba(255,255,255,0.78); }
    .badge b { color: var(--white); }
    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 24px;
        padding: 14px;
        background: rgba(19,32,37,0.72);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 12px;
        text-align: left;
    }
    .badge { min-width: 0; align-items: flex-start; }
    .badge-experienced { display: flex; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    .btn-primary {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 15px 20px;
        border-radius: 12px;
    }
    .btn-ghost { justify-content: flex-start; }
    .hero-float-1, .hero-float-2 { display: none; }

    /* ── SECTIONS ── */
    section { padding: 52px 0; }
    .section-title { font-size: 26px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .why-benefits { grid-template-columns: 1fr; }
    .why-cta-strip { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
    .proj-slide { flex: 0 0 260px; }
    .hsn-body { padding-left: 12px; }
    .footer-logo-wrap { margin-bottom: 16px; width: 112px; height: 42px; }
    .quiz-box { width: calc(100% - 32px); padding: 28px 20px; }
    .quiz-box h3 { font-size: 21px; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── LEGAL PAGES ── */
.legal-page {
    min-height: 100vh;
    background: var(--dark);
    color: var(--white);
}
.legal-page .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(19,32,37,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px);
}
.legal-page .nav-container {
    max-width: 1240px;
    min-height: 100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.legal-page .nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    width: 150px;
    height: 48px;
}
.legal-page .nav-logo .logo-img {
    display: none;
}
.legal-page .nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.legal-page .nav-menu a {
    color: rgba(248,246,241,0.76);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.legal-page .nav-menu a:hover { color: var(--orange-light); }
.legal-page .legal-nav-toggle { display: none; }
.legal-page .legal-section {
    min-height: calc(100vh - 100px);
    padding: 96px 0 120px;
    background: linear-gradient(180deg, var(--dark) 0%, #1D2C31 100%);
}
.legal-page .section-header {
    max-width: 820px;
    margin: 0 auto 36px;
}
.legal-page .section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--orange-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.legal-page .section-header .section-title {
    margin-bottom: 0;
    color: var(--white);
    font-size: clamp(32px, 5vw, 52px);
}
.legal-page .legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 40px;
    background: rgba(29,44,49,0.88);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.legal-page .legal-content p {
    margin-bottom: 24px;
    color: rgba(248,246,241,0.76);
    font-size: 16px;
}
.legal-page .legal-document h2 {
    margin: 30px 0 10px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.3;
}
.legal-page .legal-document strong { color: var(--white); }
.legal-page .legal-document a:not(.legal-download) { color: var(--orange-light); }
.legal-page .legal-download {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    padding: 15px 18px;
    color: var(--white);
    background: var(--orange);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.legal-page .legal-download:hover {
    background: var(--orange-light);
    transform: translateY(-1px);
}
.legal-page .legal-download svg { flex-shrink: 0; }
.legal-page .back-link { margin-top: 28px; }
.legal-page .back-link a {
    color: var(--orange-light);
    font-size: 14px;
    font-weight: 600;
}
.legal-page .back-link a:hover { color: var(--white); }
.legal-page .footer {
    padding: 48px 0 36px;
}
.legal-page .footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr auto;
    align-items: center;
    gap: 32px;
}
.legal-page .footer-logo {
    height: auto;
}
.legal-page .footer-logo-img {
    width: auto;
    height: 68px;
}
.legal-page .footer-logo p {
    margin-top: 10px;
    color: rgba(248,246,241,0.62);
    font-size: 13px;
}
.legal-page .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-page .footer-link,
.legal-page .footer-copy p,
.legal-page .design-link {
    color: rgba(248,246,241,0.68);
    font-size: 13px;
    transition: var(--transition);
}
.legal-page .footer-link:hover,
.legal-page .design-link:hover { color: var(--orange-light); }
.legal-page .footer-copy p { line-height: 1.5; }
.legal-page .design-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.legal-page .telegram-icon { color: #2AABEE; }

@media (max-width: 700px) {
    .legal-page .nav-container {
        min-height: 72px;
        padding: 0 20px;
    }
    .legal-page .nav-logo .logo-img { height: 68px; }
    .legal-page .legal-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .legal-page .legal-nav-toggle span { width: 24px; height: 2px; background: var(--white); }
    .legal-page .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 18px;
        background: var(--dark);
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }
    .legal-page .nav-menu.active { display: flex; }
    .legal-page .nav-menu a { display: block; padding: 12px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .legal-page .legal-section { padding: 56px 0 72px; }
    .legal-page .legal-content { padding: 24px 20px; }
    .legal-page .legal-document h2 { font-size: 18px; }
    .legal-page .legal-download { width: 100%; }
    .legal-page .footer-content { grid-template-columns: 1fr; gap: 24px; }
}
