/* ==========================================================================
   CSS VARIABLES & ANDEAN ALTITUDE DESIGN (XIPODUN.ICU)
   ========================================================================== */
:root {
    --clr-brand: #b91c1c; /* Red 700 - Andean Red */
    --clr-brand-dark: #7f1d1d; /* Red 900 */
    --clr-brand-light: #ef4444; /* Red 500 */
    --clr-base: #1e293b; /* Slate 800 */
    --clr-text: #475569; /* Slate 600 */
    --clr-bg: #f8fafc; /* Slate 50 */
    --clr-surface: #ffffff;
    --clr-line: #e2e8f0; /* Slate 200 */
    
    --space-pad: clamp(60px, 8vw, 100px);
    --safe-x: clamp(15px, 5vw, 30px);
    
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    
    --shadow-card: 0 4px 15px rgba(185, 28, 28, 0.05);
    --shadow-hover: 0 15px 30px rgba(185, 28, 28, 0.15);
    --transit: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); color: var(--clr-base); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--clr-base); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--clr-brand); font-weight: 700; margin-bottom: 0.8rem; }
p { font-size: clamp(1.05rem, 1.5vw, 1.15rem); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: var(--transit); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--rad-md); }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--safe-x); }
.sec-pad { padding: var(--space-pad) 0; }
.txt-center { text-align: center; }

/* ==========================================================================
   HEADER (STRICT 10PX MOBILE PADDING)
   ========================================================================== */
.site-header {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* СТРОГО 10PX ПО БОКАМ ДЛЯ МОБИЛЬНЫХ */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px; 
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .nav-container { padding: 20px var(--safe-x); }
}

.logo { font-size: 2rem; font-weight: 900; color: var(--clr-base); letter-spacing: -1px; }
.logo span { color: var(--clr-brand); }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--clr-base); border-radius: 2px; transition: var(--transit); }
#menu-check { display: none; }

.nav-desk { display: none; }
.nav-desk ul { display: flex; gap: 35px; }
.nav-desk a { font-weight: 600; font-size: 1.05rem; }
.nav-desk a:hover { color: var(--clr-brand); }

.nav-mob {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-surface);
    padding: 10px 20px 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-top: 1px solid var(--clr-line);
}
.nav-mob a { display: block; font-weight: 600; padding: 15px 0; border-bottom: 1px solid var(--clr-line); }
.nav-mob li:last-child a { border-bottom: none; }
#menu-check:checked ~ .nav-mob { display: block; }

@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .nav-desk { display: block; }
    .nav-mob { display: none !important; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 15px 35px; font-weight: 700; border-radius: var(--rad-sm); cursor: pointer; transition: var(--transit); font-size: 1.05rem; border: 2px solid transparent; }
.btn-red { background: var(--clr-brand); color: #fff; box-shadow: var(--shadow-card); }
.btn-red:hover { background: var(--clr-brand-dark); transform: translateY(-3px); }
.btn-outline { background: transparent; border-color: var(--clr-base); color: var(--clr-base); }
.btn-outline:hover { background: var(--clr-base); color: #fff; }

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 60px; } }

.card { background: var(--clr-surface); padding: 40px; border-radius: var(--rad-md); box-shadow: var(--shadow-card); border: 1px solid var(--clr-line); transition: var(--transit); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--clr-brand); }
.card-icon { font-size: 3rem; margin-bottom: 20px; color: var(--clr-brand); }

/* ==========================================================================
   UNIQUE VISUAL BLOCK: MYTHS VS FACTS (INDEX SEC 4)
   ========================================================================== */
.myth-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 40px; }
@media (min-width: 768px) { .myth-grid { grid-template-columns: repeat(2, 1fr); } }
.myth-card { display: flex; flex-direction: column; border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--clr-line); }
.myth-box { background: #fef2f2; padding: 25px; border-bottom: 2px solid var(--clr-brand-light); position: relative; }
.fact-box { background: var(--clr-surface); padding: 25px; }
.myth-badge { display: inline-block; padding: 4px 10px; background: var(--clr-brand); color: white; font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; }
.fact-badge { display: inline-block; padding: 4px 10px; background: #16a34a; color: white; font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.form-box { background: var(--clr-surface); padding: 40px; border-radius: var(--rad-lg); box-shadow: var(--shadow-hover); border: 1px solid var(--clr-line); }
.input-row { margin-bottom: 20px; }
.input-row label { display: block; font-weight: 600; color: var(--clr-base); margin-bottom: 8px; }
.input-row input, .input-row textarea { width: 100%; padding: 15px; border: 2px solid var(--clr-line); border-radius: var(--rad-sm); font-family: inherit; font-size: 1rem; background: var(--clr-bg); transition: var(--transit); }
.input-row input:focus, .input-row textarea:focus { outline: none; border-color: var(--clr-brand); background: #fff; }
.input-row textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT DATES RULE)
   ========================================================================== */
.site-footer { background: var(--clr-base); color: #cbd5e1; padding: 70px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.foot-logo { font-size: 2rem; font-weight: 900; color: #fff; display: block; margin-bottom: 15px; }
.foot-logo span { color: var(--clr-brand-light); }
.foot-title { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.foot-links li { margin-bottom: 12px; }
.foot-links a:hover { color: var(--clr-brand-light); }
.foot-copy { border-top: 1px solid #334155; padding-top: 25px; text-align: center; font-size: 0.95rem; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER (2 BUTTONS + IN-TEXT LINK)
   ========================================================================== */
#cookie-popup { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%); width: 90%; max-width: 900px; background: var(--clr-surface); padding: 25px; border-radius: var(--rad-md); box-shadow: 0 15px 40px rgba(0,0,0,0.2); z-index: 9999; border: 2px solid var(--clr-line); display: flex; flex-direction: column; gap: 15px; transition: transform 0.4s ease; }
#cookie-popup.visible { transform: translateX(-50%) translateY(0); }
.cookie-msg p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--clr-base); }
.cookie-msg a { color: var(--clr-brand); text-decoration: underline; font-weight: 700; }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie { padding: 10px 20px; border: none; border-radius: var(--rad-sm); font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.95rem; flex: 1; text-align: center; }
.btn-cookie.accept { background: var(--clr-brand); color: #fff; }
.btn-cookie.accept:hover { background: var(--clr-brand-dark); }
.btn-cookie.decline { background: transparent; border: 2px solid var(--clr-text); color: var(--clr-text); }
.btn-cookie.decline:hover { background: var(--clr-text); color: #fff; }
@media (min-width: 768px) { #cookie-popup { flex-direction: row; align-items: center; justify-content: space-between; } .cookie-btns { flex-shrink: 0; width: auto; } .btn-cookie { flex: none; } }