/* Estante Core Styles - css/core.css */
@font-face {
    font-family: 'MADE Evolve Sans EVO';
    src: local('MADE Evolve Sans EVO'), url('../assets/fonts/MADE.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-dark: #121212;
    --bg-panel: #1C1C1C;
    --bg-light: #EBEAE5;
    --bg-white: #FFFFFF;
    --accent-gold: #C6A87C;
    --accent-green: #3D5A53;
    --text-main-dark: #F4F4F0;
    --text-muted-dark: #A1A1AA;
    --text-main-light: #2C2C2C;
    --text-muted-light: #666666;
    --radius-pill: 100px;
    --radius-lg: 32px;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
    --font-logo: 'MADE Evolve Sans EVO', 'Manrope', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-top: 0;
    line-height: 1.1;
}

em,
i {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* UI ELEMENTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.4s;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--text-main-dark);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--accent-green);
    padding: 20px 50px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 30px;
    display: inline-block;
    border: none;
}

.btn-white:hover {
    transform: scale(1.05);
}

.btn-wide {
    min-width: 280px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* HEADER */
.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0) 100%);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-logo);
    font-size: 28px;
    color: var(--text-main-dark);
    letter-spacing: 0.02em;
    font-weight: 400;
}

.header-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    position: relative;
    color: white;
    transition: 0.3s;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-gold);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: 700;
}

.current-city-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.current-city-label:hover {
    color: white;
    border-bottom-color: white;
}

.city-confirm-popup {
    position: absolute;
    top: 75px;
    right: 80px;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    z-index: 2100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    animation: fadeInDown 0.4s ease-out;
}

.btn-small-yes {
    background: var(--accent-gold);
    color: black;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-small-no {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MODALS BASE */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: #1C1C1C;
    color: white;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.input-ph {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-size: 18px;
    margin: 30px 0;
    outline: none;
    text-align: center;
}

.input-ph:focus {
    border-color: var(--accent-gold);
}

/* City Modal Items */
.city-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.city-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    color: #ccc;
    border: 1px solid transparent;
}

.city-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* FOOTER (Global) */
footer {
    background: #0A0A0A;
    color: #555;
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-logo {
    font-family: var(--font-logo);
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
    font-weight: 400;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
    margin-bottom: 30px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: #888;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

@media (max-width: 900px) {
    .city-confirm-popup {
        right: 10px;
        top: 70px;
    }

    .footer-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Две равные колонки для ссылок */
        gap: 30px 20px;
        /* Отступы */
        border-bottom: 1px solid #222;
        padding-bottom: 40px;
        margin-bottom: 30px;
    }

    .footer-col {
        grid-column: 1 / -1;
        /* Растягиваем от начала до конца */
        margin-bottom: 10px;
        /* Небольшой отступ до ссылок */
    }
}