/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d7a32;
    --primary-green-dark: #1b5e20;
    --primary-green-light: #4caf50;
    --light-green: #62A65D;
    --secondary-green: #66bb6a;
    --text-dark: #4F5665;
    --text-light: #6b7280;
    --bg-light: #f5f5f5;
    --bg-grey: #e5e5e5;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --red: #e53935;
    --orange: #ff9800;
    --yelow: #F1E03A;
    --blue: #2196f3;
    --blue-dark: #2D425F;
}

body {
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-optical-sizing: auto;
    font-style: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.logo-shape {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--light-green);
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg) translate(5px, -5px);
    z-index: 1;
    opacity: 0.7;
}

.nav-menu {
    width: 100%;
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-end;
    margin-right: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;

    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.btn-login {
    background: transparent;
    color: var(--light-green);
    border: 1px solid var(--light-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-login:hover {
    background: var(--light-green);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero секция */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Скрываем placeholder когда есть изображение */
.hero-image:has(img) .image-placeholder {
    display: none;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
    min-height: 400px;
}

.hero-founded {
    text-align: right;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 1rem;
    font-style: normal;
}

/* Метрики */
.metrics {
    padding: 3rem 0;
    background: var(--bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* О компании */
.about {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
    width: fit-content;

    font-size: 32px;
    line-height: 50px;
    letter-spacing: 0;
}

.about .section-title {
    margin-left: calc(50% + 1.5rem);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-placeholder img {
    width: 100%;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.2rem;
}

/* История */
.history {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.history-subtitle {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1em auto 3em 0;
    max-width: 800px;
}

.history .section-title {
    margin-right: auto;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline-item {
    text-align: center;
    position: relative;
}

/* Линия между кругами */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px; /* Центр круга (60px / 2) */
    left: 10px; /* От правого края круга (центр + радиус) */
    width: calc(100% + 2rem - 10px); /* Ширина колонки + gap - половина следующего круга */
    height: 2px;
    background: var(--yelow);
    z-index: 0;
}

.timeline-year {
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    border: 5px solid var(--yelow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 1rem 0;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 24px;
    line-height: 50px;
}

.timeline-content h4 {
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    line-height: 15px;
    letter-spacing: 0;
}

.timeline-content p {
    margin-top: 10px;
    text-align: left;
    color: var(--text-light);
    font-weight: 400;
    font-size: 16px;
    line-height: 15px;
    letter-spacing: 0;
    max-width: 200px;
}

/* Продукция */
.products {
    padding: 5rem 0;
    background: var(--bg-white);
}

.products .section-title {
    margin: 0 auto;
}

.products-intro {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;

    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;

}

.product-card p span{
    color: var(--text-light);
    margin-bottom: 1.5rem;

    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;

}

.product-image {
    margin-top: auto;
    width: 100%;
    height: 140px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    object-fit: cover;
}

    /* Прайс-листы */
.pricelist {
    padding: 5rem 0;
    background: var(--bg-light);
}

.pricelist-intro {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.pricelist-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricelist-item {
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #cdcccc;
}

.pricelist-icon {
    font-size: 2rem;
}

.pricelist-info {
    flex: 1;
}

.pricelist-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricelist-size {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-download {
    background: transparent;
    color: var(--light-green);
    border: 1px solid var(--light-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-download:hover {
    background: var(--primary-green-dark);
    color: white;
}

/* Сотрудничество */
.cooperation {
    padding: 5rem 0;
    background: var(--bg-white);
}

.cooperation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cooperation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cooperation-card {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cooperation-card.green {
    background: var(--primary-green);
}

.cooperation-card.red {
    background: var(--red);
}

.cooperation-card.orange {
    background: var(--orange);
}

.cooperation-card.blue {
    background: var(--blue);
}

.cooperation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cooperation-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.cooperation-right .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
.cooperation-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cooperation-right p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 24px;
    font-weight: 400;
}

.cooperation-right p.bold {
    font-weight: 700;
}

/* Контакты */
.contacts {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-address {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-address p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-hours p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container .map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* CTA секция */
.cta {
    padding: 4rem 0;
    background: var(--primary-green);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Футер */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-letter {
    color: white;
}

.footer-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-middle h4,
.footer-right h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}
.footer-contact  {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact a {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    gap: 1rem;
    display: flex;
    text-decoration: none;
    align-items: start;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
    transition: all 0.3s ease;
}

.footer-contact a img {
    transition: all 0.3s ease;
}

.footer-contact a:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}

/* Адаптивность */
@media (max-width: 968px) {
    .hero-content,
    .about-content,
    .cooperation-content,
    .contacts-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .btn-login {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-right {
        align-items: center;
    }

    .hero-founded {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

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

    .cooperation-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .footer-left {
        order: 2;
        width: 100%;
        grid-column: 1 / -1;
    }
    .footer-right {
        order: 1;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-logo {
        justify-content: start;
    }
}
