/* ----- RESET & БАЗА ----- */

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

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: #F9FBF9;
    color: #1A2E1A;
    line-height: 1.5;
    scroll-behavior: smooth;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 16px;
    color: #1B4D1B;
}

.section-subtitle {
    text-align: center;
    color: #4A6A4A;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 56px auto;
}

.highlight {
    color: #2E7D32;
    background: linear-gradient(120deg, #E8F5E9, #C8E6C9);
    padding: 0 6px;
    border-radius: 12px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #2E7D32;
    color: white;
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.2);
}

.btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2E7D32;
    color: #2E7D32;
}

.btn-outline:hover {
    background: #E8F5E9;
    transform: translateY(-2px);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    z-index: 100;
    border-bottom: 1px solid #E0ECDE;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

/* Логотип в шапке */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    display: block;
}

.logo a {
    display: block;
    line-height: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #2B3B2B;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2E7D32;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2E7D32;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7EF 100%);
    padding: 80px 0 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    background: #E8F5E9;
    padding: 6px 16px;
    border-radius: 60px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #3E5A3E;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    flex: 0.7;
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 48px;
    padding: 32px 24px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2E7D32;
}

/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 1px solid #E4EFE2;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -8px rgba(46, 125, 50, 0.15);
    border-color: #C8E6C9;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F0F7EF;
}

.product-card h3 {
    font-size: 1.3rem;
    margin: 16px 20px 8px;
}

.product-card p {
    color: #4A6A4A;
    margin: 0 20px 12px;
    font-size: 0.9rem;
}

.product-price {
    margin: 0 20px 20px;
    font-weight: 700;
    color: #1B5E20;
    border-top: 1px solid #E4EFE2;
    padding-top: 12px;
}

/* Активы и проекты */
.alt-bg {
    background: #F6FAF5;
}

.assets-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.asset-card,
.project-card {
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #E4EFE2;
    transition: 0.2s;
}

.asset-card i,
.project-card i {
    font-size: 2.2rem;
    color: #2E7D32;
    margin-bottom: 18px;
}

.asset-card h3,
.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.asset-card p,
.project-card p {
    color: #4A6A4A;
}

/* Инвестор-блок */
.investor-section {
    background: linear-gradient(125deg, #E8F5E9, #FFFFFF);
}

.investor-card {
    background: white;
    border-radius: 48px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #C8E6C9;
}

.investor-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.investor-card p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #3E5A3E;
}

.investor-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.investor-contact {
    font-size: 1rem;
    background: #F0F7EF;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 60px;
}

/* Footer */
footer {
    background: #1E2A1E;
    color: #CCE0CC;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
}

.logo-img-footer {
    height: 40px;
    width: auto;
    max-width: 180px;
    display: block;
    filter: brightness(0) invert(1);
    /* инверсия для тёмного фона */
}

.footer-brand p {
    max-width: 260px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links h4 {
    color: #A5D6A7;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: #BDD9BD;
}

.footer-links a {
    color: #BDD9BD;
    text-decoration: none;
}

.footer-links a:hover {
    color: #A5D6A7;
}

.max-icon {
    background: url('/image/icons/Max_logo.svg') center/contain no-repeat;
    width: 24px;
    height: 24px;
    display: inline-block;
    filter: invert(1);
}

.social-icons a {
    color: #BDD9BD;
    font-size: 1.4rem;
    margin-right: 18px;
    transition: 0.2s;
}

.social-icons a:hover {
    color: #A5D6A7;
}

.copyright {
    text-align: center;
    border-top: 1px solid #2E3E2E;
    padding-top: 24px;
    font-size: 0.8rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 550px;
    width: 90%;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    animation: fadeInUp 0.3s;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #777;
}

.modal-desc {
    background: #F6FAF5;
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #2B3B2B;
    border-left: 4px solid #2E7D32;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D0E0D0;
    border-radius: 24px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E7D32;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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


/* Адаптивность */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #E4EFE2;
    }

    .nav-links.active {
        display: flex;
    }

    section {
        padding: 60px 0;
    }

    .products-grid {
        gap: 20px;
    }

    .investor-card {
        padding: 30px 20px;
    }

    .logo-img {
        height: 36px;
    }

    .logo-img-footer {
        height: 32px;
    }
}

/* Чек-бокс согласия */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4A6A4A;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #2E7D32;
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2E7D32;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(46, 125, 50, 0.95);
    border-left: 4px solid #FFD966;
}

.toast-notification.error {
    background: rgba(211, 47, 47, 0.95);
    border-left-color: #FFB74D;
}

.toast-icon {
    font-size: 24px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Для мобильных */
@media (max-width: 600px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 12px 16px;
    }
}


/* ---------- Cookie-баннер ---------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 999;
  border-top: 2px solid #C8E6C9;
  font-size: 0.95rem;
  color: #2B3B2B;
  line-height: 1.4;
}

.cookie-consent p {
  margin: 0;
  max-width: 70%;
}

.cookie-consent a {
  color: #2E7D32;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent a:hover {
  text-decoration: none;
}

.cookie-consent .btn {
  white-space: nowrap;
  padding: 12px 28px;
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent p {
    max-width: 100%;
  }
}
