/* ==========================================================================
   CSS VARIABLES & ANDEAN TERRACOTTA DESIGN (NAMABOW.ICU)
   ========================================================================== */
:root {
    --c-terra: #991b1b; /* Terracotta / Deep Red */
    --c-terra-light: #b91c1c;
    --c-terra-dark: #7f1d1d;
    --c-stone: #3b251e; /* Slate 800 */
    --c-stone-light: #475569; /* Slate 600 */
    --c-sand: #fdfbf7; /* Warm off-white */
    --c-white: #ffffff;
    --c-border: #e2e8f0;

    --pad-safe: clamp(15px, 4vw, 30px);
    --pad-sec: clamp(60px, 8vw, 100px);
    
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    
    --shadow-card: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 30px rgba(153, 27, 27, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    background-color: var(--c-sand);
    color: var(--c-stone-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Fluid Typography */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--c-stone); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--c-stone); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--c-terra); font-weight: 700; margin-bottom: 0.8rem; }
p { font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--rad-md); }
ul { list-style: none; padding: 0; margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-safe); }
.sec-pad { padding: var(--pad-sec) 0; }
.txt-center { text-align: center; }

/* ==========================================================================
   HEADER & MOBILE NAV (STRICT 10PX MOBILE PADDING)
   ========================================================================== */
.site-header {
    background-color: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px; /* СТРОГО 10PX ДЛЯ МОБИЛЬНЫХ */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .nav-wrap { padding: 20px var(--pad-safe); }
}

.logo { font-size: 1.8rem; font-weight: 900; color: var(--c-stone); letter-spacing: -0.5px; }
.logo span { color: var(--c-terra); }

.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.burger span { width: 28px; height: 3px; background-color: var(--c-stone); border-radius: 2px; transition: var(--transition); }
#menu-toggle { display: none; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 30px; align-items: center; }
.nav-desktop a { font-weight: 600; color: var(--c-stone-light); font-size: 1.05rem; }
.nav-desktop a:hover { color: var(--c-terra); }

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--c-white);
    padding: 10px var(--pad-safe) 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-top: 1px solid var(--c-border);
}
.nav-mobile a { display: block; font-weight: 600; color: var(--c-stone); padding: 15px 0; border-bottom: 1px solid var(--c-border); }
.nav-mobile li:last-child a { border-bottom: none; }
#menu-toggle:checked ~ .nav-mobile { display: block; }

@media (min-width: 992px) {
    .burger { display: none; }
    .nav-desktop { display: block; }
    .nav-mobile { display: none !important; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 30px; font-weight: 700; font-size: 1.05rem; border-radius: var(--rad-sm); cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-red { background-color: var(--c-terra); color: #fff; box-shadow: 0 4px 15px rgba(153, 27, 27, 0.2); }
.btn-red:hover { background-color: var(--c-terra-dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(153, 27, 27, 0.3); }
.btn-outline { background-color: transparent; border-color: var(--c-stone); color: var(--c-stone); }
.btn-outline:hover { background-color: var(--c-stone); 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(--c-white); padding: 40px 30px; border-radius: var(--rad-md); box-shadow: var(--shadow-card); transition: var(--transition); border: 1px solid var(--c-border); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--c-terra-light); }
.card-icon { font-size: 3rem; color: var(--c-terra); margin-bottom: 20px; }

/* ==========================================================================
   VISUAL BLOCK: TIMELINE (SEC 4 INDEX)
   ========================================================================== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 24px; height: 100%; width: 4px; background: var(--c-border); border-radius: 2px; }
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-50%); } }

.tl-item { position: relative; margin-bottom: 40px; width: 100%; padding-left: 60px; }
@media (min-width: 768px) { 
    .tl-item { width: 50%; padding-left: 0; padding-right: 40px; text-align: right; }
    .tl-item:nth-child(even) { margin-left: auto; padding-right: 0; padding-left: 40px; text-align: left; }
}

.tl-dot { position: absolute; left: 14px; top: 0; width: 24px; height: 24px; background: var(--c-terra); border-radius: 50%; border: 4px solid var(--c-sand); box-shadow: 0 0 0 4px var(--c-terra-light); z-index: 2; }
@media (min-width: 768px) { 
    .tl-dot { left: auto; right: -12px; }
    .tl-item:nth-child(even) .tl-dot { right: auto; left: -12px; }
}

.tl-content { background: var(--c-white); padding: 25px; border-radius: var(--rad-md); box-shadow: var(--shadow-card); border: 1px solid var(--c-border); }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.form-box { background: var(--c-white); padding: 40px; border-radius: var(--rad-lg); box-shadow: var(--shadow-hover); border: 1px solid var(--c-border); }
.f-group { margin-bottom: 20px; }
.f-group label { display: block; font-weight: 600; color: var(--c-stone); margin-bottom: 8px; }
.f-group input, .f-group textarea { width: 100%; padding: 15px; border: 2px solid var(--c-border); border-radius: var(--rad-sm); font-family: inherit; font-size: 1rem; background: var(--c-sand); transition: var(--transition); }
.f-group input:focus, .f-group textarea:focus { outline: none; border-color: var(--c-terra); background: var(--c-white); }
.f-group textarea { min-height: 130px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT DATES)
   ========================================================================== */
.site-footer { background-color: var(--c-stone); color: #cbd5e1; padding: 70px 0 30px; margin-top: 60px; border-top: 4px solid var(--c-terra); }
.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: var(--c-white); display: block; margin-bottom: 15px; }
.foot-logo span { color: var(--c-terra-light); }
.foot-info { font-size: 0.95rem; line-height: 1.6; }
.foot-title { color: var(--c-white); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.foot-links li { margin-bottom: 12px; }
.foot-links a:hover { color: var(--c-terra-light); }
.foot-copy { border-top: 1px solid #334155; padding-top: 25px; text-align: center; font-size: 0.9rem; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER (2 BUTTONS)
   ========================================================================== */
#cookie-alert { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--c-stone); color: var(--c-white); padding: 25px; border-radius: var(--rad-md); z-index: 9999; display: flex; flex-direction: column; gap: 15px; transform: translateY(150%); transition: transform 0.5s ease; box-shadow: 0 15px 30px rgba(0,0,0,0.3); max-width: 800px; margin: 0 auto; border: 1px solid #334155; }
#cookie-alert.show { transform: translateY(0); }
.ck-txt p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: #e2e8f0; }
.ck-txt a { color: var(--c-terra-light); font-weight: 700; text-decoration: underline; }
.ck-actions { display: flex; gap: 10px; }
.btn-ck { 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-ck.accept { background: var(--c-terra); color: var(--c-white); }
.btn-ck.accept:hover { background: var(--c-terra-dark); }
.btn-ck.decline { background: transparent; border: 2px solid #94a3b8; color: var(--c-white); }
.btn-ck.decline:hover { background: #94a3b8; color: var(--c-stone); }
@media (min-width: 768px) { #cookie-alert { flex-direction: row; align-items: center; justify-content: space-between; } .ck-actions { flex-shrink: 0; width: auto; } .btn-ck { flex: none; } }