/* ===========================
   Путь Преодоления — Main CSS
   =========================== */

:root {
    --pp-primary: #1B4332;
    --pp-accent:  #52B788;
    --pp-bg:      #F8F6F1;
    --pp-text:    #1A1A1A;
    --pp-btn-maks: #52B788;
    --pp-btn-call: #1B4332;
    --pp-white:   #ffffff;
    --pp-light:   #EDF6EF;
    --pp-muted:   #5a6b5c;
    --pp-radius:  12px;
    --pp-shadow:  0 4px 24px rgba(27,67,50,0.10);
    --pp-transition: 0.28s cubic-bezier(0.4,0,0.2,1);
    --ff-display: 'Playfair Display', serif;
    --ff-body:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SECTION HEADINGS ── */
.section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--pp-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.section-sub {
    color: var(--pp-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform var(--pp-transition), box-shadow var(--pp-transition), opacity var(--pp-transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,67,50,0.20); }
.btn:active { transform: translateY(0); }

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

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

.btn-outline {
    background: transparent;
    color: var(--pp-primary);
    border: 2px solid var(--pp-primary);
}
.btn-outline:hover { background: var(--pp-primary); color: var(--pp-white); }

/* ═══════════════════════════
   TOPBAR
═══════════════════════════ */
.topbar {
    background: var(--pp-primary);
    color: var(--pp-white);
    text-align: center;
    padding: 10px 24px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.topbar a {
    color: var(--pp-white);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity var(--pp-transition);
}

.topbar a:hover { opacity: 0.85; }

/* ═══════════════════════════
   HEADER / NAV
═══════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248,246,241,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27,67,50,0.10);
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    height: 68px;
    gap: 24px;
}

.site-logo {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pp-primary);
    line-height: 1.2;
    flex-shrink: 0;
}

.site-logo span { color: var(--pp-accent); }

.primary-nav { display: flex; gap: 4px; }

.primary-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--pp-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--pp-transition), color var(--pp-transition);
}
.primary-nav a:hover { background: var(--pp-light); color: var(--pp-primary); }

.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

/* Burger */
.burger { display: none; cursor: pointer; background: none; border: none; padding: 6px; }
.burger span {
    display: block; width: 24px; height: 2px;
    background: var(--pp-primary); margin: 5px 0;
    transition: var(--pp-transition);
    border-radius: 2px;
}

/* ═══════════════════════════
   HERO
═══════════════════════════ */








    to   { opacity: 1; transform: translateY(0); }
}





.hero-title em {
    font-style: normal;
    color: var(--pp-accent);
}











.hero-scroll::before {
    content: '';
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
}

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

/* ═══════════════════════════
   STATS
═══════════════════════════ */
.stats-section {
    background: var(--pp-primary);
    padding: 56px 0;
}

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

.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--pp-radius);
    transition: background var(--pp-transition);
}

.stat-item:hover { background: rgba(255,255,255,0.08); }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.stat-num {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--pp-accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ═══════════════════════════
   ABOUT
═══════════════════════════ */
.about-section { padding: 96px 0; }

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--pp-muted);
    margin-bottom: 1.2em;
    font-size: 1.05rem;
}

.about-features {
    display: flex; flex-direction: column; gap: 16px;
    margin: 28px 0 36px;
}

.about-feature {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--pp-light);
    padding: 16px 20px;
    border-radius: var(--pp-radius);
    border-left: 3px solid var(--pp-accent);
}

.about-feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.about-feature-text strong {
    display: block;
    color: var(--pp-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature-text span { color: var(--pp-muted); font-size: 0.9rem; }

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 520px;
    box-shadow: var(--pp-shadow);
}

.about-image-card {
    position: absolute;
    bottom: -20px; left: -24px;
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    padding: 18px 22px;
    box-shadow: var(--pp-shadow);
    display: flex; align-items: center; gap: 14px;
}

.about-image-card-icon {
    width: 48px; height: 48px;
    background: var(--pp-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.about-image-card-text strong { display: block; color: var(--pp-primary); font-weight: 700; font-size: 1.1rem; }
.about-image-card-text span { color: var(--pp-muted); font-size: 0.85rem; }

/* ═══════════════════════════
   GALLERY
═══════════════════════════ */
.gallery-section { padding: 96px 0; background: var(--pp-light); }

.gallery-header { text-align: center; margin-bottom: 48px; }
.gallery-header .section-sub { margin: 0 auto; }

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--pp-radius);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 16/9; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute; inset: 0;
    background: rgba(27,67,50,0);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--pp-transition);
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(27,67,50,0.3);
}

.gallery-item-overlay svg { opacity: 0; transition: opacity var(--pp-transition); fill: white; }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 24px; right: 32px;
    font-size: 2.5rem; color: white; cursor: pointer; background: none; border: none;
    line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 2.5rem; color: white; cursor: pointer; background: none; border: none;
    padding: 12px; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ═══════════════════════════
   RESULTS
═══════════════════════════ */
.results-section { padding: 96px 0; }
.results-header { text-align: center; margin-bottom: 48px; }

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

.results-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pp-shadow);
    transition: transform var(--pp-transition), box-shadow var(--pp-transition);
}

.results-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(27,67,50,0.15);
}

.results-item img { width: 100%; height: auto; object-fit: cover; }

/* ═══════════════════════════
   FAQ
═══════════════════════════ */
.faq-section { padding: 96px 0; background: var(--pp-light); }
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-header .section-sub { margin: 0 auto; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27,67,50,0.07);
    border: 1px solid rgba(27,67,50,0.08);
}

.faq-question {
    width: 100%; background: none; border: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px;
    text-align: left;
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pp-primary);
    gap: 16px;
    transition: background var(--pp-transition);
}

.faq-question:hover { background: var(--pp-light); }

.faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--pp-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--pp-primary);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform var(--pp-transition), background var(--pp-transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--pp-accent); color: white; }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.38s ease, padding 0.38s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 22px; }

.faq-answer p { color: var(--pp-muted); line-height: 1.7; font-size: 0.97rem; }

/* ═══════════════════════════
   CTA SECTION
═══════════════════════════ */
.cta-section {
    padding: 96px 0;
    background: var(--pp-primary);
    text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }

.cta-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--pp-white);
    margin-bottom: 16px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-phone {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--pp-accent);
    margin-bottom: 32px;
    display: block;
}

.cta-phone a { color: inherit; text-decoration: none; }
.cta-phone a:hover { text-decoration: underline; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.site-footer {
    background: #111e17;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .site-logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 280px; }

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color var(--pp-transition);
}
.footer-col a:hover { color: var(--pp-accent); }

.footer-phone {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pp-accent);
    display: block;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-badge {
    background: rgba(82,183,136,0.12);
    border: 1px solid rgba(82,183,136,0.25);
    color: var(--pp-accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ═══════════════════════════
   MOBILE MENU
═══════════════════════════ */
.mobile-menu {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: var(--pp-primary);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--ff-display);
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--pp-accent); }

.mobile-menu .mobile-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; width: 240px; }
.mobile-menu .btn { justify-content: center; }

.mobile-menu-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none;
    font-size: 2rem; color: white; cursor: pointer;
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { gap: 48px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item:nth-child(5n+1) { grid-column: span 1; aspect-ratio: 4/3; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
    .primary-nav { display: none; }
    .header-cta { display: none; }
    .burger { display: block; }
    .mobile-menu { display: flex; }


    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { order: -1; }
    .about-image-wrap img { height: 280px; }
    .about-image-card { display: none; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item:nth-child(5n+1) { grid-column: span 2; }

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

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

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

    .cta-phone { font-size: 1.5rem; }

    .topbar a { font-size: 1.1rem; }
}

/* Small Mobile — ≤ 480px */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(5n+1) { grid-column: span 1; }
    .hero-btns { flex-direction: column; }
    .cta-btns { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn { width: 100%; justify-content: center; }
    .hero-btns .btn { width: auto; }
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Inline SVG icons ── */
.ico {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}
.hero-tag .ico { top: -1px; }
.btn .ico { top: -1px; }
.hero-badge .ico { top: -1px; }


/* ═══════════════════════════════════════
   HERO — FULLSCREEN BG PHOTO + OVERLAY
═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}



/* Dark green tinted overlay — matches screenshot */
.hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(10, 38, 24, 0.80);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 0 100px;
    animation: heroFadeUp 0.9s ease both;
}

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

/* ── Phone number — large, bold, top ── */
.hero-phone-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}
.hero-phone-top:hover { opacity: 0.85; }
.hero-phone-top svg { stroke: #ffffff; flex-shrink: 0; }

/* ── Title ── */
.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}

/* ── Subtitle ── */
.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Tags / badges ── */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(82,183,136,0.20);
    border: 1px solid rgba(82,183,136,0.55);
    color: rgba(255,255,255,0.95);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ── Buttons ── */
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Maks button stays solid green */
.btn-maks {
    background: var(--pp-btn-maks);
    color: #ffffff;
}

/* Call button — outline style on dark bg (matches screenshot) */
.btn-call-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background var(--pp-transition), border-color var(--pp-transition), transform var(--pp-transition);
}
.btn-call-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ── Scroll arrow ── */
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
}

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

/* ── Floating call button bottom-right (like screenshot) ── */
.hero-float-call {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8533a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(232,83,58,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.hero-float-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(232,83,58,0.55);
}
.hero-float-call svg { stroke: white; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .hero-content { padding: 100px 0 80px; }
    .hero-phone-top { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .hero-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-call-outline { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-phone-top { font-size: 1.6rem; gap: 8px; }
    .hero-phone-top svg { width: 20px; height: 20px; }
}
