/* 1. Базовые настройки */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #222222;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}


/* 2. Скрытый служебный текст Joomla */

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* 3. Шапка */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e7e7e7;
    backdrop-filter: blur(10px);
}

.site-header .container {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}


/* 4. Логотип */

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: 300px;
    height: 210px;
    object-fit: contain;
}


/* 5. Главное меню */

.site-navigation {
    margin-left: auto;
}

.site-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation > ul,
.site-navigation > .mod-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation li {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    position: relative;
    display: block;
    padding: 76px 0;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.site-navigation > ul > li > a::after,
.site-navigation > .mod-menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 54px;
    left: 0;
    height: 2px;
    background: #c7924a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-navigation a:hover,
.site-navigation .active > a,
.site-navigation .current > a {
    color: #c7924a;
}

.site-navigation > ul > li > a:hover::after,
.site-navigation > ul > li.active > a::after,
.site-navigation > ul > li.current > a::after,
.site-navigation > .mod-menu > li > a:hover::after,
.site-navigation > .mod-menu > li.active > a::after,
.site-navigation > .mod-menu > li.current > a::after {
    transform: scaleX(1);
}


/* 6. Выпадающее подменю */

.site-navigation li > ul {
    position: absolute;
    top: calc(100% - 44px);
    left: 0;
    z-index: 1200;
    display: none;
    min-width: 240px;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.site-navigation li:hover > ul,
.site-navigation li:focus-within > ul {
    display: block;
}

.site-navigation li > ul li {
    width: 100%;
}

.site-navigation li > ul a {
    padding: 11px 18px;
    font-size: 14px;
    line-height: 20px;
}

.site-navigation li > ul a:hover {
    background: #f7f4ef;
}


/* 7. Третий уровень меню */

.site-navigation li > ul li > ul {
    top: 0;
    left: 100%;
}


/* 8. Основной контент */

.site-main {
    min-height: 600px;
    padding: 56px 0;
}

.site-main h1 {
    margin: 0 0 30px;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
}


/* 9. Подвал */

.site-footer {
    padding: 40px 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}


/* 10. Главный Hero-блок */

.hero {
    position: relative;
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        url("../img/hero-bg.jpg")
        center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 15, 15, 0.82) 0%,
            rgba(15, 15, 15, 0.58) 48%,
            rgba(15, 15, 15, 0.18) 100%
        );
}

.hero-container {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-content {
    max-width: 680px;
    padding: 90px 0;
    color: #ffffff;
}

.hero-label {
    margin: 0 0 18px;
    color: #d3a258;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4.6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-text {
    max-width: 630px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.hero-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button-primary {
    color: #1d1d1d;
    background: #d3a258;
    border-color: #d3a258;
}

.hero-button-primary:hover {
    color: #1d1d1d;
    background: #e0b46d;
    border-color: #e0b46d;
}

.hero-button-secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-button-secondary:hover {
    color: #1d1d1d;
    background: #ffffff;
    border-color: #ffffff;
}

.home-page .site-main {
    min-height: 0;
    padding: 0;
}


/* 11. Общие заголовки секций */

.section-heading {
    max-width: 850px;
    margin-bottom: 42px;
}

.section-label {
    margin: 0 0 10px;
    color: #c7924a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: #222222;
    font-size: 42px;
    line-height: 1.15;
}

.section-description {
    max-width: 760px;
    margin: 24px 0 0;
    color: #666666;
    font-size: 18px;
    line-height: 1.7;
}


/* 12. Категории */

.categories-section {
    padding: 90px 0;
    background: #f7f7f5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    color: #222222;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.category-card:hover {
    color: #222222;
    border-color: #c7924a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.category-card span {
    color: #c7924a;
    font-size: 14px;
    font-weight: 700;
}

.category-card h3 {
    margin: auto 0 14px;
    font-size: 25px;
    line-height: 1.2;
}

.category-card p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}


/* 13. Преимущества */

.benefits-section {
    padding: 110px 0;
    color: #ffffff;
    background: #1f1f1f;
}

.benefits-heading {
    max-width: 850px;
}

.benefits-section .section-heading h2 {
    color: #ffffff;
}

.benefits-section .section-description {
    color: rgba(255, 255, 255, 0.68);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 56px;
    background: rgba(255, 255, 255, 0.14);
}

.benefit-card {
    min-height: 310px;
    padding: 36px;
    background: #1f1f1f;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.benefit-card:hover {
    background: #292929;
    transform: translateY(-5px);
}

.benefit-number {
    display: block;
    margin-bottom: 70px;
    color: #d3a258;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.benefit-card h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.25;
}

.benefit-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15px;
    line-height: 1.7;
}


/* 14. Контакты */

.contacts-section {
    padding: 100px 0;
    background: #ffffff;
}


/* 15. Планшеты */

@media (max-width: 1200px) {
    .site-header .container {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logo-image {
        height: 130px;
    }

    .site-navigation {
        width: 100%;
        margin-left: 0;
    }

    .site-navigation > ul,
    .site-navigation > .mod-menu {
        flex-wrap: wrap;
        gap: 8px 22px;
    }

    .site-navigation a {
        padding: 8px 0;
    }

    .site-navigation > ul > li > a::after,
    .site-navigation > .mod-menu > li > a::after {
        bottom: 2px;
    }
}

@media (max-width: 1000px) {
    .categories-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 16. Мобильные устройства */

@media (max-width: 768px) {
    .container {
        width: min(100% - 30px, 1380px);
    }

    .logo-image {
        height: 100px;
    }

    .site-navigation > ul,
    .site-navigation > .mod-menu {
        display: block;
    }

    .site-navigation li > ul {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
    }

    .site-navigation li:hover > ul,
    .site-navigation li:focus-within > ul {
        display: block;
    }

    .hero {
        min-height: calc(100vh - 140px);
        background-position: 62% center;
    }

    .hero-overlay {
        background: rgba(15, 15, 15, 0.68);
    }

    .hero-container {
        width: min(100% - 30px, 1380px);
    }

    .hero-content {
        max-width: 100%;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }

    .site-main {
        padding: 40px 0;
    }

    .site-main h1 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .categories-section,
    .benefits-section,
    .contacts-section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .categories-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 220px;
    }

    .benefit-card {
        min-height: 250px;
    }

    .benefit-number {
        margin-bottom: 45px;
    }
}