  :root {
    --primary-subtle-bg: #fef3c7; --primary: #f59e0b; --primary-dark: #d97706; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: #1c1917; background: #fff; line-height: 1.6; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

nav { background: #fff; border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, #fff); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 10%, transparent); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav .logo { color: var(--primary-dark); font-size: 1.3rem; font-weight: 800; text-decoration: none; }
nav .logo img { height: 38px; vertical-align: middle; margin-right: 8px; }
nav .nav-links { display: flex; gap: 24px; }
nav .nav-links a { color: #78716c; text-decoration: none; font-weight: 500; transition: color .2s; }
nav .nav-links a:hover { color: var(--primary-dark); }

.hero { background: linear-gradient(135deg, var(--primary-subtle-bg) 0%, color-mix(in srgb, var(--primary) 70%, #fff) 60%, var(--primary) 100%); padding: 100px 0 120px; text-align: center; clip-path: polygon(0 0,100% 0,100% 88%,0 100%); }
.hero h1 { font-size: 2.8rem; font-weight: 900; color: #1c1917; margin-bottom: 16px; }
.hero h1 em { color: var(--primary-dark); font-style: normal; }
.hero p { font-size: 1.15rem; color: #44403c; max-width: 540px; margin: 0 auto 32px; }
.btn { display: inline-block; background: var(--primary-dark); color: #fff; padding: 14px 36px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; box-shadow: 0 4px 20px rgba(217,119,6,.3); }
.btn:hover { background: var(--primary); transform: translateY(-2px); }

section { padding: 72px 0; }
section:nth-child(even) { background: #fffbeb; }
.section-tag { display: inline-block; background: var(--primary-subtle-bg); color: var(--primary-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
h2 { font-size: 2rem; font-weight: 800; color: #1c1917; margin-bottom: 8px; }
h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 10px; }

.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.subject-card { background: #fff; border: 2px solid color-mix(in srgb, var(--primary) 50%, #fff); border-radius: 16px; padding: 24px; text-align: center; transition: border-color .2s, transform .2s; }
.subject-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.subject-card .num { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.subject-card h3 { color: #1c1917; font-size: .95rem; font-weight: 700; }

.o-nas-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.o-nas-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 40px color-mix(in srgb, var(--primary) 15%, transparent); }

.contact-info { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-info p { display: flex; align-items: center; gap: 10px; color: #44403c; }
.contact-info a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.social-links { margin-top: 24px; display: flex; gap: 12px; }
.social-links a { background: var(--primary); color: #fff; padding: 8px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: background .2s; }
.social-links a:hover { background: var(--primary-dark); }

.map { padding: 0; }
.map iframe { width:100%;height:420px;border:0;display:block;filter:grayscale(20%); }

footer { background: #1c1917; color: #78716c; text-align: center; padding: 28px 0; font-size: .85rem; }
footer strong { color: var(--primary); }

@media (max-width: 640px) {
    .hero { clip-path: none; padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .o-nas-inner { grid-template-columns: 1fr; }
}

/* ── Modern animations ────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero .container > * { animation: fadeUp .7s ease both; }
.hero .container > *:nth-child(1) { animation-delay: .05s; }
.hero .container > *:nth-child(2) { animation-delay: .15s; }
.hero .container > *:nth-child(3) { animation-delay: .25s; }
.hero .container > *:nth-child(4) { animation-delay: .35s; }
.hero .container > *:nth-child(5) { animation-delay: .45s; }

/* ── Typography quality ───────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ── Mobile hamburger nav ─────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 6px;
    color: #78716c;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.nav-toggle:hover { opacity: .75; }
.nav-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    nav .container { flex-wrap: wrap; }
    nav .nav-links {
        order: 9;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(128,128,128,.18);
        margin-top: 8px;
    }
    nav .nav-links.is-open { display: flex; }
    nav .nav-links a {
        padding: 11px 0;
        font-size: .95rem;
        letter-spacing: 0;
        text-transform: none;
        border-bottom: 1px solid rgba(128,128,128,.1);
        width: 100%;
        display: block;
    }
    nav .nav-links a:last-child { border-bottom: none; }
}
