:root {
    /* Top bar / accents: slightly yellower (less orange) than plain amber */
    --yellow: #ffc233;
    --yellow-dark: #e6ae08;
    --black: #0a0a0a;
    --text: #333;
    --muted: #555;
    --green-band: #6aaf4e;
    --red-band: #e74c3c;
    --border: #eee;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Roboto, system-ui, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* Toolbar */
.toolbar {
    background: var(--yellow);
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    padding: 18px 0;
}
.toolbar-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 34px;
}
.toolbar .container { padding: 0 20px 0 4px; }
.toolbar-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.toolbar-mail::before {
    content: "✉";
    font-size: 17px;
    line-height: 1;
    opacity: 0.95;
}
.toolbar a:hover { opacity: 0.9; }
@media (max-width: 767px) {
    .toolbar {
        font-size: 15px;
        padding: 16px 0;
    }
    .toolbar-inner {
        gap: 14px;
        flex-wrap: wrap;
    }
    .toolbar-mail::before {
        font-size: 15px;
    }
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 0;
    gap: 16px;
}
.logo img { height: 57px; width: auto; display: block; }
.logo-text {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-desktop { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop > li { position: relative; }
.nav-desktop > li > a {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nav-desktop > li.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-desktop > li.has-submenu > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
    opacity: 0.75;
}
.nav-desktop > li > a:hover { color: var(--yellow-dark); }
.nav-desktop .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 50;
}
.nav-desktop li:hover .sub { display: block; }
.nav-desktop .sub a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #777;
}
.nav-desktop .sub a:hover { background: rgba(0,0,0,0.04); color: #555; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--black);
}

.nav-mobile {
    display: none;
    border-top: 1px solid var(--border);
    padding: 16px 0 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.nav-mobile .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nav-mobile .has-submenu > a::after {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.75;
}
.nav-mobile .sub a {
    padding-left: 16px;
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    color: #777;
    letter-spacing: 0;
}
.nav-mobile .sub a:hover { color: #555; }

@media (max-width: 991px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
}
@media (min-width: 992px) {
    .nav-mobile { display: none !important; }
}

/* Footer */
footer {
    background: #ffffff;
    color: #3e4a59;
    padding-top: 54px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 38px;
    padding-bottom: 46px;
}
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}
footer h4 {
    color: #181c22;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 15px;
    line-height: 1.2;
    margin: 0 0 18px;
    text-transform: uppercase;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a {
    color: #3f5a80;
    font-size: 13px;
    line-height: 1.5;
}
.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--yellow-dark);
}
.footer-grid a.active {
    color: var(--yellow-dark);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo a { display: inline-block; line-height: 0; }
.footer-logo img { height: 60px; width: auto; filter: none; }
.footer-grid > div:first-child p {
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3e4a59;
    font-size: 14px;
}
.footer-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: #5d6066;
    background: transparent;
    border-radius: 0;
    flex: 0 0 15px;
}
.footer-icon.yt {
    width: 15px;
    height: 11px;
    border-radius: 3px;
    background: #5d6066;
    color: #ffffff;
    font-size: 8px;
    flex: 0 0 15px;
}
.footer-icon.mail {
    font-size: 16px;
}
.copyright {
    border-top: 1px solid #1b1f24;
    background: #07090d;
    box-shadow: 0 0 0 100vmax #07090d;
    clip-path: inset(0 -100vmax);
    color: #9fa6af;
    padding: 36px 0;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.copyright > span:first-child {
    color: #8d949d;
}
.copyright > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}
.copyright a {
    color: #aeb4bc;
    font-size: 12px;
}
.copyright a:hover {
    color: #d0d5dc;
}

/* ----- Page open preload (Eduma-style sk-folding-cube, SpinKit) ----- */
body.thim-body-preload {
    overflow: hidden;
}
#preload {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
#preload .sk-folding-cube {
    margin: 0;
    width: 48px;
    height: 48px;
    position: relative;
    transform: rotateZ(45deg);
}
#preload .sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
}
#preload .sk-folding-cube .sk-cube::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--yellow);
    animation: bc-sk-foldCubeAngle 2.4s infinite linear both;
    transform-origin: 100% 100%;
}
#preload .sk-folding-cube .sk-cube2 {
    transform: scale(1.1) rotateZ(90deg);
}
#preload .sk-folding-cube .sk-cube3 {
    transform: scale(1.1) rotateZ(180deg);
}
#preload .sk-folding-cube .sk-cube4 {
    transform: scale(1.1) rotateZ(270deg);
}
#preload .sk-folding-cube .sk-cube2::before {
    animation-delay: 0.3s;
}
#preload .sk-folding-cube .sk-cube3::before {
    animation-delay: 0.6s;
}
#preload .sk-folding-cube .sk-cube4::before {
    animation-delay: 0.9s;
}
@keyframes bc-sk-foldCubeAngle {
    0%,
    10% {
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.thim-body-preload {
        overflow: auto;
    }
    #preload .sk-folding-cube .sk-cube::before {
        animation: none;
        opacity: 1;
        transform: perspective(140px) rotateX(0deg);
    }
}
