:root {
    --primary-color: #99cc33;
    --secondary-color: #262626;
    --bg-color: #ffffff;
    --bg-alt: #f6f6f6;
    --bg-dark: #1a1a1a;
    --text-color: #262626;
    --text-muted: rgba(38, 38, 38, 0.6);
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 32px;
    --container-width: 1300px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
    position: relative;
}

h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 60px;
    font-weight: 700;
}

.section-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

/* Audience Premium Styles */
.audience-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin-top: 60px !important;
}

.audience-card {
    position: relative !important;
    height: 450px !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: var(--bg-dark) !important;
    padding: 0 !important;
}

.audience-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
    z-index: 1 !important;
    opacity: 0.8 !important;
}

.audience-card.card-investors::before {
    background-image: url('assets/img/audience/investors_country.png') !important;
}

.audience-card.card-landowners::before {
    background-image: url('assets/img/audience/landowners_new.png') !important;
}

.audience-card.card-developers::before {
    background-image: url('assets/img/audience/developers.jpg') !important;
}

.audience-card.card-assets::before {
    background-image: url('assets/img/audience/assets.jpg') !important;
}

.audience-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
}

.audience-card:hover::before {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.audience-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 30px 40px !important; /* Немного уменьшил padding сверху */
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    color: var(--white) !important;
    min-height: 280px !important; /* Фиксированная минимальная высота для выравнивания */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.audience-card h3 {
    font-size: 26px !important;
    margin-bottom: 20px !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 64px; /* Балансировка высоты заголовков */
    display: flex;
    align-items: flex-end;
}

.audience-card p {
    font-size: 16px !important;
    opacity: 0.9 !important;
    line-height: 1.6 !important;
    color: var(--white) !important;
}

.audience-card i {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    z-index: 3 !important;
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo img,
header.header-dark-links .logo img {
    /* Фильтр удален для сохранения оригинальных цветов логотипа */
}

nav ul {
    display: flex;
    gap: 15px; /* Уменьшил для компактности */
    list-style: none;
}

nav ul a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em; /* Уменьшил */
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

header.scrolled nav ul a,
header.header-dark-links nav ul a {
    color: var(--secondary-color);
    opacity: 1;
}

nav ul a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

.btn-header {
    padding: 12px 24px; /* Компактнее */
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    border-radius: 100px;
    font-size: 13px; /* Меньше */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
}

header.header-dark-links .btn-header {
    background: var(--secondary-color);
    color: var(--white) !important;
}

header:not(.scrolled):not(.header-dark-links) .btn-header {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero h1 {
    font-size: clamp(40px, 8vw, 84px);
    line-height: 1;
    max-width: 1100px;
}

.hero-sub {
    font-size: 20px;
    max-width: 700px;
    margin: 40px 0;
    opacity: 0.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 24px 48px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 100px;
    font-weight: 600;
    font-size: 18px;
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.philosophy-text {
    font-size: 24px;
    color: var(--text-muted);
}

/* Formats Grid */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.format-card {
    background: var(--bg-alt);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.format-card:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-10px);
}

.format-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.format-card p {
    font-size: 14px;
    opacity: 0.7;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.audience-card {
    border: 1px solid #eee;
    padding: 0;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.audience-card h3 {
    font-size: 32px;
    color: var(--primary-color);
}

/* Workflow 12 Steps */
.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step-item {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.step-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.price-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--bg-alt);
}

.price-card .cost {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-top: 20px;
}

/* Risks */
.risks-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.risk-item {
    background: #fff5f5;
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid #ff4d4d;
}

/* Portfolio */
.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(153, 204, 51, 0.15);
}

.project-image-wrap {
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .project-image-wrap img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.project-attributes {
    margin-bottom: 25px;
    flex: 1;
}

.project-attr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.project-attr:last-child {
    border-bottom: none;
}

.attr-label {
    font-size: 14px;
    color: var(--text-muted);
}

.attr-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.project-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 14px 0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Contracts */
.contract-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contract-card {
    padding: 40px;
    border: 1px dashed var(--primary-color);
    border-radius: var(--border-radius);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Narrow Inserts */
.narrow-insert {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
}

.narrow-insert h2 {
    font-size: 32px;
    margin-bottom: 0;
    font-weight: 500;
}

.narrow-insert .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Call to Action in Inserts */
.narrow-insert .btn-inline {
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.branded-slogan {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slogan-logo {
    height: 45px;
    width: auto;
}

@media (max-width: 768px) {
    .branded-slogan {
        flex-direction: column;
        gap: 15px;
    }
    
    .slogan-logo {
        height: 35px;
    }
}

/* Projects Gallery Update */
.project-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.project-gallery-header h2 {
    margin-bottom: 0;
}

.btn-outline {
    padding: 18px 36px;
    border: 1px solid var(--secondary-color);
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Contact Section */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-sub {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-form {
    background: var(--secondary-color);
    padding: 60px;
    border-radius: var(--border-radius);
    color: var(--white);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form textarea {
    margin-bottom: 30px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form button {
    width: 100%;
    padding: 22px;
    background: var(--primary-color);
    border: none;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Why it's important (Benefits) */
.benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 60px !important;
}

.benefit-item {
    position: relative !important;
    padding: 60px 40px !important;
    background: var(--bg-dark) !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 400px !important;
}

.benefit-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.15 !important;
    z-index: 1 !important;
    transition: opacity 0.5s ease !important;
    filter: grayscale(100%) !important;
}

.benefit-item.benefit-security::before {
    background-image: url('assets/img/benefits/security.jpg') !important;
}

.benefit-item.benefit-efficiency::before {
    background-image: url('assets/img/benefits/efficiency.jpg') !important;
}

.benefit-item.benefit-team::before {
    background-image: url('assets/img/benefits/team.jpg') !important;
}

.benefit-item::after {
    content: attr(data-number) !important;
    position: absolute !important;
    bottom: -20px;
    right: 20px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 1;
}

/* Inner Pages Common */
.inner-hero {
    padding: 180px 0 80px;
    background: var(--bg-alt);
    color: var(--text-color);
}

.inner-hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.inner-hero p {
    font-size: 20px;
    max-width: 800px;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card span {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

/* Philosophy Quote */
.philosophy-quote {
    background: var(--bg-alt);
    padding: 50px;
    border-radius: var(--border-radius);
}

.philosophy-quote p {
    font-size: 18px;
    line-height: 1.6;
}

/* Footer Styling */
.footer {
    padding: 60px 0;
    background: var(--bg-alt);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

.footer-social a {
    color: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.services-list {
    padding-top: 60px !important;
}

/* Service Large Card */
.service-large-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    align-items: center;
    color: var(--text-color);
}

.service-large-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-price-box {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-price-label {
    font-size: 14px;
    opacity: 0.6;
}

.service-price-value {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
    width: 18px;
}

/* Дубликаты удалены и консолидированы в разделе Portfolio */

.project-placeholder {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--primary-color);
    height: 400px;
    border-radius: var(--border-radius);
}

.project-placeholder-light {
    background: var(--bg-alt) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px dashed rgba(38, 38, 38, 0.2) !important;
    transition: var(--transition) !important;
    color: var(--secondary-color) !important;
    height: 400px;
    border-radius: var(--border-radius);
}

.project-placeholder-light .placeholder-content i {
    color: var(--primary-color) !important;
}

.project-placeholder-light h3 {
    color: var(--secondary-color) !important;
}

.project-placeholder-light p {
    color: var(--text-muted) !important;
}

.project-placeholder-light:hover {
    background: #eeeeee !important;
    border-color: var(--primary-color) !important;
}

.placeholder-content {
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.placeholder-content i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.placeholder-content p {
    opacity: 0.6;
    margin-top: 10px;
}

/* Contact Page Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 20px;
    font-weight: 600;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 450px;
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 120px;
}

/* Project Detail Pages */
.project-hero {
    height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.project-hero .container {
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    color: white;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.project-specs {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--border-radius);
}

.project-specs h3 {
    margin-bottom: 20px;
}

.project-specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    aspect-ratio: 4/3;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ========== Lightbox ========== */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: lbFadeIn 0.25s ease forwards;
}

#lightbox.active {
    display: flex;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lb-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: opacity 0.15s ease;
    user-select: none;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-prev:hover {
    background: rgba(153, 204, 51, 0.3);
    transform: translateY(-50%) scale(1.1);
}
.lb-next:hover {
    background: rgba(153, 204, 51, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-prev, .lb-next { width: 42px; height: 42px; }
}


.benefit-item:hover {
    transform: translateY(-15px) !important;
    border-color: rgba(153, 204, 51, 0.3) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(153, 204, 51, 0.1) !important;
}

.benefit-item:hover::before {
    opacity: 0.3 !important;
    filter: grayscale(0%) !important;
}

.benefit-item i {
    position: relative !important;
    z-index: 2 !important;
    background: rgba(153, 204, 51, 0.1) !important;
    color: var(--primary-color) !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    margin-bottom: 30px !important;
    transition: all 0.5s ease !important;
}

.benefit-item:hover i {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    transform: scale(1.1) rotate(5deg) !important;
}

.benefit-item h3 {
    position: relative !important;
    z-index: 2 !important;
    font-size: 28px !important;
    color: var(--white) !important;
    margin-bottom: 20px !important;
}

.benefit-item p {
    position: relative !important;
    z-index: 2 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Scroll Progress */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    z-index: 1001;
    width: 0;
}

/* Header Actions & Burger */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    transition: var(--transition);
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .nav-toggle .bar {
    background-color: var(--secondary-color);
}

/* Burger Open State */
.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }

    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1250px) {
    header {
        padding: 20px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 40px 40px; /* Добавил отступ сверху и снизу */
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px; /* Немного уменьшил отступ между пунктами */
        width: 100%;
        text-align: center;
    }

    .main-nav ul a {
        font-size: 22px; /* Уменьшил размер шрифта */
        font-weight: 600;
        letter-spacing: -0.01em;
        color: var(--white) !important;
        text-transform: none;
        word-break: break-word; /* Позволяет переносить длинные слова, если экран совсем узкий */
    }

    .main-nav ul a:hover {
        color: var(--primary-color) !important;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .btn-header {
        display: none;
        /* Hide in header on tablet/mobile if needed, or keep smaller */
    }

    /* Show Discuss button in mobile menu instead */
    .main-nav::after {
        content: 'Обсудить проект';
        position: absolute;
        bottom: 60px;
        padding: 16px 40px;
        background: var(--primary-color);
        color: var(--secondary-color);
        border-radius: 100px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
    }

    .section-tag {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .philosophy-grid,
    .audience-grid,
    .formats-grid,
    .workflow-timeline,
    .pricing-grid,
    .benefits-grid,
    .project-list,
    .contract-grid,
    .risks-box {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .hero-sub {
        font-size: 14px !important;
        margin: 15px auto 30px !important;
        line-height: 1.5 !important;
        opacity: 0.9 !important;
    }

    .hero div[style*="display: flex"] {
        flex-direction: column;
        gap: 15px !important;
    }

    .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 20px 30px !important;
    }

    .philosophy-text {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }

    .audience-card {
        height: auto !important;
        min-height: 400px !important;
    }

    .audience-content {
        padding: 30px 20px !important;
        width: 100% !important;
    }

    .audience-card h3 {
        font-size: clamp(18px, 6vw, 24px) !important;
        line-height: 1.1 !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        word-wrap: normal !important;
    }

    .benefit-item {
        padding: 35px 25px !important;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-social {
        justify-content: center;
    }

    .narrow-insert .container {
        flex-direction: column !important;
        gap: 25px !important;
    }

    .narrow-insert h2 {
        font-size: 24px !important;
        margin-bottom: 0 !important;
    }

    .inner-hero {
        padding: 120px 0 60px !important;
    }

    .inner-hero h1 {
        font-size: 32px !important;
        margin-bottom: 20px !important;
    }

    .inner-hero p {
        font-size: 16px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
    }

    .stat-card {
        padding: 30px !important;
    }

    .contact-item p {
        font-size: 16px !important;
    }

    .contact-item-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .map-container {
        height: 300px !important;
        margin-bottom: 60px !important;
    }

    .project-hero {
        height: auto !important;
        min-height: 50vh !important;
        padding-top: 140px !important;
        padding-bottom: 40px !important;
    }

    .project-hero h1 {
        font-size: 28px !important;
    }

    .project-details-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .project-specs {
        padding: 30px !important;
    }

    .gallery {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 40px !important;
    }

    .footer {
        padding: 40px 0 !important;
    }

    .stat-card span {
        font-size: 48px !important;
    }

    .contact-inner {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .contact-form {
        padding: 40px 25px !important;
    }

    .project-gallery-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    /* Services Responsive Fix */
    .service-large-card {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px !important;
    }

    .service-info {
        order: 1;
    }

    .service-price-box {
        order: 2;
        padding: 30px !important;
        text-align: center;
    }

    .service-price-value {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card span {
        font-size: 40px;
    }
}

/* Comprehensive Services List */
.services-list-comprehensive {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 60px;
    margin-top: 40px;
}

.services-list-comprehensive li {
    font-size: 18px;
    position: relative;
    padding: 15px 15px 15px 40px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 12px;
    cursor: default;
    opacity: 0;
    transform: translateX(-20px);
    transition-delay: 0.1s; /* Единая небольшая задержка для всех */
}

.reveal.revealed .services-list-comprehensive li {
    opacity: 1;
    transform: translateX(0);
}

.services-list-comprehensive li::before {
    content: '→';
    position: absolute;
    left: 10px;
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.services-list-comprehensive li:hover {
    background: rgba(153, 204, 51, 0.1);
    padding-left: 50px;
    color: var(--primary-color);
}

.services-list-comprehensive li:hover::before {
    left: 20px;
    transform: scale(1.2);
}

/* Staggered Animation removed as per user request */

@media (max-width: 992px) {
    .services-list-comprehensive {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Importance Text Block */
.importance-text-block {
    max-width: 1000px;
    margin-bottom: 50px;
}

.importance-text-block p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
}

@media (max-width: 768px) {
    .importance-text-block p {
        font-size: 16px;
    }
}

/* Landowners Page Styles */
.workflow-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--primary-color);
    opacity: 0.3;
}

.workflow-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    position: relative;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 20px;
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.step-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-step h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.workflow-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.stat-card span {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition);
}

.stat-card:hover span {
    color: var(--white) !important;
    text-shadow: 0 0 20px rgba(153, 204, 51, 0.5);
}

.stat-card p {
    font-size: 18px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .workflow-timeline::before {
        display: none;
    }
    
    .workflow-step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stat-card span {
        font-size: 48px;
    }
}

/* Landowners Scheme Section */
.scheme-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.scheme-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    text-align: center;
}

.scheme-circle {
    width: 240px;
    height: 240px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scheme-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(153, 204, 51, 0.3);
    border-color: var(--secondary-color);
}

.scheme-circle .title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.scheme-circle .details {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-muted);
}

.text-below {
    margin-top: 25px;
    width: 100%;
}

.text-below .main-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.text-below .sub-text {
    font-size: 16px;
    display: block;
    line-height: 1.4;
    color: var(--text-muted);
}

.big-percent {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--primary-color);
}

.big-percent-sub {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 600;
    display: block;
    color: var(--secondary-color);
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.arrow-svg {
    width: 65px;
    height: 45px;
    transition: var(--transition);
}

.arrow-svg polygon {
    fill: var(--primary-color);
    transition: var(--transition);
}

.scheme-container:hover .arrow-svg polygon {
    fill: var(--secondary-color);
}

.arrow-svg.reverse {
    transform: rotate(180deg);
}

@media (max-width: 950px) {
    .scheme-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .scheme-column {
        width: 100%;
        margin-bottom: 10px;
    }

    .arrow-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .arrow-svg {
        transform: rotate(90deg) !important;
    }
    
    .arrow-svg.reverse {
        transform: rotate(270deg) !important;
    }
}

/* Flowchart Section (Landowners Part 2) */
.flowchart-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 80px auto 0;
}

.flowchart-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    font-size: 16px;
    line-height: 1.25; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flowchart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(153, 204, 51, 0.2);
    border-color: var(--primary-color);
}

.flowchart-card strong {
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Unbounded', sans-serif;
    margin-bottom: 5px;
}

.flowchart-card span {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 3px; 
    margin-bottom: 3px;
}

/* УРОВЕНЬ 1 */
.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    gap: 15px;
}

.top-row .flowchart-card {
    flex: 1;
    padding: 20px 15px;
}

.arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.arrow-right svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}

/* ВЕРТИКАЛЬНЫЕ СОЕДИНИТЕЛИ */
.vertical-connector {
    width: 2px;
    height: 40px;
    background-color: var(--primary-color);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* РЯДЫ ДЕРЕВА */
.tree-row {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0 10px;
}

.tree-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.tree-col .flowchart-card {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.line-up, .line-down {
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
    z-index: 1;
}

.h-line-top, .h-line-bottom {
    position: absolute;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 0;
    width: 100%;
    left: 0;
}

.h-line-top { top: 0; }
.h-line-bottom { bottom: 0; }

.tree-col:first-child .h-line-top,
.tree-col:first-child .h-line-bottom { width: 50%; left: 50%; }
.tree-col:last-child .h-line-top,
.tree-col:last-child .h-line-bottom { width: 50%; left: 0; }

/* УРОВЕНЬ 3 (Центральный блок) */
.central-block {
    margin: 30px 0;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 5;
}

.central-card {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 20px;
    padding: 25px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(153, 204, 51, 0.3);
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
}

.central-card strong { 
    color: var(--secondary-color); 
    display: inline;
}

.central-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(153, 204, 51, 0.4);
}

.mobile-phase { display: none; }

@media (max-width: 950px) {
    .flowchart-container {
        align-items: flex-start;
        position: relative;
        padding-left: 30px;
    }

    .flowchart-container::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 20px;
        bottom: 20px;
        width: 3px;
        background: rgba(153, 204, 51, 0.3);
        border-radius: 3px;
    }

    .arrow-right, .vertical-connector, .h-line-top, .h-line-bottom, .line-up, .line-down {
        display: none !important;
    }

    .top-row, .tree-row {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        width: 100%;
        margin-bottom: 15px;
    }

    .tree-col { padding: 0; }

    .flowchart-card, .central-block {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 18px 20px;
        align-items: flex-start;
    }

    .central-block { margin: 10px 0; max-width: 100%; }

    .flowchart-card::before, .central-card::before {
        content: '';
        position: absolute;
        left: -27px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        background: var(--primary-color);
        border: 3px solid var(--white);
        border-radius: 50%;
        z-index: 3;
        box-shadow: 0 0 0 2px rgba(153, 204, 51, 0.4);
    }

    .central-card::before { background: var(--secondary-color); border-color: var(--primary-color); }

    .mobile-phase {
        display: block;
        font-family: 'Unbounded', sans-serif;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary-color);
        font-weight: 700;
        margin: 25px 0 15px 0;
        position: relative;
        background: var(--bg-color);
        z-index: 5;
        padding: 5px 0;
    }
}