:root{
    --bg:#f5f8fc;
    --white:#ffffff;
    --primary:#0f2747;
    --primary-soft:#183a67;
    --accent:#1f7ae0;
    --text:#1d2430;
    --muted:#667085;
    --border:#dce4ef;
    --success:#067647;
    --warning:#b54708;
    --danger:#b42318;
    --shadow:0 12px 35px rgba(15,39,71,0.08);
    --radius:22px;
    --container:1200px;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    padding:0;
}

body{
    font-family:Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
}

body.menu-open{
    overflow:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    font:inherit;
}

.container{
    width:min(var(--container), calc(100% - 32px));
    margin:0 auto;
}

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
}

.header-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    position:relative;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    position:relative;
    z-index:1002;
}

.logo-badge{
    width:48px;
    height:48px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    font-weight:700;
    flex-shrink:0;
}

.logo-text strong{
    display:block;
    color:var(--primary);
    font-size:16px;
}

.logo-text small{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.mobile-menu-toggle{
    display:none;
    width:48px;
    height:48px;
    border:1px solid var(--border);
    background:#fff;
    border-radius:14px;
    padding:0;
    cursor:pointer;
    position:relative;
    z-index:1002;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    box-shadow:var(--shadow);
}

.mobile-menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    background:var(--primary);
    border-radius:999px;
    transition:.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2){
    opacity:0;
}

.mobile-menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.main-nav{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.main-nav > a,
.nav-dropdown-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 14px;
    border-radius:999px;
    color:var(--primary);
    font-weight:600;
    font-size:14px;
    transition:.25s ease;
    border:0;
    background:transparent;
    cursor:pointer;
}

.main-nav > a:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.main-nav > a.active{
    background:#eaf2fb;
    color:var(--accent);
}

.nav-dropdown{
    position:relative;
}

.nav-arrow{
    font-size:11px;
    transition:transform .25s ease;
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow{
    transform:rotate(180deg);
}

.dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    min-width:260px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:0 18px 40px rgba(15,39,71,.12);
    padding:10px;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:.22s ease;
    z-index:999;
}

.nav-dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:none;
}

.dropdown-menu a{
    display:block;
    padding:11px 14px;
    border-radius:12px;
    color:var(--primary);
    font-size:14px;
}

.dropdown-menu a:hover{
    background:#f3f8fe;
    color:var(--accent);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 20px;
    border-radius:999px;
    font-weight:700;
    cursor:pointer;
    border:1px solid transparent;
    transition:.25s ease;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    box-shadow:var(--shadow);
}

.btn-primary:hover{
    opacity:.95;
    transform:translateY(-1px);
}

.btn-secondary{
    background:#fff;
    color:var(--primary);
    border-color:var(--border);
}

.btn-secondary:hover{
    background:#f1f6fc;
}

.btn-danger{
    background:#fff0f0;
    color:var(--danger);
    border-color:#fecdca;
}

.hero{
    padding:86px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(31,122,224,0.16), transparent 30%),
        radial-gradient(circle at left center, rgba(15,39,71,0.10), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.hero-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:38px;
    align-items:center;
}

.hero-badge{
    display:inline-block;
    padding:10px 16px;
    border-radius:999px;
    background:#eaf2fb;
    color:var(--accent);
    font-weight:700;
    font-size:14px;
    margin-bottom:20px;
}

.hero h1{
    font-size:clamp(36px,5vw,60px);
    line-height:1.12;
    color:var(--primary);
    margin-bottom:18px;
}

.hero p{
    font-size:18px;
    color:var(--muted);
    margin-bottom:26px;
}

.hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.hero-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:28px;
    box-shadow:var(--shadow);
    padding:30px;
}

.hero-card h3{
    color:var(--primary);
    margin-bottom:16px;
    font-size:24px;
}

.hero-list{
    list-style:none;
    display:grid;
    gap:12px;
    padding:0;
    margin:0;
}

.hero-list li{
    background:#f7fbff;
    border:1px solid #e5eef8;
    border-radius:16px;
    padding:14px 16px;
}

.section{
    padding:72px 0;
}

.section-heading{
    max-width:780px;
    margin-bottom:32px;
}

.section-heading .eyebrow{
    display:inline-block;
    margin-bottom:12px;
    color:var(--accent);
    font-weight:800;
    font-size:13px;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.section-heading h2{
    font-size:clamp(28px,4vw,42px);
    line-height:1.2;
    color:var(--primary);
    margin-bottom:12px;
}

.section-heading p{
    color:var(--muted);
    font-size:17px;
}

.cards-2,
.cards-3,
.cards-4{
    display:grid;
    gap:22px;
}

.cards-2{grid-template-columns:repeat(2,1fr);}
.cards-3{grid-template-columns:repeat(3,1fr);}
.cards-4{grid-template-columns:repeat(4,1fr);}

.card,
.content-box,
.feature-box,
.admin-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:28px;
    box-shadow:var(--shadow);
}

.card h3,
.card h4,
.content-box h2,
.content-box h3,
.admin-card h3{
    color:var(--primary);
    margin-bottom:12px;
}

.card p,
.content-box p,
.admin-card p{
    color:var(--muted);
}

.card-link{
    display:inline-block;
    margin-top:18px;
    color:var(--accent);
    font-weight:700;
}

.feature-box{
    background:linear-gradient(135deg,#0f2747,#183a67);
    color:#fff;
}

.feature-box h3{
    font-size:28px;
    margin-bottom:16px;
}

.feature-box p{
    color:rgba(255,255,255,.88);
}

.content-box ul{
    padding-left:22px;
    color:var(--muted);
}

.info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.cta-band{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    border-radius:30px;
    padding:36px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow:var(--shadow);
}

.cta-band h3{
    font-size:30px;
    margin-bottom:8px;
}

.cta-band p{
    color:rgba(255,255,255,.9);
}

.page-hero{
    padding:60px 0;
    background:
        radial-gradient(circle at right top, rgba(31,122,224,0.16), transparent 30%),
        linear-gradient(180deg,#ffffff 0%,#f5f8fc 100%);
    border-bottom:1px solid var(--border);
}

.page-hero h1{
    font-size:clamp(30px,4vw,50px);
    color:var(--primary);
    margin-bottom:14px;
}

.page-hero p{
    max-width:820px;
    color:var(--muted);
    font-size:18px;
}

.site-footer{
    margin-top:70px;
    background:#0d1f37;
    color:#fff;
}

.footer-grid{
    padding:52px 0 28px;
    display:grid;
    grid-template-columns:1.2fr .8fr 1fr;
    gap:26px;
}

.site-footer h3,
.site-footer h4{
    margin-bottom:14px;
}

.site-footer p,
.site-footer li,
.site-footer a{
    color:rgba(255,255,255,.82);
}

.footer-links{
    list-style:none;
    display:grid;
    gap:8px;
    padding:0;
    margin:0;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.10);
    padding:16px 0;
    text-align:center;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.field{
    margin-bottom:16px;
}

.field.full{
    grid-column:1/-1;
}

.field label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:var(--primary);
}

.field input,
.field select,
.field textarea{
    width:100%;
    padding:13px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fff;
    outline:none;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
    border-color:#9fc2f1;
    box-shadow:0 0 0 4px rgba(31,122,224,.08);
}

.msg-ok,
.msg-err,
.msg-note{
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:16px;
}

.msg-ok{
    background:#ecfdf3;
    color:var(--success);
    border:1px solid #abefc6;
}

.msg-err{
    background:#fef3f2;
    color:var(--danger);
    border:1px solid #fecdca;
}

.msg-note{
    background:#eff6ff;
    color:#1849a9;
    border:1px solid #bfd4fe;
}

.table-wrap{
    overflow-x:auto;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table th,
.table td{
    padding:12px;
    border-bottom:1px solid #eef3f8;
    text-align:left;
    vertical-align:top;
}

.badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.badge-success{background:#ecfdf3;color:var(--success);}
.badge-warning{background:#fff7ed;color:#b54708;}
.badge-danger{background:#fef3f2;color:var(--danger);}
.badge-muted{background:#f2f4f7;color:#475467;}

.admin-layout{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    box-shadow:var(--shadow);
}

.stat-card .label{
    font-size:13px;
    color:var(--muted);
    margin-bottom:8px;
}

.stat-card .value{
    font-size:32px;
    font-weight:700;
    color:var(--primary);
}

.contact-grid{
    display:grid;
    grid-template-columns:.95fr 1.05fr;
    gap:26px;
}

.map-box iframe{
    width:100%;
    height:100%;
    min-height:420px;
    border:0;
    border-radius:26px;
    box-shadow:var(--shadow);
}

.week-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.week-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:14px;
}

.day-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px;
    box-shadow:var(--shadow);
    min-height:180px;
}

.day-card h4{
    margin:0 0 8px;
    color:var(--primary);
    font-size:16px;
}

.day-sub{
    font-size:13px;
    color:var(--muted);
    margin-bottom:10px;
}

.slot-card{
    width:100%;
    text-align:left;
    border:1px solid var(--border);
    background:#fff;
    border-radius:16px;
    padding:12px;
    margin-bottom:10px;
    cursor:pointer;
}

.slot-card.available{
    border-color:#abefc6;
    background:#ecfdf3;
}

.slot-card.low{
    border-color:#fedf89;
    background:#fffaeb;
}

.slot-card.full{
    border-color:#fecdca;
    background:#fef3f2;
    cursor:not-allowed;
}

.slot-card.active{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    border-color:transparent;
}

.slot-time{
    display:block;
    font-weight:700;
}

.slot-small{
    display:block;
    font-size:12px;
    margin-top:4px;
}

.selected-slot{
    margin-top:14px;
    padding:14px 16px;
    border-radius:16px;
    background:#f8fbff;
    border:1px solid var(--border);
    color:var(--primary);
    font-weight:600;
}

.small-text{
    font-size:13px;
    color:var(--muted);
}

@media (max-width: 1100px){
    .hero-grid,
    .cards-4,
    .cards-3,
    .cards-2,
    .info-grid,
    .contact-grid,
    .footer-grid,
    .stat-grid,
    .week-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 992px){
    .header-inner{
        min-height:74px;
        padding:12px 0;
    }

    .mobile-menu-toggle{
        display:flex;
    }

    .main-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        background:#ffffff;
        border-top:1px solid var(--border);
        border-bottom:1px solid var(--border);
        padding:16px;
        box-shadow:0 18px 40px rgba(15,39,71,.10);
    }

    .main-nav.open{
        display:flex;
    }

    .main-nav > a,
    .nav-dropdown,
    .nav-dropdown-toggle{
        width:100%;
    }

    .main-nav > a,
    .nav-dropdown-toggle{
        min-height:48px;
        padding:14px 16px;
        border-radius:16px;
        background:#f8fbff;
    }

    .nav-dropdown{
        display:block;
    }

    .nav-dropdown-toggle{
        border:0;
    }

    .dropdown-menu{
        position:static;
        top:auto;
        left:auto;
        min-width:100%;
        background:#f8fbff;
        border:1px solid #e5eef8;
        border-radius:16px;
        box-shadow:none;
        padding:8px;
        margin-top:8px;
        opacity:1;
        visibility:visible;
        transform:none;
        display:none;
    }

    .nav-dropdown:hover .dropdown-menu{
        display:none;
    }

    .nav-dropdown.open .dropdown-menu{
        display:block;
    }

    .dropdown-menu a{
        background:#fff;
        margin-bottom:6px;
    }

    .dropdown-menu a:last-child{
        margin-bottom:0;
    }

    .cta-band{
        flex-direction:column;
        align-items:flex-start;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .logo-text strong{
        font-size:15px;
    }

    .logo-text small{
        font-size:12px;
    }
}