/* Espagne Études Faciles - main stylesheet
   Design cloned from the corporate site (jadro theme): navy #0d4479 header
   and copyright bar, amber #fcb900 nav links, #123dbe hero CTA, gold #fec564
   soft accent, Figtree/Outfit type (self-hosted). */

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
}

:root {
    --color-primary: #0d4479;
    --color-primary-dark: #092f54;
    --color-accent: #fec564;
    --color-accent-dark: #e3aa3f;
    /* Corporate clone tokens: nav amber and hero CTA blue. */
    --color-nav-amber: #fcb900;
    --color-nav-amber-bright: #ffd34d;
    --color-accent-button: #123dbe;
    --color-accent-button-dark: #0e2fa3;
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #313131;
    --color-text-muted: #434343;
    --color-line: #e7e7e7;
    --color-section-alt: #f3f6fb;

    --radius: 10px;
    --shadow: 0 2px 10px rgba(13, 68, 121, 0.07);
    --shadow-lift: 0 8px 24px rgba(13, 68, 121, 0.12);

    --container: 1100px;
    --font: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Outfit', 'Figtree', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

img,
svg {
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--color-primary);
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: from-font;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-accent-dark);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-primary-dark);
}

/* Corporate clone: solid navy band, logo left, amber nav to the right. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    min-height: 132px;
    padding-block: 16px;
    position: relative;
}

.brand-logo img {
    height: 96px;
    width: auto;
    display: block;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.984rem, 0.62rem + 0.9vw, 1.5rem);
    color: var(--color-nav-amber);
}

.site-nav a:hover {
    color: var(--color-nav-amber-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher a {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}

.lang-switcher a:hover {
    color: var(--color-nav-amber);
}

.lang-switcher a.is-active {
    background: var(--color-nav-amber);
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
}

.nav-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.nav-toggle-box span {
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background: var(--color-bg);
    color: var(--color-text);
    padding: clamp(44px, 7vw, 84px) 0;
    border-bottom: 1px solid var(--color-line);
}

/* Corporate clone: two-column hero, text left (~60%), UCAM oval right. */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero h1 {
    color: var(--color-primary);
    max-width: 22ch;
}

.hero-media {
    justify-self: center;
    display: flex;
    justify-content: center;
}

.hero-img-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    background: var(--color-secondary-light);
}

.hero-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #313131;
    background: var(--color-accent);
    border: 0;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-subtitle {
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--color-text-muted);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

/* The clone's hero primary CTA is the blue pill (#123dbe). */
.hero-actions .btn-primary {
    background: var(--color-accent-button);
}

.hero-actions .btn-primary:hover {
    background: var(--color-accent-button-dark);
}

.btn-ghost {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-ghost:hover {
    background: rgba(13, 68, 121, 0.06);
    color: var(--color-primary-dark);
}

.cta-banner .btn-primary {
    background: var(--color-accent);
    color: #313131;
}

.cta-banner .btn-primary:hover {
    background: var(--color-accent-dark);
    color: #313131;
}

.cta-banner .btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cta-banner .btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.badges {
    background: var(--color-section-alt);
    border-bottom: 1px solid var(--color-line);
    padding: 22px 0;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
}

.badge {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 9px;
}

.badge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 1px solid var(--color-accent-dark);
    flex: none;
}

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */

.section {
    padding: clamp(52px, 7vw, 88px) 0;
}

.section-alt {
    background: var(--color-section-alt);
}

.section-title {
    max-width: 30ch;
}

.section-intro {
    max-width: 62ch;
    color: var(--color-text-muted);
    font-size: 1.08rem;
}

.card-grid {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

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

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.4em;
}

.card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.card-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #313131;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Expandable university cards: the panel spans the whole grid row and
   pushes the cards below it down. */

.card-expandable {
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-expandable:hover {
    border-color: var(--color-primary);
}

.card-expandable.is-open {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lift);
}

/* Invisible button covering the whole card: reliable taps on iOS. */
.card-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card-hit:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
    border-radius: var(--radius);
    opacity: 1;
}

.card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.card-toggle:hover {
    color: var(--color-accent-dark);
}

.card-toggle-chev {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.is-open .card-toggle-chev {
    transform: rotate(225deg) translateY(-1px);
}

.card-programs {
    grid-column: 1 / -1;
    background: var(--color-section-alt);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: -6px;
    box-shadow: var(--shadow);
}

.card-programs[hidden] {
    display: none;
}

.cp-intro {
    margin: 0 0 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.cp-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px 26px;
}

.cp-group h4 {
    color: var(--color-primary);
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.02rem;
}

.cp-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-group li {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 4px 13px;
    font-size: 0.88rem;
}

.cp-cta {
    margin: 18px 0 0;
}

.cp-cta .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
}

.card-degree {
    border-top: 4px solid var(--color-accent);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Team grid (3 members)
   -------------------------------------------------------------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.team-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--color-secondary-light);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
}

.team-info {
    padding: 20px 24px;
    width: 100%;
}

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.team-role {
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.team-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-banner {
    background: var(--color-primary);
    color: #fff;
    padding: clamp(48px, 6vw, 72px) 0;
}

.cta-banner h2 {
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 48ch;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* Corporate clone footer: light area (hr, logo + "À propos" columns, contact
   line, flat social tiles, restrained link rows) closed by a navy copyright bar. */
.site-footer {
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.97rem;
}

.footer-inner {
    padding-bottom: 8px;
}

.footer-rule {
    border: 0;
    border-top: 1px solid var(--color-line);
    margin: 0 0 36px;
}

.footer-cols {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 28px;
}

.footer-logo img {
    height: 118px;
    width: auto;
    display: block;
}

.footer-heading {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5em;
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.footer-tagline,
.footer-follow {
    color: var(--color-text-muted);
}

.footer-follow {
    font-weight: 600;
    margin-bottom: 0;
}

.footer-contact-line {
    color: var(--color-text-muted);
}

.footer-contact-line a {
    color: var(--color-primary);
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 30px;
}

.social-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.social-tile:hover {
    opacity: 1;
    color: #fff;
}

.social-facebook { background: #336699; }
.social-twitter { background: #000; }
.social-youtube { background: #cc3333; }
.social-instagram { background: #893dc2; }
.social-tiktok { background: #000; }

/* Kept improvements: nav + extra page links and legal links, restrained row. */
.footer-link-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 0.88rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-copy {
    text-align: center;
    padding: 16px 20px;
    margin: 0;
    font-size: 0.88rem;
    color: #fff;
}

/* --------------------------------------------------------------------------
   WhatsApp float
   -------------------------------------------------------------------------- */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lift);
    transition: transform 0.15s ease;
}

.whatsapp-float:hover {
    transform: scale(1.07);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.error-main {
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .brand-logo img {
        height: 60px;
    }

    .header-inner {
        min-height: 64px;
        padding-block: 10px;
    }

    .header-tools {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        background: var(--color-primary);
        border-bottom: 1px solid var(--color-primary-dark);
        box-shadow: var(--shadow-lift);
    }

    body.nav-open .site-nav {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 20px 16px;
        gap: 2px;
    }

    .site-nav a {
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

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

    .hero-img-frame {
        max-width: 280px;
    }

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

    .about-photo {
        width: 220px;
        font-size: 3rem;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Generic page blocks
   -------------------------------------------------------------------------- */

.page-hero {
    background: var(--color-section-alt);
    color: var(--color-text);
    padding: clamp(44px, 6vw, 72px) 0;
    border-bottom: 1px solid var(--color-line);
}

.page-hero .section-title {
    color: var(--color-primary);
    max-width: 26ch;
}

.page-hero .section-intro {
    color: var(--color-text-muted);
}

.section-tight {
    padding: clamp(36px, 5vw, 60px) 0;
}

.prose {
    max-width: 70ch;
}

.prose p {
    color: var(--color-text-muted);
}

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

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

/* Testimonials: two up so long quotes keep a readable line length, and each
   card keeps its natural height instead of stretching to match the longest. */
.quote-grid {
    align-items: start;
}

.quote-grid blockquote {
    font-size: 1rem;
    line-height: 1.6;
}

/* Steps */
.steps {
    counter-reset: step;
    margin-top: 28px;
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.steps li {
    counter-increment: step;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 18px 20px 14px 64px;
    position: relative;
    box-shadow: var(--shadow);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #313131;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    font-size: 1.08rem;
    margin-bottom: 0.3em;
}

.steps p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

/* FAQ */
.faq-list {
    margin-top: 26px;
    max-width: 800px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-primary);
    padding: 15px 18px;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    padding: 0 18px 16px;
    margin: 0;
    color: var(--color-text-muted);
}

/* Quotes */
.quote blockquote {
    margin: 0 0 12px;
    color: var(--color-text);
    font-style: italic;
}

.quote figcaption {
    font-size: 0.92rem;
    color: var(--color-primary);
    font-weight: 700;
}

.quote figcaption span {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Contact page and form
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 44px;
    align-items: start;
}

.contact-alt {
    margin-top: 18px;
}

.contact-alt li {
    margin-bottom: 10px;
    font-weight: 600;
}

.form {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 26px 26px 20px;
    box-shadow: var(--shadow);
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    font: inherit;
    color: var(--color-text);
    background: #fff;
}

.form input:focus,
.form textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.form textarea {
    resize: vertical;
    min-height: 130px;
}

.form-consent label {
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.form-consent input {
    margin-top: 4px;
    accent-color: var(--color-accent);
}

.form-submit {
    margin-bottom: 8px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.form-banner {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.form-banner-ok {
    background: #e4f2e7;
    border: 1px solid #9fceab;
    color: #1d5c31;
}

.form-banner-ok p {
    margin: 6px 0 0;
    color: #2c6e40;
}

.form-banner-err {
    background: #fdeadd;
    border: 1px solid #eeb08f;
    color: #8c3a14;
    font-weight: 600;
}

@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .map-pin-dot {
        left: -5px;
        top: -5px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .map-pin-label {
        left: 9px;
        top: -9px;
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .map-pin-left .map-pin-label {
        left: auto;
        right: 9px;
    }
}

/* --------------------------------------------------------------------------
   Original site assets (preview wiring)
   -------------------------------------------------------------------------- */

.brand-logo img {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 10px;
}

.about-photo {
    overflow: hidden;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.image-block {
    max-width: 340px;
    margin-inline: auto;
    text-align: center;
}

.image-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-inline: auto;
    background: #fff;
    padding: 12px;
}

.image-caption {
    margin: 10px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Universities map
   -------------------------------------------------------------------------- */

.map-wrap {
    position: relative;
    max-width: 620px;
    margin: 26px auto 0;
}

.map-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background: #dce7f2;
    box-shadow: var(--shadow);
    filter: saturate(0.55) contrast(0.96);
}

.map-pin {
    position: absolute;
    width: 0;
    height: 0;
}

.map-pin-dot {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-accent), var(--shadow);
}

.map-pin-label {
    position: absolute;
    left: 13px;
    top: -11px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.map-pin-label em {
    color: var(--color-accent);
    font-style: normal;
    font-weight: 800;
}

.map-pin-left .map-pin-label {
    left: auto;
    right: 13px;
}

.map-credit {
    text-align: center;
    font-size: 0.78rem;
    color: #6b7684;
    margin: 8px 0 0;
}

@media (max-width: 820px) {
    .brand-logo img {
        height: 46px;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
