/* ==========================================================================
   CSS VARIABLES & ANDEAN NAVY DESIGN (CIBUCAT.ICU - VER 11)
   ========================================================================== */
:root {
    --clr-navy: #1e3a8a; /* Blue 900 */
    --clr-navy-light: #2563eb; /* Blue 600 */
    --clr-emerald: #059669; /* Emerald 600 */
    --clr-bg-main: #f0fdf4; /* Light Green/Mint bg */
    --clr-bg-card: #ffffff;
    --clr-text-dark: #0f172a;
    --clr-text-base: #334155;
    --clr-border: #cbd5e1;

    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    
    --shadow-soft: 0 4px 15px rgba(30, 58, 138, 0.08);
    --shadow-hover: 0 20px 30px rgba(30, 58, 138, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--clr-bg-main);
    color: var(--clr-text-base);
    line-height: 1.7;
    overflow-x: hidden;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--clr-navy); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--clr-navy); font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--clr-text-dark); font-weight: 700; margin-bottom: 1rem; }
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; }

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: clamp(60px, 8vw, 100px) 0; }
.text-center { text-align: center; }

/* ==========================================================================
   STRICT HEADER & MOBILE NAV (WITH 10PX MOBILE PADDING RULE)
   ========================================================================== */
.site-header {
    background-color: var(--clr-bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* НОВОЕ ПРАВИЛО: ОТСТУП ХЕДЕРА 10PX ПО БОКАМ НА МОБИЛЬНОМ */
.header-container {
    padding: 15px 10px; /* Строго 10px по бокам */
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .header-container { padding: 20px; } /* Возвращаем стандартный отступ на ПК */
}

.logo { font-size: 2rem; font-weight: 900; color: var(--clr-navy); letter-spacing: -1px; }
.logo span { color: var(--clr-emerald); }

.menu-btn { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.menu-btn .line { width: 28px; height: 3px; background-color: var(--clr-navy); border-radius: 2px; transition: var(--transition); }
#nav-toggle { display: none; }

.desktop-nav { display: none; }
.desktop-nav ul { display: flex; gap: 35px; }
.desktop-nav a { font-weight: 600; color: var(--clr-text-base); font-size: 1.05rem; }
.desktop-nav a:hover { color: var(--clr-navy-light); }

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-card);
    padding: 10px 20px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 1px solid var(--clr-border);
}
.mobile-nav a { display: block; font-weight: 600; color: var(--clr-navy); padding: 15px 0; border-bottom: 1px solid var(--clr-border); }
.mobile-nav li:last-child a { border-bottom: none; }
#nav-toggle:checked ~ .mobile-nav { display: block; }

@media (min-width: 992px) {
    .menu-btn { display: none; }
    .desktop-nav { display: block; }
    .mobile-nav { display: none !important; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .hero-layout { grid-template-columns: 1fr 1fr; gap: 60px; min-height: 75vh; } }
.pill-badge { display: inline-block; padding: 8px 16px; background-color: #dbeafe; color: var(--clr-navy-light); border-radius: 50px; font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; }
.hero-visual img { border-radius: var(--rad-lg); box-shadow: var(--shadow-hover); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 16px 36px; font-weight: 700; font-size: 1.1rem; border-radius: 50px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background-color: var(--clr-navy); color: #fff; box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3); }
.btn-primary:hover { background-color: var(--clr-navy-light); transform: translateY(-3px); }
.btn-outline { background-color: transparent; border-color: var(--clr-navy); color: var(--clr-navy); }
.btn-outline:hover { background-color: var(--clr-navy); color: #fff; }

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.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-box { background: var(--clr-bg-card); padding: 40px; border-radius: var(--rad-md); box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid var(--clr-border); }
.card-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--clr-navy-light); }
.card-icon { font-size: 3rem; color: var(--clr-emerald); margin-bottom: 20px; }

/* ==========================================================================
   FORM (EXACTLY 4 FIELDS)
   ========================================================================== */
.form-panel { background: var(--clr-bg-card); padding: 50px; border-radius: var(--rad-lg); box-shadow: var(--shadow-hover); border: 1px solid var(--clr-border); }
.input-row { margin-bottom: 20px; }
.input-row label { display: block; font-weight: 600; color: var(--clr-text-dark); margin-bottom: 8px; }
.input-row input, .input-row textarea { width: 100%; padding: 15px; border: 2px solid var(--clr-border); border-radius: var(--rad-sm); font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--clr-bg-main); }
.input-row input:focus, .input-row textarea:focus { outline: none; border-color: var(--clr-navy); background: #fff; }
.input-row textarea { min-height: 150px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT RULE: DATES ONLY IN FOOTER TEXT/COPYRIGHT)
   ========================================================================== */
.site-footer { background-color: var(--clr-navy); color: #cbd5e1; padding: 80px 0 30px; margin-top: 60px; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 50px; margin-bottom: 50px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.footer-logo { font-size: 2rem; font-weight: 900; color: #fff; display: block; margin-bottom: 20px; letter-spacing: -1px; }
.footer-logo span { color: var(--clr-emerald); }
.footer-text { font-size: 0.95rem; line-height: 1.6; }
.footer-heading { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--clr-emerald); }
.footer-copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.95rem; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER (STRICT: 2 BUTTONS + LINK IN TEXT)
   ========================================================================== */
#cookie-alert { position: fixed; bottom: 0; left: 0; width: 100%; background: #0f172a; color: #fff; padding: 25px 20px; z-index: 9999; display: flex; flex-direction: column; gap: 20px; transform: translateY(110%); transition: transform 0.4s ease; box-shadow: 0 -10px 40px rgba(0,0,0,0.2); }
#cookie-alert.show { transform: translateY(0); }
.cookie-desc { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.cookie-desc a { color: var(--clr-emerald); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-cookie { padding: 12px 24px; border: none; border-radius: var(--rad-sm); font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 1rem; flex: 1; text-align: center; }
.btn-cookie.accept { background: var(--clr-emerald); color: #fff; }
.btn-cookie.accept:hover { background: #047857; }
.btn-cookie.decline { background: transparent; color: #fff; border: 2px solid #64748b; }
.btn-cookie.decline:hover { background: #334155; }
@media (min-width: 768px) {
    #cookie-alert { flex-direction: row; align-items: center; justify-content: space-between; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%); width: 90%; max-width: 1000px; border-radius: var(--rad-lg); }
    #cookie-alert.show { transform: translateX(-50%) translateY(0); }
    .cookie-actions { flex-shrink: 0; width: auto; }
    .btn-cookie { flex: none; }
}