:root {
    --blue-header: #1d62a1;
    --blue-dark: #164f84;
    --blue-btn: #1e5f9a;
    --blue-text: #1d62a1;
    --orange: #e88b2d;
    --orange-hover: #d47a1f;
    --green: #82bc00;
    --red: #e30613;
    --black: #111111;
    --gray-bg: #ececec;
    --gray-text: #666666;
    --white: #ffffff;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: #333;
    background: var(--white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: var(--blue-header);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header-randevu {
    background: var(--white);
    color: var(--blue-header);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-header-randevu:hover {
    background: #f0f4f8;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: 0.2s;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 24px 14px;
    flex-wrap: wrap;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a:hover {
    opacity: 0.85;
}

.logo-link {
    flex-shrink: 0;
    padding: 0 12px;
}

.logo-mobile {
    display: none;
}

.logo {
    width: 110px;
    height: auto;
    display: block;
}

.logo-link .logo {
    width: 120px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(236, 236, 236, 0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    text-align: center;
}

.hero h1 {
    margin: 0 0 12px;
    color: var(--blue-text);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero-sub {
    margin: 0 0 32px;
    color: var(--blue-text);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.appointment-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-text);
    margin-bottom: 6px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    font-size: 0.95rem;
    background: var(--white);
    color: #333;
}

.form-field input:focus,
.form-field select:focus {
    outline: 2px solid var(--blue-header);
    border-color: var(--blue-header);
}

.form-field input.input-invalid,
.form-field select.input-invalid {
    border-color: #dc2626;
    outline-color: #dc2626;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
}

.field-error[hidden] {
    display: none;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.btn {
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
}

.btn-orange:hover {
    background: var(--orange-hover);
}

.btn-blue {
    background: var(--blue-btn);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--blue-dark);
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 110px;
    padding: 16px 10px;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    transition: filter 0.2s;
}

.quick-link:hover {
    filter: brightness(1.08);
}

.quick-link svg {
    width: 28px;
    height: 28px;
}

.quick-icon {
    font-size: 1.4rem;
}

.quick-link-red { background: var(--red); }
.quick-link-blue { background: var(--blue-header); }
.quick-link-green { background: var(--green); }

/* News */
.news-section {
    background: var(--black);
    color: var(--white);
    padding: 40px 24px 48px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 28px;
    gap: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
}

.link-all {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.news-image {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.news-image-1 {
    background-image: linear-gradient(135deg, #4a6fa5, #1d62a1);
}

.news-image-2 {
    background-image: linear-gradient(135deg, #5a7a5a, #2d5a2d);
}

.news-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.news-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #ccc;
}

.arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--blue-header);
    border-radius: 50%;
    color: var(--blue-header);
    font-size: 1rem;
}

/* Stations */
.stations-section {
    background: var(--blue-header);
    color: var(--white);
    padding: 0;
}

.stations-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    max-width: 1400px;
    margin: 0 auto;
}

.stations-map {
    position: relative;
    min-height: 400px;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 45%, rgba(255,255,255,0.15) 0%, transparent 50%),
        linear-gradient(160deg, #2a7ab8 0%, #1d62a1 100%);
}

.map-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--blue-header);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stations-panel {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.stations-panel h2 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.station-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 0 12px;
}

.search-field svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.search-field input {
    flex: 1;
    background: none;
    border: none;
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    outline: none;
}

.search-field input::placeholder {
    color: rgba(255,255,255,0.7);
}

.station-search select {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 100px;
}

.station-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    max-height: 320px;
}

.station-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.station-list strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.station-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.station-btn {
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.station-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Process */
.process-section {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("../images/bg-hero.jpg") center/cover no-repeat;
    color: var(--white);
    padding: 48px 24px 64px;
}

.process-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.process-inner h2 {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.35rem);
    margin: 0 0 28px;
    font-weight: 700;
}

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.process-tab {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.process-tab.active {
    background: var(--white);
    color: var(--blue-header);
}

.process-content.hidden {
    display: none;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    align-items: start;
    margin-bottom: 24px;
    opacity: 0.5;
    cursor: pointer;
    max-width: 700px;
}

.process-step.active {
    opacity: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    grid-row: span 2;
}

.process-step.active .step-num {
    background: var(--blue-header);
    transform: scale(1.15);
}

.step-text {
    font-weight: 700;
    font-size: 1rem;
}

.step-detail {
    grid-column: 2;
    font-size: 0.9rem;
    opacity: 0.9;
}

.process-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-randevu-btn {
    display: inline-block;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    width: fit-content;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 8px;
    color: #aaa;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.78rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    color: #888;
}

.footer-bottom p {
    margin: 0;
    color: #666;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.96);
    color: var(--white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 200;
    flex-wrap: wrap;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.82rem;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: var(--orange);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loading-overlay[hidden] {
    display: none !important;
}

.loading-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--blue-header);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-box h2 {
    margin: 0 0 8px;
    color: var(--blue-text);
    font-size: 1.2rem;
}

.loading-box p {
    margin: 0;
    color: var(--gray-text);
    font-size: 0.95rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1100px) {
    .quick-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .logo-mobile {
        display: block;
        margin: 0 auto;
    }

    .main-nav .logo-link {
        display: none;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        padding: 16px;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul a {
        display: block;
        padding: 14px 8px;
        font-size: 0.85rem;
    }

    .nav-left,
    .nav-right {
        width: 100%;
    }

    .logo-link {
        order: -1;
        padding: 8px 0 16px;
    }

    .stations-inner {
        grid-template-columns: 1fr;
    }

    .stations-map {
        min-height: 280px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        min-height: 160px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .form-row,
    .form-actions {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-link {
        min-height: 90px;
        font-size: 0.65rem;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
