/* ==========================================================================
   CSS VARIABLES & OCEAN AMBER DESIGN (XIREVOS.ICU - VER 13)
   ========================================================================== */
:root {
    --color-ocean: #0369a1; /* Sky 700 */
    --color-ocean-dark: #075985; /* Sky 800 */
    --color-amber: #d97706; /* Amber 600 */
    --color-amber-light: #f59e0b; /* Amber 500 */
    --color-text-main: #334155; /* Slate 700 */
    --color-text-title: #0f172a; /* Slate 900 */
    --color-bg-page: #f8fafc; /* Slate 50 */
    --color-bg-card: #ffffff;
    --color-line: #e2e8f0; /* Slate 200 */

    --radius-box: 12px;
    --radius-btn: 8px;
    --radius-round: 50px;
    
    --shadow-base: 0 4px 10px rgba(3, 105, 161, 0.05);
    --shadow-float: 0 15px 30px rgba(3, 105, 161, 0.12);
    --anim-speed: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Fluid Typography */
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--color-text-title); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--color-text-title); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--color-ocean); 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(--anim-speed); }
img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: var(--radius-box); }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(15px, 4vw, 30px); }
.spacer { padding: clamp(60px, 8vw, 100px) 0; }
.center-txt { text-align: center; }

/* ==========================================================================
   HEADER & MOBILE NAV (10PX SIDE PADDING RULE)
   ========================================================================== */
.main-header {
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* СТРОГО 10PX ПО БОКАМ НА МОБИЛЬНОМ */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px; 
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .nav-wrapper { padding: 20px clamp(15px, 4vw, 30px); }
}

.brand { font-size: 1.9rem; font-weight: 900; color: var(--color-text-title); letter-spacing: -0.5px; }
.brand span { color: var(--color-ocean); }

.burger-icon { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.burger-icon span { width: 25px; height: 3px; background-color: var(--color-text-title); border-radius: 2px; transition: var(--anim-speed); }
#menu-switch { display: none; }

.desk-menu { display: none; }
.desk-menu ul { display: flex; gap: 30px; }
.desk-menu a { font-weight: 600; color: var(--color-text-main); font-size: 1rem; }
.desk-menu a:hover { color: var(--color-ocean); }

.mob-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-card);
    padding: 10px 20px 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-top: 1px solid var(--color-line);
}
.mob-menu a { display: block; font-weight: 600; color: var(--color-text-title); padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.mob-menu li:last-child a { border-bottom: none; }
#menu-switch:checked ~ .mob-menu { display: block; }

@media (min-width: 992px) {
    .burger-icon { display: none; }
    .desk-menu { display: block; }
    .mob-menu { display: none !important; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-block; padding: 14px 32px; font-weight: 700; font-size: 1.05rem; border-radius: var(--radius-btn); cursor: pointer; transition: var(--anim-speed); text-align: center; border: 2px solid transparent; }
.btn-blue { background-color: var(--color-ocean); color: #fff; box-shadow: var(--shadow-base); }
.btn-blue:hover { background-color: var(--color-ocean-dark); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn-amber { background-color: transparent; border-color: var(--color-amber); color: var(--color-amber); }
.btn-amber:hover { background-color: var(--color-amber); color: #fff; }

/* ==========================================================================
   GRID SYSTEM & CARDS
   ========================================================================== */
.grid-cols-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-cols-2 { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .grid-cols-2 { grid-template-columns: 1fr 1fr; gap: 60px; } }

.card-item { background: var(--color-bg-card); padding: 40px 30px; border-radius: var(--radius-box); box-shadow: var(--shadow-base); border: 1px solid var(--color-line); transition: var(--anim-speed); }
.card-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); border-color: var(--color-ocean); }
.ico { font-size: 2.8rem; margin-bottom: 20px; color: var(--color-amber); }

/* ==========================================================================
   FORM (4 FIELDS)
   ========================================================================== */
.form-container { background: var(--color-bg-card); padding: 40px; border-radius: var(--radius-box); box-shadow: var(--shadow-float); border: 1px solid var(--color-line); }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; font-weight: 600; color: var(--color-text-title); margin-bottom: 8px; font-size: 0.95rem; }
.field-group input, .field-group textarea { width: 100%; padding: 14px; border: 2px solid var(--color-line); border-radius: var(--radius-btn); font-family: inherit; font-size: 1rem; transition: var(--anim-speed); background: var(--color-bg-page); }
.field-group input:focus, .field-group textarea:focus { outline: none; border-color: var(--color-ocean); background: #fff; }
.field-group textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   FOOTER (STRICT DATES RULE)
   ========================================================================== */
.main-footer { background-color: var(--color-text-title); color: #cbd5e1; padding: 70px 0 30px; margin-top: 50px; }
.footer-layout { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-layout { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.footer-brand { font-size: 1.8rem; font-weight: 900; color: #fff; display: block; margin-bottom: 15px; }
.footer-brand span { color: var(--color-amber-light); }
.footer-info { font-size: 0.95rem; line-height: 1.6; }
.footer-head { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a:hover { color: var(--color-amber-light); }
.footer-copy { border-top: 1px solid #334155; padding-top: 25px; text-align: center; font-size: 0.9rem; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER (2 BUTTONS, LINK IN TEXT)
   ========================================================================== */
#cookie-popup { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--color-text-title); color: #fff; padding: 20px; border-radius: var(--radius-box); 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: 900px; margin: 0 auto; }
#cookie-popup.active { transform: translateY(0); }
.cookie-msg p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: #e2e8f0; }
.cookie-msg a { color: var(--color-amber-light); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-ck { padding: 10px 20px; border: none; border-radius: var(--radius-btn); font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.95rem; flex: 1; }
.btn-ck.acc { background: var(--color-ocean); color: #fff; }
.btn-ck.acc:hover { background: var(--color-ocean-dark); }
.btn-ck.dec { background: transparent; border: 1px solid #cbd5e1; color: #fff; }
.btn-ck.dec:hover { background: #cbd5e1; color: var(--color-text-title); }
@media (min-width: 768px) {
    #cookie-popup { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-actions { flex-shrink: 0; width: auto; }
    .btn-ck { flex: none; }
}