/* style.css */
:root {
    --primary: #4bc851;
    /* зелёный */
    --primary-dark: #2b9b33;
    --black: #212121;
    --white: #ffffff;
    --gray: #e8e0e0;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    line-height: 1.5;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Слайдер */
.hero-slider {
    height: 80vh;
    min-height: 500px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.slide-content {
    max-width: 800px;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Секции */
.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--gray);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--primary);
    margin-top: 0.5rem;
}

/* О компании */
.about__content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about__text {
    flex: 2;
    font-size: 1.1rem;
}

.about__stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary);
}

.project-card h3 {
    margin: 1rem 0 0.5rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Блок производства (на главной) */
.teaser-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.teaser-content {
    flex: 1;
}

.teaser-image {
    flex: 1;
}

.teaser-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Новости (сетка) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.news-card.full {
    grid-column: 1 / -1;
}

.news-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-card h3 {
    margin-bottom: 0.75rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Страницы (шапка) */
.page-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Производство (детальная) */
.production-block {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.production-block.reverse {
    flex-direction: row-reverse;
}

.production-text {
    flex: 1;
}

.production-image {
    flex: 1;
}

.production-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: var(--gray);
    border-radius: 8px;
    border-bottom: 4px solid var(--primary);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: 3rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__col h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__col a:hover {
    color: var(--primary);
}

.footer__bottom {
    background-color: #111;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav__list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about__content {
        flex-direction: column;
    }

    .teaser-wrapper {
        flex-direction: column;
    }

    .production-block {
        flex-direction: column !important;
    }
}

/* Дополнительные стили для страницы контактов */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contacts__list {
    list-style: none;
    margin: 2rem 0;
}

.contacts__list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.contacts__list li::before {
    content: "✔";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contacts__list a {
    color: var(--primary);
    text-decoration: none;
}

.contacts__list a:hover {
    text-decoration: underline;
}

.contacts__map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contacts__additional {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    .contacts__wrapper {
        grid-template-columns: 1fr;
    }
}

/* Project page */
.project-page {
    padding: 3rem 0;
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-title {
    grid-column: 1 / -1;
    font-size: 2.5rem;
    color: var(--primary);
}

.project-gallery {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-gallery .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.project-meta span {
    background: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border-left: 3px solid var(--primary);
}

.project-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    background: transparent !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.project-info .features-list {
    margin: 1.5rem 0;
    list-style: none;
}

.project-info .features-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.project-info .features-list li::before {
    content: "✔";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-info .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .project-detail {
        grid-template-columns: 1fr;
    }
}