/* ──────── TOKENS & VARIABLES ──────── */
:root {
  --primary: #CE2B37;
  --primary-dark: #A01F2A;
  --primary-light: #F5E6E8;
  --accent: #009246;
  --accent-light: #E8F5F0;
  --white: #FFFFFF;
  --off-white: #FDF9EE;
  --text: #2C2C2C;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --border-hover: #cbcbcd;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(206, 43, 55, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────── RESET ──────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* FONT FALLBACK — CLS fix.
   size-adjust: 105% makes Arial occupy the same width as Onest
   so the font-swap causes zero layout shift. */
@font-face {
  font-family: 'Onest-fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body {
  font-family: 'Onest', 'Onest-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.bulleted {
  list-style: disc;
  padding-left: 1.5em;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ──────── UTILITY CLASSES ──────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: #F3F4F6;
}

.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ──────── BUTTONS ──────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(206, 43, 55, 0.35);
  transform: translateY(-1px);
}

.btn-green {
  background: #198754;
  color: #fff;
}

.btn-green:hover {
  background: #1FAE52;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ──────── TOPBAR ──────── */
.topbar {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--primary);
}

.topbar-phones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ──────── HEADER ──────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

nav a:hover {
  background: var(--off-white);
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 80px 32px 32px;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border: none;
}

.mobile-nav .btn {
  color: #fff;
  padding: 12px 36px;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
}

/* ──────── HERO SECTION ──────── */
.hero {
  position: relative;
  /* FIX: 100svh instead of 100vh — prevents layout shift from mobile
     browser chrome (address bar) appearing/disappearing on scroll */
  min-height: 100svh;
  /* FIX: contain:layout — prevents hero children from triggering
     reflow in the document outside the hero element */
  contain: layout;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* The gradient paints immediately (no network request), so there's
     no blank flash while the background image loads */
  background: linear-gradient(135deg, #2f3b52 0%, #48566f 55%, #5f6e88 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title span {
  color: #dbeafe;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title,
.hero-desc,
.hero-stat-num,
.hero-stat-label {
  text-rendering: optimizeLegibility;
}

/* ──────── FADE UP ANIMATION ──────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────── ROUTES SECTION ──────── */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.route-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.route-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--text-light);
}

.route-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(206, 43, 55, 0.15);
  transform: translateY(-4px);
}

.route-flags {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.route-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.route-card p,
.route-card ul {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.bulleted {
  list-style: disc;
  padding-left: 1.5em;
}

.route-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.route-meta-item {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.route-meta-item strong {
  color: var(--text);
  font-weight: 700;
}

.route-meta-icon {
  font-size: 1rem;
  margin-top: -2px;
}

/* ──────── CITIES LIST ──────── */
.cities-block {
  margin-top: 40px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cities-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.city-chip {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 146, 70, 0.2);
}

.cities-note {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ──────── FEATURES / SERVICES ──────── */
.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ──────── REVIEWS ──────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

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

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ──────── CONTACT SECTION ──────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(206, 43, 55, 0.1);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

/* Article */
article h2 {
  margin-top: 20px;
}

article ol {
  margin-left: 20px;
}

/* ──────── FOOTER ──────── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 360px;
}

.footer-col h3 {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-phones a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-phones a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ──────── 404 PAGE ──────── */
.page-404 {
  min-height: calc(100vh - 68px - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF2F7 100%);
}

.error-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
  padding: 56px 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}

.error-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.error-card p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 180px;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom a {
  color: var(--primary);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  transition: var(--transition);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: white;
}

.social-links .facebook {
  background: #1877F2;
}

/* ──────── FLOATING BUTTONS ──────── */
.float-phone {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(206, 43, 55, 0.3);
  transition: var(--transition);
}

.float-whatsapp { background: #25D366; }
.float-whatsapp:hover {
  background: #1FAE52;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.float-viber { background: #665CAD; }
.float-viber:hover {
  background: #5A4FA3;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 92, 173, 0.4);
}

.float-telegram { background: #0088cc; }
.float-telegram:hover {
  background: #006699;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.float-telegram svg {
  margin-left: -4px;
}

/* ──────── RESPONSIVE DESIGN ──────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .burger { display: flex; }
  nav { display: none; }
  .header-cta { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.6rem; }
  .cta-banner { padding: 40px 24px; flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-phone { bottom: 10px; right: 10px; }
  .float-btn { width: 50px; height: 50px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .routes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
