@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap&subset=cyrillic');

/* ============================================================
   Основные стили сайта Service-Pack (светлая адаптация тёмного стиля)
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Глобальные переменные для тёмных акцентов ---------- */
:root {
    --btn-dark-bg: #0f172a;
    --btn-dark-text: #ffffff;
    --btn-dark-border: rgba(148, 163, 184, 0.25);
    --btn-dark-hover-bg: #1e293b;
    --btn-accent: #00672A;
    --btn-accent-hover: #004d1f;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;          /* Light — лёгкий текст */
    color: #333;
    background-color: #ffffff;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;          /* было 600, станет чуть легче */
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: var(--btn-dark-bg);
    color: var(--btn-dark-text);
    border-color: var(--btn-dark-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.btn:hover {
    background: var(--btn-dark-hover-bg);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Основная зелёная кнопка */
.btn-primary {
    background: var(--btn-accent);
    border-color: var(--btn-accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--btn-accent-hover);
    border-color: var(--btn-accent-hover);
}

/* Обводочная кнопка (тёмная рамка) */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.35);
    color: #0f172a;
}
.btn-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #0f172a;
}

/* =============== HEADER =============== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left .logo img {
    height: 100px;
    width: auto;
    display: block;
}

.slogan {
    font-size: 26px;
    font-weight: 300;          /* было 500 */
    color: #333;
    line-height: 1.3;
    display: inline-block;
    vertical-align: middle;
    margin-left: 25px;
    text-align: left;
}

/* =============== ТЕЛЕФОНЫ В ХЕДЕРЕ =============== */
.header-phones-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.header-phones-title {
    font-weight: bold;
    font-size: 15px;
    color: #00672A;
    white-space: nowrap;
}

.header-phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.header-phone-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* =============== NAVIGATION =============== */
.main-nav {
    background: #00672A;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
    font-family: inherit;
}

.nav-list > li > a:hover {
    background: #004d1f;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    list-style: none;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-family: inherit;
}

.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: #00672A;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* =============== BANNER SLIDER =============== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 10;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    padding: 0;
    box-sizing: border-box;
}

.slider-dot.active,
.slider-dot:hover {
    background: #ffffff;
    border-color: #ffffff;
}

/* =============== HERO =============== */
.hero {
    background: #00672A;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 26px;
    font-weight: 300;          /* было 500 */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* =============== PRODUCT GALLERY =============== */
.product-gallery {
    padding: 50px 20px;
    background: #fff;
}

/* ---------- СЕТКА КАРТОЧЕК: 5 колонок, 2 строки ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(0, 103, 42, 0.25);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-image {
    height: 200px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    object-fit: contain;
    max-height: 100%;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #00672A;
    font-weight: 400;
}

.product-code {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-info small {
    color: #999;
    font-size: 12px;
}

/* ---------- КНОПКА "БОЛЬШЕ ТОВАРОВ" ---------- */
.product-card--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00672A;
    border-color: #00672A;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    min-height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.product-card--more:hover {
    background: #004d1f;
    border-color: #004d1f;
    box-shadow: 0 16px 36px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.product-more-text {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
}

.product-more-arrow {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 4px;
    transform: translateX(2px);
}

.product-more-arrow-icon {
    width: 28px;
    height: 28px;
    display: block;
    margin-top: 4px;
}

/* =============== FOOTER =============== */
.site-footer {
    background: #00672A;
    color: #ffffff;
    padding: 30px 20px 15px;
    font-weight: 300;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 20px;
}

.footer-col {
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    padding-top: 15px;
    font-size: 13px;
    opacity: 0.9;
}

/* =============== СТРАНИЦА "О НАС" =============== */
.about-hero {
    background: none;
    padding: 50px 20px 30px;
    text-align: center;
    font-weight: 400;
}

.about-hero h1 {
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    color: #00672A;
    text-align: justify;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-body {
    padding: 50px 20px;
    background: #ffffff;
}

.about-body .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-body p {
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    text-align: justify;
    margin-bottom: 20px;
    font-weight: 300; 
}

.about-gallery {
    padding: 30px 20px 60px;
    background: #f9f9f9;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-item {
    width: 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;                     /* увеличил до 12px, как у карточек товаров */
    border: 1px solid rgba(15, 23, 42, 0.08); /* лёгкая обводка, идентичная .product-card */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; /* добавил анимацию рамки */
    cursor: pointer;
    background: #fff;                        /* чтобы обводка была видна */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: rgba(0, 103, 42, 0.25);    /* при наведении рамка становится зеленоватой, как у карточек */
}

/* =============== LIGHTBOX =============== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #00672A;
}

/* =============== СТРАНИЦА КОНТАКТОВ =============== */
.contacts-heading {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.contact-item a {
    color: inherit;
    text-decoration: underline;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%);
}

.contacts-body .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-section {
    padding: 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 5 колонок */
    gap: 25px;
    max-width: 1300px;         /* шире для 5 колонок */
    margin: 0 auto;
}

/* =============== Адаптивность =============== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-slider {
        height: 40vh;
    }
    .site-header {
        flex-direction: column;
        gap: 15px;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 колонки на планшетах */
    }
}