:root {
    --bg: #f6f9ff;
    --bg2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f6ff;
    --border: #d8e4ff;
    --text: #0a1b3f;
    --muted: #496392;
    --blue-900: #0b1f55;
    --blue-700: #1f4fd1;
    --blue-600: #2a64ff;
    --blue-100: #e8f0ff;
    --shadow: 0 18px 40px rgba(14, 53, 141, 0.12);
    --shadow-soft: 0 10px 26px rgba(14, 53, 141, 0.09);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1000px;
    --header-h: 64px;
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(14, 53, 141, 0.08);
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    height: 100%;
    gap: 12px;
    position: relative;
}

.logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 20px;
    color: var(--blue-900);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo-dot {
    color: var(--blue-700);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.header-desktop-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    outline: none;
    background: var(--blue-100);
    border-color: var(--border);
}

.nav-toggle-bars {
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-900);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-900);
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.nav-link-dropdown::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.75;
}

.nav-login {
    white-space: nowrap;
}

.header-nav.is-open .nav-toggle-bars {
    background: transparent;
}

.header-nav.is-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.header-nav.is-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.header-nav.is-open .nav-toggle-bars::before,
.header-nav.is-open .nav-toggle-bars::after {
    transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    transition: transform 160ms ease, top 160ms ease, background 160ms ease;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--blue-900);
    border-color: var(--border);
    background: var(--blue-100);
    outline: none;
}

.nav-cta {
    color: var(--blue-900);
    border-color: var(--border);
    background: var(--surface);
}

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 6px 10px;
    font-weight: 500;
    font-size: 13px;
    color: var(--muted);
    border-radius: 999px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--blue-900);
    background: var(--blue-100);
    border-color: var(--border);
}

.lang-btn.active {
    color: var(--blue-900);
    background: var(--blue-100);
    border-color: var(--border);
    font-weight: 600;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    background: rgba(11, 31, 85, 0.24);
    backdrop-filter: blur(6px);
}

.mobile-nav-overlay.is-open {
    display: block;
}

.mobile-nav-panel {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    display: flex;
    flex-direction: column;
    padding: 18px 18px 24px;
}

.mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-nav-logo {
    font-size: 24px;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--blue-900);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 28px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(216, 228, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: var(--blue-900);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-soft);
}

.mobile-nav-link::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--blue-700);
    border-bottom: 2px solid var(--blue-700);
    transform: rotate(-45deg);
    opacity: 0.8;
}

.mobile-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
}

.mobile-lang-switcher {
    display: flex;
    gap: 8px;
}

.mobile-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--blue-900);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(14, 53, 141, 0.06);
}

/* ==================== HERO ==================== */

.hero {
    margin-top: 68px;
    background-color: #FFF;
    width: 100%;
    min-height: 506px;
    padding: 60px 32px 32px 96px;
    align-items: center;
    display: flex;
    position: relative;
    overflow: visible;
}

.hero > div {
    flex: 1;
    min-width: 0;
    z-index: 10;
}

.hero-art {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 100%;
    max-height: 506px;
    object-fit: contain;
}

.hero-btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0179F9;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    padding: 12px 16px;
    min-width: 200px;
    height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(1, 121, 249, 0.3);
}

.hero-btn h1 {
    color: white;
    font-size: clamp(16px, 2vw, 19px);
    margin: 0;
}

.hero-text-size {
    font-size: clamp(32px, 6vw, 48px);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.hero-moto {
    color: rgba(11, 31, 85, 0.82);
    font-size: clamp(18px, 4vw, 24px);
    padding-bottom: 24px;
    margin: 0;
    line-height: 1.4;
}

.hero-fade {
    background: linear-gradient(0deg, rgba(7, 7, 7, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 64px;
    right: 0px;
}

/* ==================== HERO RESPONSIVE ==================== */

@media (min-width: 2400px) {
    .hero {
        padding-left: 620px;
    }
}

/* Tablets and smaller desktops (768px - 1023px) */
@media (max-width: 1023px) {
    .hero {
        padding: 50px 24px;
        min-height: 450px;
    }

    .hero-art {
        width: auto;
        height: 100%;
        max-height: 450px;
        opacity: 0.8;
    }
}

/* Large phones and small tablets (481px - 767px) */
@media (max-width: 767px) {
    .header-desktop-actions {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
        width: 54px;
        height: 47px;
        border-radius: 14px;
    }

    .header-nav {
        gap: 12px;
    }

    .site-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 18px;
    }

    .site-header {
        background: rgba(255, 255, 255, 0.96);
    }

    .mobile-header-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 98px;
        height: 47px;
        padding: 0 18px;
        border-radius: 12px;
        border: 1px solid #e8efff;
        background: #f6f8fb;
        color: var(--blue-900);
        text-decoration: none;
        font-size: 18px;
        font-weight: 600;
        box-shadow: 0 8px 18px rgba(14, 53, 141, 0.05);
    }

    .hero {
        padding: 40px 16px;
        min-height: 380px;
        justify-content: center;
    }

    .hero > div {
        text-align: center;
    }

    .hero-art {
        width: auto;
        height: 100%;
        max-height: 380px;
        opacity: 0.6;
        right: -10%;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-btn h1 {
        flex: 1;
        text-align: left;
    }

    .mobile-nav-panel {
        padding: 16px;
    }

    .mobile-nav-content {
        gap: 12px;
    }

    .mobile-nav-link {
        min-height: 62px;
        padding: 16px 18px;
        font-size: 18px;
    }

    .mobile-nav-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-nav-login {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 30px 12px;
        min-height: 320px;
        margin-top: 60px;
    }

    .hero-art {
        display: none;
    }

    .hero-btn {
        width: 100%;
        height: 44px;
        padding: 10px 12px;
    }

    .hero-btn h1 {
        font-size: clamp(14px, 2.5vw, 16px);
    }

    .hero-btn svg {
        width: 16px;
        height: 12px;
    }
}

/* ==================== Populaarsemad teenused ==================== */

.pop-teenused {
    padding: 0px 32px 0px 32px;
}

@media (min-width: 2400px) {
    .pop-teenused {
        padding: 0px 620px 0px 620px;
    }
}

.teenused-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 64px 0px 32px 0px;
}

.pop-teenused-container {
    display: flex;
    gap: 24px;
    flex-direction: column;
    width: 100%;
}

.card-half {
    width: 50%;
    height: 100%;
}

.pop-teenus-card {
    padding: 48px 48px 48px 48px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 12px;
    border: 4px solid rgba(99, 203, 194, 0.29);
    background: #FBFBFB;
    width: 100%;
}

.pop-teenus-card-2 {
    padding: 48px 48px 48px 48px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 12px;
    border: 4px solid rgba(31, 79, 209, 0.29);
    background: #FBFBFB;
    width: 100%;
}

.card-title {
    color: #0B1F55;
    font-size: 24px;
}

.card-text {
    color: #000;
    font-size: 18px;
}

.card-half:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0179F9;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    padding: 0px 14px 0px 14px;
    height: 48px;
    width: 40%;
}

.btn h1 {
    color: white;
    font-size: 19px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(1, 121, 249, 0.3);
}

.my-4 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.img-half {
    flex: 0 0 38%;
    max-width: 300px;
    max-height: 300px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-half img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1023px) {
    .btn {
    width: 100%;
}
    
}

@media (max-width: 767px) {
    .pop-teenused {
        padding: 0 16px;
    }

    .teenused-title {
        padding: 40px 0 24px 0;
        align-items: center;
    }

    .teenused-title h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .pop-teenus-card,
    .pop-teenus-card-2 {
        flex-direction: column;
        padding: 24px 20px;
        gap: 18px;
    }

    .card-half {
        width: 100%;
    }

    .img-half {
        order: 0;
        min-height: 180px;
    }

    .img-half img {
        max-width: 220px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .card-half:not(.img-half) {
        order: 1;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card-text {
        font-size: 16px;
        line-height: 1.55;
    }

    .btn {
        width: 100%;
        margin-top: 8px;
    }

    .btn h1 {
        font-size: 16px;
    }
}

/* ==================== Kõik teenused ==================== */

.teenused {
    padding: 0px 32px 0px 32px;
}

@media (min-width: 2400px) {
    .teenused {
        padding: 0px 620px 0px 620px;
    }
}

.teenused-title h1 {
    font-size: 26px;
    color: #0B1F55;
}

.teenused-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.teenused-btn {
    border-radius: 12px;
    border: 1px solid rgba(38, 38, 38, 0.12);
    background: #FBFBFB;
    height: 64px;
    padding: 0px 32px 0px 32px;
}

.teenused-btn:hover {
    border: 1px solid rgba(38, 38, 38, 0.527);
}

.teenused-btn h1 {
   font-size: 20px;
   text-align: center;
}

.teenused-info {
    width: 50%;
    margin-top: 26px;
}

@media (max-width: 767px) {
    .teenused {
        padding: 0px 16px 0px 16px;
    }

    .teenused-title h1 {
        font-size: 22px;
    }

    .teenused-list {
        gap: 16px;
    }

    .teenused-btn {
        height: 56px;
        padding: 0px 16px 0px 16px;
    }

    .teenused-btn h1 {
        font-size: 16px;
    }

    .teenused-info {
        width: 100%;

    }
}

@media (max-width: 480px) {
    .teenused {
        padding: 0px 12px 0px 12px;
    }

    .teenused-title h1 {
        font-size: 18px;
    }

    .teenused-list {
        gap: 12px;
    }

    .teenused-btn {
        flex: 1 1 calc(50% - 6px);
        height: 48px;
        padding: 0px 12px 0px 12px;
    }

    .teenused-btn h1 {
        font-size: 14px;
    }
}

/* ==================== FOOTER ==================== */


.site-footer {
  padding: 30px 32px 64px 32px;
  margin-top: 40px;
}

@media (min-width: 2400px) {
    .site-footer {
        padding: 0px 620px 64px 620px;
    }
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-contact {
  text-align: left;
}

.footer-contact p {
  margin: 0;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(73, 99, 146, 0.3);
  text-underline-offset: 2px;
  transition: all 0.15s ease;
}

.footer-contact a:hover {
  color: var(--blue-900);
  text-decoration-color: var(--blue-700);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-brand {
        order: 1;
    }

    .footer-contact {
        order: 2;
    }

    .footer-legal {
        order: 3;
        text-align: left;
    }
}

/* ==================== MODALS ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 85, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--blue-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--blue-900);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text);
}

.modal-body h3 {
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.1rem;
  color: var(--blue-900);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 1rem 0;
}

.modal-body ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: right;
}