:root {
    --primary-color: #005B41;
    --secondary-color: rgba(212, 175, 55, 0.9);
    --text-color: #000;
    --bg-color: #ddc88d;
    --light-gray-bg: rgba(241, 241, 241, 0.7);
    --white-bg: rgba(255, 255, 255, 0.5);
}
::selection {
  background-color: rgba(0, 91, 65, 0.7);
  color: #fff;
}

::-moz-selection {
  background-color: rgba(0, 91, 65, 0.7);
  color: #fff;
}
/* Стилизация скроллбара для Webkit-браузеров (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--light-gray-bg);
}

/* Стилизация скроллбара для Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray-bg);
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    color: var(--text-color);
    background-color: #c7a656;
    background-image: url('https://www.transparenttextures.com/patterns/gold-scale.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex-grow: 1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--primary-color); }
a { color: var(--primary-color); text-decoration: none; }
section { padding: 80px 0; }

/* Alternating section backgrounds (bands) */
#advantages,
#services,
#team {
    background-color: var(--white-bg);
}

.site-header {
    background-color: var(--bg-color);
    padding: 15px 0;
    border-bottom: 1px solid #005B41;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.1em; font-weight: bold; color: var(--primary-color); line-height: 1.4; }
.main-nav { display: flex; gap: 25px; }

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1em;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-contacts .phone-number {
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
}
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
.logo-link {
    text-decoration: none;
}

/* === СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ === */
.hero { padding: 60px 0; }
.hero-container { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; }
.hero-image { flex: 1; text-align: right; }
.hero-image img { max-width: 100%; border-radius: 8px; }
.hero h1 { font-size: 2.8em; line-height: 1.2; margin-bottom: 20px; text-transform: uppercase; }
.hero .subtitle { font-size: 1.2em; opacity: 0.9; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-button {
    padding: 15px 25px; text-decoration: none; color: #fff; border-radius: 5px;
    font-weight: bold; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-button:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.hero-button.whatsapp { background-color: var(--primary-color) }
.hero-button.telegram { background-color: var(--primary-color) }

.advantages-section { padding: 40px 0; }
.advantages-section .container { display: flex; justify-content: space-around; gap: 30px; flex-wrap: nowrap; }
.advantage-card { 
    text-align: center; 
    max-width: 250px; 
    background-color: var(--light-gray-bg);
    padding: 20px;
    border-radius: 8px;
}
.advantage-card i { font-size: 2.5em; color: var(--secondary-color); margin-bottom: 15px; }
.advantage-card h3 { font-size: 1.2em; margin-bottom: 10px; }

.content-section { text-align: center; }
.content-section h2, .services-section h2, .process-section h2, .team-section h2, .contacts-section h2 { font-size: 2.5em; margin-bottom: 50px; text-align: center; }

.about-text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1em;
    background-color: var(--light-gray-bg);
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.about-text-block p { margin-bottom: 1em; }


.services-section {}
.service-category { margin-bottom: 50px; position: relative; }
.service-category h3 { font-size: 1.8em; text-align: center; margin-bottom: 10px; }
.service-category .category-description { text-align: center; max-width: 700px; margin: 0 auto 30px auto; font-size: 1.1em; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
    border: 1px solid #e0e0e0; padding: 30px; border-radius: 8px;
    background-color: var(--white-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.service-card h3, .service-card h4 { margin-top: 0; font-size: 1.3em;}
.service-card p { flex-grow: 1; }
.service-card a { display: inline-block; margin-top: 20px; color: var(--secondary-color); font-weight: bold; }
.service-card.placeholder { background-color: #f9f9f9; align-items: center; justify-content: center; text-align: center; color: #888; }

/* Visual separators between service categories */
.services-section .service-category + .service-category { margin-top: 70px; }
.services-section .service-category + .service-category::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Category info block (intro above services) */
.category-info {
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: var(--white-bg);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px 24px;
    text-align: left;
}
.category-info p { margin: 0 0 12px 0; line-height: 1.6; }
.category-info ul { margin: 10px 0 10px 20px; }
.category-info li { margin-bottom: 6px; }

.process-steps { display: flex; justify-content: space-between; gap: 40px; text-align: center; }

.step {
    position: relative;
    width: 25%;
    background-color: var(--light-gray-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 60px; height: 60px; background-color: var(--secondary-color); color: var(--text-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8em; font-weight: bold; margin: 0 auto 20px auto;
}
.step h3 { font-size: 1.3em; margin-bottom: 10px; }

.team-section {}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 100px; }
.team-member { 
    text-align: center; 
    background-color: var(--light-gray-bg);
    padding: 20px;
    border-radius: 8px;
}
.team-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 5px solid var(--white-bg); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.team-member h3 { margin-bottom: 5px; }
.team-phone { font-size: 1.1em; font-weight: bold; margin-top: 10px; }
.team-phone a { color: var(--primary-color); }

.contact-info {
    text-align: center;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1em;
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
#map { border-radius: 8px; }

/* === СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ === */
.page-header { background-color: var(--light-gray-bg); padding: 40px 0; border-bottom: 1px solid #e0e0e0; }
.page-header h1 { font-size: 2.8em; margin: 0; }
.page-content { display: flex; gap: 40px; padding-top: 40px; padding-bottom: 60px; }

.content-body {
    flex-grow: 1;
    background-color: var(--light-gray-bg);
    padding: 20px 30px;
    border-radius: 8px;
}
.content-body p, .content-body li { margin-bottom: 1.5em; font-size: 1.1em; }

.sidebar { flex-basis: 300px; flex-shrink: 0; }
.sidebar h3 { margin-top: 0; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li a { display: block; padding: 10px 15px; text-decoration: none; color: var(--text-color); border-radius: 5px; transition: background-color 0.2s; }
.sidebar ul li a:hover { background-color: #e9e9e9; }
.sidebar ul li a.active { background-color: var(--primary-color); color: white; font-weight: bold; }

.cta-block { margin-top: 40px; padding: 30px; background-color: var(--light-gray-bg); border-radius: 8px; text-align: center; }
.cta-block .hero-buttons { justify-content: center; }

.article-list { flex-grow: 1; }
.article-preview { background-color: var(--white-bg); padding: 30px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #e0e0e0; }
.article-preview h3 { margin-top: 0; }
.read-more { display: inline-block; margin-top: 15px; color: var(--secondary-color); font-weight: bold; }
.back-link { font-weight: bold; }

.document-block {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--white-bg);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}
.document-block h4 { margin-top: 0; }
.document-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: bold; color: var(--primary-color);
}
.document-link i { font-size: 1.5em; color: #D32F2F; }

.article-tag {
    display: inline-block; background-color: var(--secondary-color); color: var(--text-color);
    padding: 4px 10px; border-radius: 5px; font-size: 0.8em;
    font-weight: bold; margin-bottom: 15px;
}

/* === КНОПКА "НАВЕРХ" === */
.back-to-top {
    position: fixed; bottom: 25px; right: 25px; background-color: var(--primary-color);
    color: white; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none; opacity: 0;
    pointer-events: none; transition: opacity 0.4s, transform 0.4s; z-index: 1000;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background-color: #004230; transform: scale(1.1); }


/* === Стили для кликабельного логотипа и его расшифровки === */
.logo-link {
    text-decoration: none;
}
.logo-full-name {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    color: var(--text-color);
    opacity: 0.8;
}

/* === Стили для раскрывающегося текста === */
.advantage-full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    margin-top: 15px;
}
.advantage-full-text.open {
    max-height: 1000px; /* Большое значение для автоматической высоты */
    opacity: 1;
}
.advantage-read-more {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9em;
}
.advantage-read-more:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}
.team-details-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1em;
}
.team-details-btn:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}
.team-member-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0;
}

/* Service details toggle */
.service-details { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 0; }
.service-details.open { max-height: 3000px; padding: 15px 0 0 0; }
.service-details p { margin: 0 0 10px 0; }
.service-details-btn {
    margin-top: 12px; padding: 8px 14px; border: 1px solid var(--secondary-color); background: transparent; color: var(--secondary-color); border-radius: 6px; cursor: pointer; font-weight: bold;
}
.service-details-btn:hover { background: var(--secondary-color); color: var(--text-color); }
.team-member-details.is-visible {
    max-height: 300px;
    margin-top: 15px;
}

/* === Базовые стили меню-бургера (скрыто на десктопе) === */
.hamburger-menu {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.hamburger-menu-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hamburger-menu-inner,
.hamburger-menu-inner::before,
.hamburger-menu-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.hamburger-menu-inner { top: 50%; transform: translateY(-50%); }
.hamburger-menu-inner::before, .hamburger-menu-inner::after { content: ''; display: block; }
.hamburger-menu-inner::before { top: -10px; }
.hamburger-menu-inner::after { bottom: -10px; }

/* Активное состояние (крестик) */
.hamburger-menu.is-active .hamburger-menu-inner { background-color: transparent; }
.hamburger-menu.is-active .hamburger-menu-inner::before { transform: translateY(10px) rotate(45deg); background-color: #fff; }
.hamburger-menu.is-active .hamburger-menu-inner::after { transform: translateY(-10px) rotate(-45deg); background-color: #fff; }


/* === АДАПТАЦИЯ (MOBILE) === */
@media (max-width: 992px) {
    section { padding: 60px 0; }
    .hero-container, .process-steps, .page-content { flex-direction: column; }
    .hero-image { text-align: center; margin-top: 30px; }
    .advantages-section .container { flex-wrap: wrap; justify-content: center; }
    .process-steps { align-items: center; }
    .step { width: 80%; max-width: 400px; margin-bottom: 30px; }
    .team-grid { grid-template-columns: 1fr; gap: 50px; }
    .sidebar { width: 100%; flex-basis: auto; }

    /* --- Шапка --- */
    .site-header .container {
        justify-content: space-between;
    }
    .header-contacts {
        display: none;
    }
.hamburger-menu {
        display: inline-block;
    }
    .logo { text-align: left; }

    /* --- Мобильная навигация (панель) --- */
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 59, 42, 0.98);
        z-index: 1001;
        gap: 0;
        overflow-y: auto;
        transition: right 0.35s ease-in-out;
    }
    .main-nav.is-active {
        right: 0;
    }
    .main-nav a {
        color: white;
        font-size: 1.8em;
        padding: 20px 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-buttons { justify-content: center; }
    .hero .hero-buttons { flex-direction: column; align-items: stretch; }

    h2, .content-section h2, .services-section h2, .process-section h2, .team-section h2, .contacts-section h2 {
        font-size: 2.3em;
    }
    .hero h1 {
        font-size: 1.6em;
        line-height: 1.3;
    }
    .page-header h1 {
        font-size: 1.9em;
        line-height: 1.2;
    }
}

.team-slider-container {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block;
    object-fit: contain;
    height: 500px;
    background-color: transparent;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 91, 65, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 1.5em;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

@media (max-width: 768px) {
    .team-slider-container {
        margin-top: 60px;
    }
    .slide img {
        height: 350px;
    }
    .slider-btn {
        padding: 10px;
        font-size: 1.2em;
    }
}

/* === Pricing / Cards module === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.pricing-card {
    /* Match visual style of .service-card */
    background-color: var(--white-bg);
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,0.10); }
.pricing-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}
.pricing-card ul { padding-left: 1.1em; margin: 10px 0 0 0; }
.pricing-card li { margin-bottom: 8px; font-size: 0.98em; line-height: 1.4; }
.pricing-card .price-note { margin-top: 12px; font-style: italic; color: #555; font-size: 0.95em; }

.pricing-section { padding: 60px 0; position: relative; }

.pricing-section .container {
    background: var(--light-gray-bg);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.pricing-section h2 { text-align: center; margin-bottom: 20px; }
