/* ========================================
   СЕВАКБ — Стили сайта-визитки
   Магазин аккумуляторов, Севастополь
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Цвета бренда */
    --color-sev: #1a5276; /* СЕВ — тёмно-синий */
    --color-akb: #e67e22; /* АКБ — оранжевый */
    --color-sev-light: #2980b9;
    --color-akb-light: #f39c12;
    --color-dark: #1a1a2e;
    --color-dark-soft: #2d2d44;
    --color-gray-900: #212529;
    --color-gray-700: #495057;
    --color-gray-400: #ced4da;
    --color-gray-200: #e9ecef;
    --color-gray-100: #f8f9fa;
    --color-white: #ffffff;
    --color-danger: #e74c3c;
    --color-success: #27ae60;

    /* Типографика */
    --font-heading: "Oswald", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Размеры */
    --container-max: 1200px;
    --header-height: 80px;

    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Скругления */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Транзиции */
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* --- Утилиты --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section--gray {
    background-color: var(--color-gray-100);
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section--dark .section__title {
    color: var(--color-white);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-700);
    margin-bottom: 3rem;
    max-width: 600px;
}

.section--dark .section__subtitle {
    color: var(--color-gray-400);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Логотип --- */
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.logo__sev {
    color: var(--color-sev);
}

.logo__akb {
    color: var(--color-akb);
}

.logo--white .logo__sev {
    color: var(--color-white);
}

.logo--white .logo__akb {
    color: var(--color-akb-light);
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn img {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background-color: var(--color-akb);
    color: var(--color-white);
    border-color: var(--color-akb);
}

.btn--primary:hover {
    background-color: var(--color-akb-light);
    border-color: var(--color-akb-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.btn--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn--dark:hover {
    background-color: var(--color-sev);
    border-color: var(--color-sev);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-gray-200);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-700);
    transition: color var(--transition);
    position: relative;
}

.header__link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-akb);
    transition: width var(--transition);
}

.header__link:hover {
    color: var(--color-sev);
}

.header__link:hover::after {
    width: 100%;
}

.header__phone {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-dark);
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--color-akb);
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.burger__line {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

.burger--active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(26, 26, 46, 0.95) 0%,
        rgba(26, 82, 118, 0.85) 40%,
        rgba(26, 82, 118, 0.4) 65%,
        rgba(26, 26, 46, 0.1) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero__title span {
    color: var(--color-akb-light);
}

.hero__sublist {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.hero__sublist span {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
    opacity: 0.7;
    line-height: 1.3;
}

.hero__sublist span:nth-child(1) {
    font-size: 2.2rem;
}

.hero__sublist span:nth-child(2) {
    font-size: 1.8rem;
    opacity: 0.55;
}

.hero__sublist span:nth-child(3) {
    font-size: 1.5rem;
    opacity: 0.4;
}

.hero__sublist span:nth-child(4) {
    font-size: 1.25rem;
    opacity: 0.3;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 48px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-akb-light);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    margin-top: 4px;
}

/* --- Каталог --- */
.catalog__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.catalog-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    transition: all var(--transition);
}

.catalog-item:hover {
    border-color: var(--color-akb);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.catalog-item__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.catalog-item__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-dark);
    white-space: nowrap;
}

/* --- Услуги --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    display: flex;
    gap: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-akb);
    transform: translateY(-2px);
}

.service-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.service-card__icon img {
    width: 36px;
    height: 36px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 8px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

/* --- О нас / Почему мы --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about__image img {
    width: 100%;
    height: auto;
    display: block;
}

.about__content {
    padding: 20px 0;
}

.about__content .section__title {
    margin-bottom: 1.5rem;
}

.about__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
}

.about__content {
    padding: 20px 0;
}

.about__content .section__title {
    margin-bottom: 1.5rem;
}

.about__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
}

/* --- Контакты --- */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-item__icon img {
    width: 30px;
    height: 30px;
}

.contact-item__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-700);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.contact-item__value {
    font-size: 1.05rem;
    color: var(--color-dark);
    font-weight: 500;
}

.contact-item__value a:hover {
    color: var(--color-akb);
}

.contacts__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    background-color: var(--color-gray-200);
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* --- Футер --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-400);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copy {
    font-size: 0.85rem;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--color-akb-light);
}

/* --- Мобильное меню --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-white);
    z-index: 999;
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
}

.mobile-menu--open {
    right: 0;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-gray-200);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: var(--color-akb);
}

.mobile-menu__phone {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-sev);
    margin-top: auto;
    padding-top: 24px;
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-akb);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 100;
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--color-akb-light);
    transform: translateY(-2px);
}

/* ========================================
   Адаптивность
   ======================================== */

/* Планшеты */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        order: -1;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    /* Header */
    .header__nav,
    .header__phone {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Hero */
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__bg-pattern {
        background: linear-gradient(
            to bottom,
            rgba(26, 26, 46, 0.95) 0%,
            rgba(26, 82, 118, 0.8) 50%,
            rgba(26, 26, 46, 0.6) 100%
        );
    }

    .hero__sublist span:nth-child(1) {
        font-size: 1.6rem;
    }

    .hero__sublist span:nth-child(2) {
        font-size: 1.3rem;
    }

    .hero__sublist span:nth-child(3) {
        font-size: 1.1rem;
    }

    .hero__sublist span:nth-child(4) {
        font-size: 0.95rem;
    }

    /* Каталог */
    .catalog-item {
        padding: 12px 16px;
    }

    .catalog-item__title {
        white-space: normal;
        font-size: 0.95rem;
    }

    /* Услуги */
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: column;
        gap: 16px;
    }

    /* Контакты */
    .contacts__map {
        min-height: 300px;
    }

    .contacts__map iframe {
        min-height: 300px;
    }

    /* Футер */
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Маленькие мобильные */
@media (max-width: 400px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
    }
}
