/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@font-face {
    font-family: 'Stengazeta-Regular_5';
    src: url('../fonts/Stengazeta-Regular_5.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Guidy';
    src: url('../fonts/Guidy.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'BulatovSPDemo';
    src: url('../fonts/BulatovSPDemo.otf') format('opentype');
    font-display: swap;
}

/* ========== ПЕРЕМЕННЫЕ И СБРОС ========== */
:root {
    --bg-primary: #0B1D29;
    --bg-secondary: #0D1419;
    --accent-primary: #E57327;
    --accent-secondary: #EEA725;
    --text-light: #ffffff;
    --text-dark: #111111;
    --text-gray: #cccccc;
    --border-color: rgba(238, 167, 37, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Guidy', Arial, sans-serif;
    letter-spacing: 1px;
    background-color: var(--bg-primary);
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.6;
}

/* ========== ЗАГОЛОВКИ ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Stengazeta-Regular_5', 'Arial', sans-serif;
    letter-spacing: 5px;
    font-weight: 300;
    line-height: 1.2;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА ========== */
.header {
    background: linear-gradient(135deg, #0A1A24, #0C1F2A);
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 115, 39, 0.3);
}

.logo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo__text {
    font-family: 'BulatovSPDemo', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo__small {
    font-size: 0.6em;
}

/* Контакты в шапке */
.header__contacts {
    text-align: right;
    position: relative;
    top: 6px;
}

.phone {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.city {
    color: var(--text-gray);
    font-size: 14px;
}

/* ========== НАВИГАЦИЯ (ДЕСКТОП) ========== */
.nav {
    transition: transform 0.4s ease;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav__link {
    font-family: 'Guidy', Arial, sans-serif;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 16px;
    line-height: 1;
    position: relative;
    top: 7px;
}

.nav__link:hover,
.nav__link--active {
    color: var(--accent-secondary);
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.burger span {
    width: 100%;
    height: 2px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Guidy', Arial, sans-serif;
}

.btn--primary {
    position: relative;
    color: var(--text-light);
    z-index: 1;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 115, 39, 0.4);
}

.btn--primary:hover::before {
    transform: scale(1.02);
}

.btn--secondary {
    background: transparent;
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.btn--secondary:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

/* ========== ПОДВАЛ ========== */
.footer {
    background-color: var(--bg-secondary);
    padding: 50px 0 30px;
    border-top: 3px solid var(--accent-secondary);
    position: relative;
    margin-top: 40px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer__info {
    text-align: left;
}

.footer__info p {
    color: var(--text-gray);
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
}

.footer__info p:first-child {
    font-weight: 600;
    color: var(--text-light);
    font-size: 16px;
}

.footer__contacts {
    text-align: center;
}

.footer__phone {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.footer__phone:hover {
    color: var(--accent-secondary);
}

.footer__city {
    color: var(--text-gray);
    font-size: 14px;
}

.footer__social {
    text-align: right;
}

.footer__qr-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    flex-wrap: wrap;
}

.footer__qr {
    text-align: center;
}

.footer__qr img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid var(--accent-secondary);
    padding: 0;
    background: white;
    transition: transform 0.3s;
}

.footer__qr img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(238, 167, 37, 0.4);
}

.footer__qr p {
    color: var(--text-gray);
    font-size: 12px;
    margin-top: 5px;
}

.footer__messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__messenger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
}

.footer__messenger-btn--tg,
.footer__messenger-btn--max {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(229, 115, 39, 0.3);
}

.footer__messenger-btn--tg:hover,
.footer__messenger-btn--max:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 115, 39, 0.5);
}

.coming-soon {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 5px;
    font-weight: normal;
}

#max-link-temp {
    cursor: pointer;
}

.footer__bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(238, 167, 37, 0.2);
    color: var(--text-gray);
    font-size: 13px;
    grid-column: 1 / -1;
    width: 100%;
}

.footer__qr-temp {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.footer__qr-temp:hover {
    opacity: 1;
    filter: grayscale(0);
}

.footer__qr-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px dashed var(--accent-secondary);
    background: rgba(238, 167, 37, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.footer__qr-placeholder span {
    font-size: 32px;
    opacity: 0.7;
}

.footer__qr-placeholder p {
    font-size: 10px;
    margin-top: 5px;
    color: var(--accent-secondary);
}

.footer__qr-placeholder:hover {
    border-color: var(--accent-primary);
    background: rgba(238, 167, 37, 0.2);
    transform: scale(1.05);
}

/* ========== COOKIE-УВЕДОМЛЕНИЕ ========== */
#cookies-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, #0A1A24, #0C1F2A);
    border: 1px solid var(--accent-secondary);
    border-radius: 16px;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.cookies-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-light);
}

.cookies-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookies-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Guidy', Arial, sans-serif;
    font-size: 14px;
}

.cookies-btn--accept {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-light);
}

.cookies-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 115, 39, 0.4);
}

.cookies-btn--reject {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
}

.cookies-btn--reject:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.cookies-notification,
.max-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 9999;
    animation: fadeInOut 3s ease forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-size: 14px;
}

/* ========== АНИМАЦИИ ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}

@keyframes subtleBgShift {
    0% {
        background: radial-gradient(circle at 20% 30%, #0B1D29, #0A1822);
    }
    100% {
        background: radial-gradient(circle at 80% 70%, #0D1F2B, #09151E);
    }
}

/* ========== АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ========== */
@media (max-width: 768px) {
    .header__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .burger {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    .header__contacts {
        order: 2;
        position: static;
        text-align: center;
        flex: 0 1 auto;
        margin-top: 4px;
    }

    .phone {
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }

    .logo {
        order: 1;
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .logo__text {
        font-size: 18px;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .logo__image {
        width: 32px;
        height: 32px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: linear-gradient(145deg, #0A1A24, #0C1F2A);
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        z-index: 99;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 2px solid var(--accent-secondary);
        order: 4;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
    }

    .nav__link {
        font-size: 18px;
        padding: 10px 0;
        display: block;
        text-align: center;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .footer__container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .footer__social {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .footer__info {
        order: 2;
        text-align: center;
        width: 100%;
    }

    .footer__contacts {
        order: 3;
        text-align: center;
        width: 100%;
    }

    .footer__bottom {
        order: 4;
    }

    .footer__qr-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
    }

    .footer__qr img {
        width: 100px;
        height: 100px;
    }

    .footer__qr p {
        font-size: 14px;
        margin-top: 8px;
    }

    .footer__messengers {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .footer__messenger-btn {
        padding: 12px 24px;
        font-size: 16px;
        width: 200px;
        justify-content: center;
    }

    .footer__phone {
        font-size: 20px;
    }

    .footer__city {
        font-size: 14px;
    }

    .footer__info p {
        font-size: 14px;
    }

    #cookies-popup {
        width: 95%;
        padding: 15px;
        bottom: 10px;
    }

    .cookies-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .cookies-content p {
        font-size: 12px;
    }

    .cookies-notification,
    .max-notification {
        padding: 10px 16px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
        width: auto;
        max-width: 90vw;
        border-radius: 30px;
    }
}

@media (max-width: 380px) {
    .header__container {
        gap: 5px;
    }

    .logo__text {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .logo__image {
        width: 28px;
        height: 28px;
    }

    .phone {
        font-size: 10px;
    }

    .burger {
        width: 24px;
        height: 18px;
    }

    .burger span {
        height: 1.5px;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}