﻿@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --text: #14161e;
  --muted: #616775;
  --accent: #ef3b23;
  --accent-dark: #cc2f1a;
  --deep: #0b1025;
  --border: #e2e5eb;
  --header-offset: 58px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

html.pt-preload body {
  opacity: 0;
}

.page-transitions-enabled body {
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transitions-enabled body.page-transition-out {
  opacity: 0;
  pointer-events: none;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

html {
  scroll-padding-top: var(--header-offset);
}

[id] {
  scroll-margin-top: var(--header-offset);
}

.header-shell {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: clamp(300px, 19vw, 355px) 1fr;
  background: #fff;
}

.brand {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.5rem 0 2rem;
  min-height: 130px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-copy strong {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.brand-copy small {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.header-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--deep);
}

.top-bar {
  min-height: 46px;
  background: #090e21;
  color: #f3f6ff;
  padding: 0.55rem 2.4rem 0.55rem clamp(6.2rem, 9vw, 9.4rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.top-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(34px, 3vw, 46px);
  height: 100%;
  background: #7b1209;
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
}

.top-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  white-space: nowrap;
}

.top-link i {
  color: var(--accent);
}

.top-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
}

.nav-bar {
  position: relative;
  min-height: 84px;
  padding: 0 2.4rem 0 clamp(6.8rem, 10vw, 10.6rem);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
}

.mobile-brand {
  display: none;
}

.header-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.1vw, 1.2rem);
}

.main-nav .nav-dropdown {
  position: relative;
}

.main-nav .nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.05rem, 1.04vw, 1.22rem);
  font-weight: 700;
  color: #191b24;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
}

.main-nav a span {
  font-size: 0.9rem;
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
}

body:has(#services-section:target) .main-nav .nav-dropdown > a[href*="#services-section"] {
  color: var(--accent);
}

body:has(#services-section:target) .main-nav > a[href="index.html"][aria-current="page"] {
  color: #191b24;
}

.main-nav .nav-submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 26px rgba(16, 21, 36, 0.14);
  padding: 0.45rem;
  display: grid;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 30;
}

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

.main-nav .nav-submenu a {
  text-transform: none;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.48rem 0.58rem;
  border-radius: 4px;
}

.main-nav .nav-submenu a:hover {
  background: #f2f4f8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.quote-btn {
  height: 60px;
  min-width: 188px;
  justify-content: center;
  padding: 0 1.7rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.quote-btn:hover {
  background: var(--accent-dark);
}

h1 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0.55rem;
}

.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 14, 30, 0.92), rgba(10, 14, 30, 0.95)),
    url("../assets/home/footer-bg.jpg") center/cover no-repeat;
  color: #f4f6ff;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 59, 35, 0.14), rgba(239, 59, 35, 0) 38%),
    radial-gradient(circle at 100% 100%, rgba(239, 59, 35, 0.1), rgba(239, 59, 35, 0) 45%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, 94vw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.3rem) 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1.15fr 0.7fr;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}

.footer-block h3,
.footer-block h4 {
  margin: 0 0 0.7rem;
  font-family: "Rajdhani", sans-serif;
  color: #fff;
  text-transform: uppercase;
}

.footer-block h3 {
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  line-height: 0.92;
}

.footer-block h4 {
  font-size: 1.36rem;
  line-height: 0.95;
}

.footer-brand-text {
  margin: 0;
  color: rgba(241, 245, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.58;
}

.footer-links {
  display: grid;
  gap: 0.42rem;
}

.footer-links a {
  color: rgba(241, 245, 255, 0.86);
  text-decoration: none;
  font-size: 0.96rem;
}

.footer-links a:hover {
  color: #fff;
}

.operator-info {
  margin: 0;
  color: rgba(241, 245, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.58;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(241, 245, 255, 0.92);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.footer-contact-link i {
  color: var(--accent);
}

.footer-meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
}

.footer-legal a {
  color: rgba(241, 245, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  color: rgba(241, 245, 255, 0.86);
  font-size: 0.88rem;
}

.footer-disclaimer {
  margin: 0.95rem 0 0;
  color: rgba(241, 245, 255, 0.84);
  font-size: 0.8rem;
  line-height: 1.48;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.cookie-banner,
.cookie-modal,
.cookie-settings-toggle,
.cookie-overlay {
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0 auto;
  max-width: 1080px;
  background: #10162c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(7, 11, 24, 0.45);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
}

.cookie-banner h2 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.cookie-banner p {
  margin: 0.35rem 0 0;
  color: rgba(244, 247, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 42px;
  border-radius: 5px;
  border: 0;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font: 700 0.86rem/1 "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
}

.cookie-btn-light {
  background: #ffffff;
  color: #11172d;
}

.cookie-btn-ghost {
  background: transparent;
  color: #f1f5ff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.58);
}

.cookie-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d9deea;
  box-shadow: 0 24px 42px rgba(9, 13, 27, 0.35);
  padding: 1rem;
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cookie-modal-head h2 {
  margin: 0;
  color: #121a31;
  font: 700 1.55rem/1 "Rajdhani", sans-serif;
  text-transform: uppercase;
}

.cookie-close {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid #d5dae6;
  background: #fff;
  color: #121a31;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-modal-lead {
  margin: 0.6rem 0 0;
  font-size: 0.94rem;
  color: #596176;
  line-height: 1.5;
}

.cookie-pref-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.56rem;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f4f6fb;
  border: 1px solid #dde2ee;
  border-radius: 8px;
  padding: 0.72rem 0.82rem;
}

.cookie-pref-item h3 {
  margin: 0;
  color: #11172d;
  font: 700 1.1rem/1 "Rajdhani", sans-serif;
  text-transform: uppercase;
}

.cookie-pref-item p {
  margin: 0.28rem 0 0;
  color: #5d6679;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-switch {
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  position: relative;
}

.cookie-switch input {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 999px;
  border: 1px solid #cfd5e4;
  background: #d8deea;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.cookie-switch input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(12, 17, 33, 0.22);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.cookie-switch input:checked + span {
  transform: translateX(20px);
}

.cookie-switch input:disabled {
  cursor: not-allowed;
  opacity: 0.95;
}

.cookie-modal-actions {
  margin-top: 0.86rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-settings-toggle {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #d6dcea;
  background: #fff;
  color: #121a31;
  font: 700 0.85rem/1 "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 12px 22px rgba(12, 17, 33, 0.2);
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1220px) {
  .brand {
    min-height: 122px;
    padding-left: 1.7rem;
  }

  .top-bar,
  .nav-bar {
    padding-left: 3rem;
    padding-right: 1.4rem;
  }

  .main-nav {
    gap: 0.72rem;
  }

  .quote-btn {
    height: 54px;
    min-width: 164px;
    padding: 0 1.2rem;
    font-size: 1.02rem;
  }

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

@media (max-width: 1024px) {
  :root {
    --header-offset: 66px;
  }

  .header-shell {
    grid-template-columns: 1fr;
  }

  .brand {
    display: none;
  }

  .top-bar {
    min-height: 40px;
    gap: 0.7rem;
    flex-wrap: wrap;
    padding-left: 1.4rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .top-bar::before {
    display: none;
  }

  .top-link {
    font-size: 0.82rem;
  }

  .top-divider {
    display: none;
  }

  .nav-bar {
    min-height: 70px;
    padding-left: 1rem;
    gap: 0.7rem;
  }

  .mobile-brand {
    min-height: 44px;
    padding: 0 0.7rem 0 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    line-height: 1;
  }

  .mobile-brand-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.88rem;
  }

  .mobile-brand strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: grid;
    place-items: center;
    margin-left: auto;
    cursor: pointer;
    background: #fff;
    font-size: 1.08rem;
  }

  .header-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(16, 21, 36, 0.13);
    padding: 1rem 1.4rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .menu-toggle:checked ~ .header-panel {
    display: flex;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .main-nav a {
    font-size: 1.24rem;
  }

  .main-nav .nav-dropdown {
    width: 100%;
  }

  .main-nav .nav-dropdown::after {
    display: none;
  }

  .main-nav .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav .nav-submenu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--border);
    background: #f8f9fb;
    margin-top: 0.35rem;
    padding: 0.4rem;
    width: 100%;
  }

  .main-nav .nav-submenu a {
    font-size: 1rem;
    padding: 0.45rem 0.52rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .quote-btn {
    height: 48px;
    min-width: 152px;
    padding: 0 1rem;
    font-size: 0.96rem;
  }

  .footer-inner {
    padding-top: 1.7rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --header-offset: 72px;
  }

  .header-panel {
    max-height: calc(100dvh - 126px);
  }

  .mobile-brand {
    min-height: 40px;
    padding-right: 0.58rem;
  }

  .mobile-brand strong {
    font-size: 0.98rem;
  }

  .mobile-brand-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .quote-btn {
    padding: 0 0.8rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-legal {
    gap: 0.3rem 0.7rem;
  }

  .footer-copy {
    font-size: 0.82rem;
  }

  .footer-disclaimer {
    font-size: 0.76rem;
  }

  .cookie-banner {
    left: max(0.7rem, env(safe-area-inset-left));
    right: max(0.7rem, env(safe-area-inset-right));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    padding: 0.8rem 0.76rem;
  }

  .cookie-banner h2 {
    font-size: 1.2rem;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal {
    width: calc(100vw - 1rem);
    padding: 0.82rem;
    max-height: calc(100dvh - 1rem);
  }

  .cookie-pref-item {
    gap: 0.7rem;
  }

  .cookie-settings-toggle {
    left: max(0.7rem, env(safe-area-inset-left));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transitions-enabled body.page-transition-out {
    transition: none !important;
    opacity: 1 !important;
  }
}
