/* ===== Общие сбросы ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f7fa;
    color: #1a2a4a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:hover {
    background: #d68910;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
}
.btn-outline:hover {
    background: #f39c12;
    color: #fff;
}

/* ===== Хедер ===== */
.header {
    background: #1a2a4a;
    color: #fff;
    padding: 16px 0;
    border-bottom: 3px solid #f39c12;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo span {
    color: #f39c12;
}
/* ===== Шапка с красивым меню ===== */
.header {
    background: #1a2a4a;
    padding: 18px 0;
    border-bottom: 3px solid #f39c12;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.logo::before {
    content: "🛠️ ";
    font-size: 24px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list > li {
    position: relative;
}

.nav__list a {
    display: inline-block;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Эффект подчёркивания при наведении */
.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f39c12;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav__list a:hover::after,
.nav__list a.active::after {
    width: 70%;
}

.nav__list a:hover,
.nav__list a.active {
    color: #f39c12;
}

/* Выпадающее меню (первый уровень) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #1a2a4a;
    border-radius: 0 0 12px 12px;
    padding: 10px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-top: 2px solid #f39c12;
    z-index: 200;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #eee;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-menu a::after {
    display: none; /* убираем подчёркивание внутри подменю */
}
.dropdown-menu a:hover {
    background: #2c3e6b;
    color: #f39c12;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

/* ===== Бургер (мобильное меню) ===== */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }
    .nav__list {
        display: none;
        flex-direction: column;
        background: #1a2a4a;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        gap: 8px;
    }
    .nav__list--open {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        display: none;
        background: #2a3a5a;
        border-radius: 8px;
        padding-left: 20px;
        border-top: none;
        box-shadow: none;
    }
    .dropdown.open > .dropdown-menu {
        display: block;
    }
    .dropdown-toggle {
        cursor: pointer;
    }
}
.burger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ===== Секции ===== */
.section {
    padding: 80px 0;
}
.section--dark {
    background: #1a2a4a;
    color: #fff;
}
.section--light {
    background: #fff;
}
.section__title {
    font-size: 36px;
    margin-bottom: 16px;
    text-align: center;
}
.section__title span {
    color: #f39c12;
}
.section__subtitle {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #555;
}
.section--dark .section__subtitle {
    color: #ccc;
}

/* ===== Баннер (Hero) ===== */
.hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 100%);
    color: #fff;
    padding: 100px 0 80px;
}
.hero__container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero__content {
    flex: 1;
}
.hero__title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero__title span {
    color: #f39c12;
}
.hero__descr {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero__image {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}
.hero__image img {
    border-radius: 12px;
    max-height: 300px;
    margin: 0 auto;
}

/* ===== Каталог ===== */
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.catalog__card {
    background: #fff;
    padding: 24px 20px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #f39c12;
}
.catalog__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.catalog__card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a2a4a;
}
.catalog__card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
}
.catalog__card ul li:last-child {
    border-bottom: none;
}

/* ===== О компании ===== */
.about__text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
    color: #444;
}
.about__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #f39c12;
}
.stat-label {
    font-size: 16px;
    color: #666;
    max-width: 200px;
}

/* ===== География ===== */
.geo__content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.geo__text {
    flex: 1;
}
.geo__text p {
    font-size: 17px;
    color: #ddd;
}
.geo__map {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #aaa;
    font-size: 18px;
}

/* ===== Этапы работы ===== */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.step-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.step-item:hover {
    transform: translateY(-4px);
}
.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #f39c12;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}
.step-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a2a4a;
}
.step-item p {
    font-size: 14px;
    color: #555;
}

/* ===== Форма заявки ===== */
.form__wrapper {
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.form__group {
    margin-bottom: 20px;
}
.form__group input,
.form__group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: #f39c12;
}
.form__btn {
    width: 100%;
}

/* ===== Футер ===== */
.footer {
    background: #0f1a2e;
    color: #bbb;
    padding: 50px 0 30px;
}
.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}
.footer .logo {
    color: #fff;
    margin-bottom: 8px;
}
.footer .logo span {
    color: #f39c12;
}
.footer__col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 18px;
}
.footer__col ul li {
    margin-bottom: 6px;
}
.footer__col ul li a {
    color: #bbb;
    transition: color 0.2s;
}
.footer__col ul li a:hover {
    color: #f39c12;
}
.socials {
    display: flex;
    gap: 12px;
}
.socials a {
    display: inline-block;
    padding: 6px 14px;
    background: #2a3a5a;
    border-radius: 6px;
    color: #ccc;
    font-size: 14px;
    transition: 0.2s;
}
.socials a:hover {
    background: #f39c12;
    color: #fff;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .burger {
        display: block;
    }
    .nav__list {
        display: none;
        flex-direction: column;
        background: #1a2a4a;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .nav__list--open {
        display: flex;
    }
    .hero__container {
        flex-direction: column;
        text-align: center;
    }
    .hero__title {
        font-size: 32px;
    }
    .section__title {
        font-size: 28px;
    }
    .about__stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 36px;
    }
    .geo__content {
        flex-direction: column;
    }
    .steps__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .steps__grid {
        grid-template-columns: 1fr;
    }
    .form__wrapper {
        padding: 20px;
    }
}

/* ===== Блок FAQ (аккордеон) ===== */
.faq-accordion {
    padding: 60px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: background 0.2s;
}

.accordion-item:hover {
    background: rgba(255,255,255,0.08);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s;
}

.accordion-header:hover {
    color: #f39c12;
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #f39c12;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
}

.accordion-body p {
    margin: 0;
    padding-bottom: 18px;
}

.accordion-item.active .accordion-body {
    max-height: 300px; /* достаточно для раскрытия текста */
    padding: 0 24px 6px;
}

/* Адаптив */
@media (max-width: 768px) {
    .accordion-header {
        font-size: 16px;
        padding: 14px 18px;
    }
    .accordion-body {
        font-size: 15px;
        padding: 0 18px;
    }
    .accordion-item.active .accordion-body {
        padding: 0 18px 6px;
    }
}
.accordion-item.active .accordion-icon {
    content: '−';
}