:root {
    --primary: #4B5C6B;
    --accent: #F28E63;
    --accent-hover: #e07447;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --linear-grad: linear-gradient(135deg, #3A4753 0%, #4B5C6B 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

.page-sections {
    display: flex;
    flex-direction: column;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.py-50 {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 133, 0, 0.4);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 22px 0;
    background-color: transparent;
}

.navbar.scrolled {
    padding: 14px 0;
    box-shadow: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.navbar.scrolled .nav-shell {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-shrink: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    isolation: isolate;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.brand-subtitle {
    margin-top: 4px;
    max-width: 240px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar.scrolled .brand-title {
    color: var(--primary);
}

.navbar.scrolled .brand-subtitle {
    color: var(--text-light);
}

.brand-logo {
    height: 66px;
    width: auto;
    display: block;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.16)) contrast(1.08) saturate(1.05);
}

.footer-logo {
    height: 50px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    margin-inline: 22px;
}

.nav-menu:not(.is-ready) {
    visibility: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.nav-links a,
.nav-overflow-menu a {
    margin: 0;
    padding: 11px 15px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-align: right;
    opacity: 0.92;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--white);
}

.nav-links a.is-active,
.nav-links a[aria-current="location"] {
    opacity: 1;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 10px 24px rgba(242, 142, 99, 0.3);
    transform: translateY(-1px);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-links a {
    color: var(--primary);
}

.navbar.scrolled .nav-links a.is-active,
.navbar.scrolled .nav-links a[aria-current="location"] {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 12px 24px rgba(242, 142, 99, 0.22);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
    background: rgba(75, 92, 107, 0.08);
}

.nav-overflow {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.nav-overflow.has-items {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(75, 92, 107, 0.06);
}

.nav-overflow.has-items .hamburger {
    display: flex;
}

.nav-overflow-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    inset-inline-start: auto;
    inset-inline-end: 0;
    min-width: 260px;
    max-width: min(340px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transform-origin: top left;
    pointer-events: none;
    transition: all 0.25s ease;
}

.nav-overflow.is-open .nav-overflow-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-overflow-menu a {
    color: var(--primary);
    background: #f8fafc;
    opacity: 1;
}

.nav-overflow-menu a:hover {
    color: var(--primary);
    background: rgba(242, 142, 99, 0.12);
}

.nav-overflow-menu a.is-active,
.nav-overflow-menu a[aria-current="location"] {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 12px 24px rgba(242, 142, 99, 0.2);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--primary);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--linear-grad);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Titles */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-lead {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-light);
}

.section-lead-light {
    color: rgba(255, 255, 255, 0.85);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-text {
    width: min(100%, 820px);
    margin: 0 auto;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: minmax(0, 820px);
    }
}

/* Statistics */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin: 0;
    font-weight: 900;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0 0;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-box .counter {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-box span:last-child {
    color: var(--text-light);
    font-weight: 700;
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    background: var(--primary);
    background: linear-gradient(45deg, var(--primary), #1e3a8a);
    position: relative;
}

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    height: 75px;
    overflow: hidden;
}

.banners-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.banner-card,
.testimonial-card {
    background: var(--white);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.banner-card {
    background: linear-gradient(180deg, rgba(242, 142, 99, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
}

.banner-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(242, 142, 99, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.banner-card h3,
.testimonial-card h3 {
    margin-bottom: 12px;
}

.banner-card p,
.testimonial-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.banner-link {
    margin-top: 8px;
}

.spi-showcase-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(242, 142, 99, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.16), transparent 30%),
        linear-gradient(135deg, #08131f 0%, #123145 52%, #0d2230 100%);
    color: var(--white);
}

.spi-showcase-section .section-title h2 {
    color: var(--white);
}

.spi-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.spi-intro-panel,
.spi-stage-panel {
    position: relative;
    border-radius: 28px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.24);
    backdrop-filter: blur(18px);
}

.spi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.spi-headline {
    color: var(--white);
    font-size: 2rem;
    line-height: 1.45;
    margin: 24px 0 16px;
}

.spi-intro-copy {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 1.05rem;
    margin: 0;
}

.spi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.spi-showcase-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--white);
}

.spi-showcase-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.spi-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.spi-highlight-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(5, 15, 25, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spi-highlight-card span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spi-highlight-card strong {
    color: var(--white);
    line-height: 1.7;
    font-size: 0.96rem;
}

.spi-stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.spi-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
}

.spi-meta-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
}

.spi-stage-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.spi-stage-stat {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spi-stage-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.spi-stage-stat strong {
    color: var(--white);
    font-size: 1.85rem;
    line-height: 1;
}

.spi-podium-grid {
    display: grid;
    gap: 14px;
}

.spi-podium-card {
    border-radius: 22px;
    padding: 22px;
    background: rgba(6, 15, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spi-rank-1 {
    background: linear-gradient(135deg, rgba(242, 142, 99, 0.24) 0%, rgba(6, 15, 24, 0.42) 100%);
}

.spi-rank-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0%, rgba(6, 15, 24, 0.42) 100%);
}

.spi-rank-3 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(6, 15, 24, 0.42) 100%);
}

.spi-podium-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.spi-podium-position,
.spi-podium-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.spi-podium-position {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.spi-podium-score {
    background: rgba(242, 142, 99, 0.16);
    color: #ffd8c8;
}

.spi-podium-card h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.spi-podium-card p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 16px;
    line-height: 1.7;
}

.spi-card-link {
    color: var(--white);
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.spi-card-link:hover {
    opacity: 1;
    color: #ffd8c8;
}

.spi-empty-state {
    border-radius: 22px;
    padding: 24px;
    background: rgba(6, 15, 24, 0.42);
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.spi-empty-state h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.spi-empty-state p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
    margin-bottom: 18px;
}

.testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 900;
}

.testimonial-role {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
}

.faq-list {
    max-width: 920px;
    margin: 40px auto 0;
    display: grid;
    gap: 18px;
}

.faq-item {
    background: var(--white);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

/* Contact */
.contact-card {
    background: var(--primary);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}

.contact-info {
    padding: 50px;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 15px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    padding: 50px;
    background: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s;
    background-color: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 40px 0;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    opacity: 0.7;
    margin-left: 15px;
    transition: opacity 0.3s, color 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .banners-grid,
    .testimonials-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1240px) {
    .nav-content {
        gap: 18px;
    }

    .nav-shell {
        padding: 14px 18px;
    }

    .brand-block {
        gap: 12px;
    }

    .brand-logo {
        height: 58px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        display: none;
    }

    .nav-menu {
        gap: 10px;
        margin-inline: 10px;
    }

    .nav-links {
        gap: 3px;
    }

    .nav-links a,
    .nav-overflow-menu a {
        padding: 10px 12px;
        font-size: 0.92rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 18px 0;
    }

    .nav-shell {
        padding: 12px 14px;
        border-radius: 24px;
    }

    .brand-logo {
        height: 56px;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        max-width: 150px;
        font-size: 0.69rem;
    }

    .nav-menu {
        gap: 8px;
        margin-inline: 8px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a,
    .nav-overflow-menu a {
        padding: 9px 11px;
        font-size: 0.88rem;
    }

    .spi-shell {
        grid-template-columns: 1fr;
    }

    .spi-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .brand-copy {
        display: none;
    }

    .brand-logo {
        height: 52px;
    }

    .nav-menu {
        margin-inline: 6px;
    }

    .nav-overflow-menu {
        left: 0;
        right: auto;
        inset-inline-start: auto;
        inset-inline-end: 0;
        min-width: min(280px, calc(100vw - 24px));
    }

    .spi-intro-panel,
    .spi-stage-panel {
        padding: 22px;
    }

    .spi-headline {
        font-size: 1.55rem;
    }

    .spi-stage-stats {
        grid-template-columns: 1fr;
    }
}