@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Day Mode (Nappali) */
    --bg-main: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-accent: #0056b3;
    /* Deep blue */
    --accent: #0056b3;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius-ui: 4px;
    --btn-primary-bg: #0056b3;
    --btn-primary-hover: #00458f;
    --btn-primary-text: #ffffff;
}

[data-theme='dark'] {
    /* Night Mode (Éjszakai) - Based on screenshots */
    --bg-main: #0B0E14;
    /* Deep, dark graphite/blue */
    --bg-secondary: #131822;
    --bg-card: #151A23;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-accent: #00C2FF;
    /* High contrast cyan */
    --accent: #00C2FF;
    --border-color: #1e293b;
    --nav-bg: rgba(11, 14, 20, 0.95);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --btn-primary-bg: #00C2FF;
    --btn-primary-hover: #30D0FF;
    --btn-primary-text: #0B0E14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent);
}

.nav-links li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::before, .nav-links li a.active::before {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    text-transform: uppercase;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--accent);
}

.theme-switch {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.theme-switch:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-ui);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

header.nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

header.nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Sections */
section {
    padding: 120px 5%;
}

.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-divider {
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 30px auto;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    max-width: 900px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-ui);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Unified corner radius across the site (except circle elements) */
.card,
.info-card,
.srv-card,
.srv-card .srv-content,
.srv-content .srv-btn,
.contact-info-block,
.contact-form-box,
.dropdown-menu,
.about-stats-panel,
.contact-map-card,
.faq-answer,
.faq-item {
    border-radius: var(--radius-ui) !important;
}

[style*="border-radius:"]:not([style*="50%"]) {
    border-radius: var(--radius-ui) !important;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.scroll-down i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.scroll-down svg {
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.scroll-down-subpage {
    bottom: 22px;
}

.static-page-hero {
    padding-top: 130px !important;
}

.page-hero-title {
    overflow-wrap: anywhere;
}

.about-hero-title .about-hero-word {
    display: inline-block;
}

.about-hero-title .about-hero-word:not(:last-child) {
    margin-right: 0.28em;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Grids / Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

/* Info Cards (Blog/Tudástár style) */
.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s;
}

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

.info-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #1b2236;
    padding: 80px 5% 30px 5%;
    color: #f8fafc;
    border-top: 1px solid rgba(0, 194, 255, 0.2);
}

[data-theme='dark'] footer {
    background-color: #0d1320;
    border-top-color: rgba(0, 194, 255, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.footer-desc {
    color: #94a3b8;
    font-size: 15px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.social-quick-links {
    margin-top: 8px;
    margin-bottom: 0;
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
}

.footer-social-link .icon-facebook {
    width: 16px;
    height: 16px;
    transform: translateX(0.4px);
}

.footer-social-link:hover {
    color: var(--accent);
    background: rgba(0, 194, 255, 0.08);
    border-color: var(--accent);
    transform: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
}

/* About page */
.about-main-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 80px;
    align-items: start;
}

.about-stats-band {
    margin: 56px auto 0;
    width: min(1600px, 100%);
}

.about-stats-panel {
    width: 100%;
    background: #1b2236;
    border-radius: var(--radius-ui);
    border: 1px solid rgba(0, 194, 255, 0.2);
    padding: 34px 28px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.about-stats-grid.about-stats-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-stat-item {
    text-align: center;
}

.about-stat-value {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-stat-label {
    margin-top: 12px;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-dot {
    position: absolute;
    left: -50px;
    top: 6px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-sizing: border-box;
}

.timeline-dot.default {
    background: var(--accent);
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.3);
}

.timeline-dot.current {
    background: var(--bg-main);
    border: 4px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.6);
}

.timeline-year-dark {
    color: #111;
}

[data-theme='dark'] .timeline-year-dark {
    color: #fff;
}

.timeline-year-accent {
    color: var(--accent);
}

.about-timeline {
    position: relative;
    padding-left: 68px;
    border-left: none !important;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 16.5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(0, 194, 255, 0.2);
}

.about-timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.about-timeline-item:last-child {
    margin-bottom: 0;
}

.about-timeline-item:first-child .timeline-dot {
    top: 2px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    header {
        height: 80px;
        min-height: 80px;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .header-right {
        margin-left: auto;
        justify-content: flex-end;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 3;
        margin-left: 4px;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 12px 5% 16px;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        display: block;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .nav-links li a::before {
        display: none;
    }

    .nav-links li.dropdown > a::after {
        margin-left: auto;
    }

    .nav-links li.dropdown > a {
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        left: 0;
        top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        background: transparent;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 14px;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    .nav-links li.dropdown.dropdown-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 520px;
        padding-top: 8px;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 14px;
    }

    .dropdown-menu li a:hover {
        background: transparent;
        padding-left: 0;
    }

    .hero h1 {
        font-size: 40px;
        max-width: 92vw;
    }

    h1,
    h2,
    h3,
    .section-title,
    .page-hero-title,
    .contact-hero-title,
    .references-hero-title,
    .about-hero-title {
        overflow-wrap: break-word !important;
        word-break: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
    }

    .about-hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }

    .about-hero-title .about-hero-word {
        display: block;
        margin-right: 0;
    }

    .references-hero-title {
        max-width: min(92vw, 13ch) !important;
        line-height: 1.1 !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        hyphens: none !important;
        text-wrap: balance;
        margin-left: auto;
        margin-right: auto;
    }

    .hero.references-hero-section {
        height: auto !important;
        min-height: 320px !important;
        padding-top: 140px !important;
        padding-bottom: 50px !important;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-timeline {
        padding-left: 58px;
    }

    .about-timeline::before {
        left: 12.5px;
    }

    .timeline-dot {
        left: -44px;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .about-stats-grid.about-stats-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .about-stats-panel {
        padding: 20px 14px;
    }

    .about-stats-grid.about-stats-grid--three .about-stat-value {
        font-size: 2rem;
    }

    .about-stats-grid.about-stats-grid--three .about-stat-label {
        font-size: 0.68rem;
        line-height: 1.25;
        letter-spacing: 0.06em;
    }

    section {
        padding: 80px 5%;
    }
}

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

    .about-stats-grid.about-stats-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .about-stats-grid.about-stats-grid--three .about-stat-value {
        font-size: 1.75rem;
    }

    .about-stats-grid.about-stats-grid--three .about-stat-label {
        font-size: 0.6rem;
        line-height: 1.2;
        letter-spacing: 0.04em;
    }
}

/* --- Dropdown Nav --- */
.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 4px;
}

.nav-links li.dropdown>a {
    display: inline-flex;
    align-items: center;
}

.nav-links li.dropdown>a::after {
    content: '▾';
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    margin-top: -1px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-ui);
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 260px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-links li.dropdown:hover .dropdown-menu,
.nav-links li.dropdown:focus-within .dropdown-menu,
.nav-links li.dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    height: auto;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-primary);
    text-transform: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.2s;
}

.dropdown-menu li a::after { display: none; }
.dropdown-menu li a::before { display: none; }

.dropdown-menu li a:hover {
    background-color: rgba(0, 194, 255, 0.05);
    color: var(--accent);
    padding-left: 30px;
}

/* Scroll reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Service Showcase Grid --- */
.service-showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.srv-card {
    position: relative;
    border-radius: var(--radius-ui);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-card);
}

.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.srv-card .srv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}

.srv-card:hover .srv-bg {
    transform: scale(1.05);
}

.srv-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.50) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.srv-card:hover::after {
    opacity: 0.95;
}

.blog-grid .blog-card::after {
    content: none;
    display: none;
}

.srv-card .srv-content {
    position: relative;
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 28px;
    width: 100%;
    color: #fff;
}

.srv-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    color: #fff;
}

.srv-content p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 1);
}

.srv-content .srv-btn {
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    border-radius: var(--radius-ui);
}

.srv-card:hover .srv-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.srv-span-8 {
    grid-column: span 8;
}

.srv-span-4 {
    grid-column: span 4;
}

.srv-span-6 {
    grid-column: span 6;
}

.srv-span-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {

    .srv-span-8,
    .srv-span-4,
    .srv-span-6,
    .srv-span-12 {
        grid-column: span 12;
    }

    .srv-card {
        min-height: 350px;
    }
}
/* --- Contact Page --- */
.contact-section {
    padding-top: 15vh;
    padding-bottom: 80px;
}
.contact-new-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.contact-card .contact-map-card {
    margin-top: 20px;
    flex-grow: 1;
}
.contact-card .contact-map-open-btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
}
.contact-map-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-map-card iframe {
    display: block;
    width: 100%;
}
.contact-map-open-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-info-block, .contact-form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    padding: 32px;
    box-shadow: var(--shadow);
}
.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.contact-item:last-child {
    margin-bottom: 0;
}
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}
.contact-detail h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.contact-detail p, .contact-detail a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s;
}
.contact-detail a:hover {
    color: var(--accent);
}
.contact-role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.contact-role-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.contact-role-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.contact-role-title {
    display: inline-block;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}
.contact-role-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
}
.contact-role-name {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-role-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent) !important;
    text-decoration: none;
    white-space: nowrap;
}
.contact-role-phone:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .contact-role-meta {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
}
.contact-form-box h3, .contact-info-block h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .contact-cards-row {
        grid-template-columns: 1fr;
    }
}

.reference-grid .reference-card {
    cursor: default;
}
.reference-site {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Trust grid 1 row setup */
#bizalom .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media screen and (max-width: 1100px) {
    #bizalom .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 600px) {
    #bizalom .grid-4 { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 25px 0; }
.faq-question { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 0px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--accent); }
.faq-answer { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; margin-top: 15px; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--accent); }
.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    width: 24px;
    height: 24px;
}

.faq-contact-section {
    background-color: var(--bg-secondary);
    padding: 56px 5% 72px;
}

.faq-contact-section .faq-contact-cta {
    margin: 0 auto;
}

/* Mobile nav override (placed last to avoid cascade conflicts) */
@media (max-width: 900px) {
    header .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 12px 5% 16px;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    header .nav-links li {
        width: 100%;
        display: block;
    }

    header .nav-links li a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    header .nav-links li.dropdown > a {
        display: flex;
        align-items: center;
    }

    header .nav-links li.dropdown > a::after {
        margin-left: auto;
    }

    header .dropdown-menu {
        position: static;
        width: 100%;
        left: 0;
        top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        background: transparent;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 14px;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    header .nav-links li.dropdown.dropdown-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 520px;
        padding-top: 8px;
    }

    header .dropdown-menu li a {
        padding: 10px 0;
        font-size: 14px;
    }

    header .dropdown-menu li a:hover {
        background: transparent;
        padding-left: 0;
    }
}

/* Mobile layout stability for inline grids/flex blocks used in page templates */
@media (max-width: 900px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        gap: 12px;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }

    img,
    iframe,
    video {
        max-width: 100%;
    }

    [style*="minmax(500px, 1fr)"],
    [style*="minmax(400px, 1fr)"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.5fr"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    [style*="display: grid"][style*="gap: 80px"] {
        gap: 34px !important;
    }

    [style*="display: flex; flex-wrap: wrap; gap: 60px"] {
        gap: 28px !important;
    }

    [style*="position: sticky; top: 120px"] {
        position: static !important;
        top: auto !important;
    }
}

.theme-switch svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.dropdown-toggle {
    display: none;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-ui);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dropdown-toggle svg {
    width: 16px;
    height: 16px;
}

.faq-contact-cta {
    margin: 34px auto 0;
    max-width: 800px;
    text-align: center;
    padding-top: 26px;
}

.faq-contact-cta p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 16px;
}

.blog-grid .blog-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.blog-grid .blog-card .srv-bg {
    position: relative !important;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    z-index: auto;
    transform: none !important;
    transition: none !important;
}

.blog-grid .blog-card .srv-content {
    border-radius: 0 0 var(--radius-ui) var(--radius-ui);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    color: var(--text-primary);
}

[data-theme='dark'] .blog-grid .blog-card .srv-content {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(12, 17, 27, 0.72);
}

.blog-grid .blog-card .srv-content h3,
.blog-grid .blog-card .srv-content p {
    color: var(--text-primary);
    text-shadow: none !important;
}

.blog-grid .blog-card .srv-content p {
    opacity: 1;
}

.blog-grid .blog-card .blog-card-meta {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.95;
}

.blog-grid .blog-card .srv-content .srv-btn {
    border-color: #111;
    color: #111;
    background: transparent;
}

.blog-grid .blog-card:hover .srv-content .srv-btn {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

[data-theme='dark'] .blog-grid .blog-card .srv-content h3,
[data-theme='dark'] .blog-grid .blog-card .srv-content p {
    color: #e2e8f0;
}

[data-theme='dark'] .blog-grid .blog-card .srv-content .srv-btn {
    border-color: #e2e8f0;
    color: #e2e8f0;
}

.blog-hero {
    height: auto;
    min-height: 420px;
    padding-top: 200px;
    padding-bottom: 80px;
    justify-content: flex-end;
}

.hero .blog-hero-title {
    color: #fff !important;
}

.blog-hero .blog-hero-title {
    color: #fff !important;
}

.blog-hero-meta {
    margin-bottom: 20px;
    color: #fff;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-ui);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 4.2vw, 42px);
    margin-bottom: 0;
    max-width: 1000px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.blog-article-section {
    background-color: var(--bg-card);
    padding: 80px 5%;
}

.blog-article-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
}

.blog-article-main {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    min-width: 0;
}

.blog-article-main h3[id] {
    scroll-margin-top: 120px;
}

.blog-quick-nav {
    position: sticky;
    top: 120px;
    align-self: start;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    padding: 22px 20px;
    box-shadow: var(--shadow);
}

.blog-quick-nav h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
    color: var(--text-primary);
}

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

.blog-quick-links a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-quick-links a:hover {
    color: var(--accent);
    border-color: rgba(0, 194, 255, 0.35);
    background: rgba(0, 194, 255, 0.08);
}

.blog-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: var(--radius-ui);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-quick-btn:hover {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

@media (max-width: 900px) {
    header {
        padding-left: clamp(14px, 4vw, 20px);
        padding-right: clamp(14px, 4vw, 20px);
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 14px 18px;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }

    .srv-content .srv-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 10px 14px;
    }

    header .header-right {
        min-width: 0;
        gap: 8px;
    }

    header .lang-switch {
        position: relative;
        font-size: 0;
        gap: 0;
        padding: 2px;
        border: 1px solid var(--border-color);
        border-radius: 999px;
        background: var(--bg-secondary);
        align-items: stretch;
        justify-content: center;
        min-width: 44px;
        overflow: visible;
        z-index: 1003;
    }

    header .lang-btn {
        font-size: 11px;
        height: 28px;
        min-width: 40px;
        border-radius: 999px;
        padding: 0 10px;
        display: none;
        align-items: center;
        justify-content: center;
        gap: 0;
        border: none;
        background: transparent;
        position: relative;
        z-index: 2;
    }

    header .lang-btn.active {
        display: inline-flex;
        background: var(--accent);
        color: #fff;
        padding: 0 22px 0 12px;
    }

    header .lang-btn.active::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.8px solid currentColor;
        border-bottom: 1.8px solid currentColor;
        transform: translate(9px, -50%) rotate(45deg);
        transform-origin: 50% 50%;
        transition: transform 0.2s ease;
        opacity: 0.9;
    }

    [data-theme='dark'] header .lang-btn.active {
        color: #0b0e14;
    }

    header .lang-switch.lang-open .lang-btn {
        display: inline-flex;
    }

    header .lang-switch.lang-open .lang-btn.active::after {
        transform: translate(9px, -50%) rotate(225deg);
    }

    header .lang-switch.lang-open .lang-btn:not(.active) {
        position: absolute;
        left: -1px;
        right: -1px;
        top: calc(100% + 6px + (var(--lang-order, 1) - 1) * 34px);
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        box-shadow: var(--shadow);
    }

    header .lang-switch.lang-open .lang-btn:not(.active):hover {
        color: var(--accent);
        border-color: var(--accent);
    }

    header .theme-switch {
        width: 34px;
        height: 34px;
    }

    header .theme-switch svg {
        width: 16px;
        height: 16px;
    }

    header .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 38px;
        position: relative;
    }

    header .mobile-menu-toggle span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        height: 2px;
        margin: 0;
        transform: translate(-50%, 0);
    }

    header .mobile-menu-toggle span:nth-child(1) {
        transform: translate(-50%, -7px);
    }

    header .mobile-menu-toggle span:nth-child(2) {
        transform: translate(-50%, 0);
    }

    header .mobile-menu-toggle span:nth-child(3) {
        transform: translate(-50%, 7px);
    }

    header.nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translate(-50%, 0) rotate(45deg);
    }

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

    header.nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translate(-50%, 0) rotate(-45deg);
    }

    header .nav-links li.dropdown {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    header .nav-links li.dropdown > a {
        grid-column: 1 / 2;
        min-width: 0;
        padding-right: 10px;
    }

    header .nav-links li.dropdown > a::after {
        display: none;
    }

    header .nav-links li.dropdown > .dropdown-toggle {
        display: inline-flex;
        grid-column: 2 / 3;
        justify-self: end;
    }

    header .nav-links li.dropdown.dropdown-open > .dropdown-toggle {
        color: var(--accent);
        border-color: var(--accent);
        transform: rotate(180deg);
    }

    header .nav-links li.dropdown > .dropdown-menu {
        grid-column: 1 / -1;
        padding-left: 14px;
    }

    .faq-contact-cta p {
        font-size: 15px;
        line-height: 1.5;
    }

    .contact-hero-title {
        font-size: clamp(2.1rem, 8.4vw, 2.8rem) !important;
        line-height: 1.12;
        max-width: 96%;
        margin-left: auto;
        margin-right: auto;
        word-break: normal;
    }

    .contact-hero-desc {
        font-size: 16px !important;
        max-width: 92% !important;
    }

    .page-hero-title {
        font-size: clamp(1.9rem, 8.3vw, 2.6rem) !important;
        line-height: 1.15;
        max-width: 94vw !important;
        margin-left: auto;
        margin-right: auto;
    }

    .static-page-hero {
        padding-top: 118px !important;
    }
}

@media (max-width: 900px) {
    .blog-hero {
        min-height: 0;
        height: auto;
        padding-top: 132px;
        padding-bottom: 54px;
    }

    .blog-hero-title {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
        max-width: min(92vw, 26ch);
        margin-left: auto;
        margin-right: auto;
        line-height: 1.2;
        color: #fff !important;
    }

    .blog-hero-meta {
        margin-bottom: 14px;
    }

    .blog-article-section {
        padding: 34px 0 54px;
    }

    .blog-article-layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 0 5%;
    }

    .blog-article-main {
        order: 2;
        font-size: 16px;
        line-height: 1.7;
        display: block;
    }

    .blog-article-main h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.25;
        margin-bottom: 20px !important;
    }

    .blog-article-main h3 {
        font-size: clamp(1.25rem, 5.4vw, 1.6rem) !important;
        line-height: 1.3;
    }

    .blog-quick-nav {
        position: static;
        top: auto;
        order: 1;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 18px 5%;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

}
