/* =========================================================
   Page-specific styles (index, routes, contacts, career, press, eurx)
   Requires shared.css to be loaded first via <link> in HTML
   ========================================================= */

/* ---------- Routes / stats / services blocks ---------- */
.routes .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.routes .route-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f2f5fb;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 115%;
  letter-spacing: 0;
  text-align: center;
  color: #000000;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: #000000;
}

.stats {
  margin-top: 70px;
}

.stats .section-head {
  margin-left: calc(-50vw + 50%);
  padding-left: 147px;
  width: 100vw;
  box-sizing: border-box;
}

.stats .kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 100%;
  color: #000000;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 70px;
}

.stats .h2 {
  font-family: sans-serif, 'Montserrat';
  font-size: 50px;
  font-weight: 700;
  line-height: 130%;
  color: #12233C;
}

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

.service-item {
  padding: 14px;
  border-radius: var(--radius);
  /* reduced */
  border: 1px solid var(--line);
  background: var(--panel);
}

.service-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.service-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* services hero img block */
.services-hero {
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
  background-color: rgb(36, 31, 44);
}

.services-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ---------- Contacts ---------- */
#contacts { padding: 48px 0 64px; }


.contacts-heading {
  position: relative;
  z-index: 1;
  font-family: sans-serif, 'Montserrat';
  font-size: 50px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #122c53;
  margin: 77px 0 47px;
}

.contacts-grid {
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.contacts-info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--shadow);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {

  text-transform: uppercase;
  /* color: var(--muted); */
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);

  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
}

.contact-value {
  font-size: 16px;
  line-height: 1.7;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: .06em;
  /* color: var(--text); */
}

.contact-link {
  text-decoration: none;
  color: var(--brand);
  transition: color .15s;
}

.contact-link:hover {
  color: var(--brand-2);
}

.contact-address {
  font-style: normal;
}

/* Map block */
.contacts-map {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}


/* ===== Performance: 2x2 cards ===== */

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

/* мобилка */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid .card {
    width: 50%;
    height: 215px !important;
    /* width: auto;
    height: 50%; */
    background-image: none !important;
    background-color: #F4F6FB;
  }

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

  .contacts-map iframe {
    min-height: 300px;
  }
}

.stats-grid .card {
  width: 100%;
  height: 415px;
  display: flex;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 33px;
}

.stats-grid .card:nth-child(1) {
  background-image: url('img_eurx/card1.jpg');
}

.stats-grid .card:nth-child(2) {
  background-image: url('img_eurx/card2.jpg');
}

.stats-grid .card:nth-child(3) {
  background-image: url('img_eurx/card3.jpg');
}

.stats-grid .card:nth-child(4) {
  background-image: url('img_eurx/card4.jpg');
}

.stats-grid .card .inner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}


/* ===== Services tiles (day theme) ===== */

.services-section {
  margin-top: 100px;
}

.services-tiles {
  background: #ffffff;
  margin-bottom: 20px;
  padding: 44px 0 52px;
}

.services-tiles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  margin-left: calc(-50vw + 50%);
  padding-left: 147px;
  width: 100vw;
  box-sizing: border-box;
}

.services-tiles-title {
  margin: 0;
  font-family: sans-serif, 'Montserrat';
  font-size: 50px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: .06em;
  text-transform: none;
  color: #12233C;
}


.services-tiles-grid-wrapper{
  padding-top: 80px;
  padding-bottom: 60px;
  background-color: #F4F6FB;
}

/* grid 4 in a row */
.services-tiles-grid {
  background-color: #9A9FB2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  border-radius: 12px;
}

/* tile */
.stile {
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  gap: 14px;

  padding: 18px 18px 18px;
  min-height: 170px;

  border-radius: 12px;
  /* border: 1px solid #e7ebf3;
  background: #f6f7fb; */
  background: #2F2937;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);

  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  align-items: center;
  /* ⬅ центр по горизонтали */
  text-align: center;
  /* ⬅ центрируем текст */
}

.stile:hover {
  transform: translateY(-2px);
  border-color: #d7deee;
  background: #3b2121;
}

.stile:active {
  transform: translateY(0);
}

/* top row with number */
.stile-top {
  align-self: flex-end;
}

.stile-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ffffff;
  font-weight: 300;
}

/* icon */
.stile-icon {
  width: 100%;
  height: 60px;
  display: grid;
  place-items: center;
  color: #ec3a58;
}

.stile-icon img {
  max-width: 70%;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* text */
.stile-name {
  color: #ffffff;
  font-weight: 500;
  line-height: 1.35;
  font-size: 16px;
  max-width: 100%;
  text-align: center;
}

/* special last tile */
.stile-more .stile-name {
  color: #ec3a58;
  font-weight: 900;
}

/* responsive */
@media (max-width: 1100px) {
  .services-tiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-value {
    font-size: 52px;
  }
}

@media (max-width: 820px) {
  .services-tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stile {
    min-height: 160px;
  }

  .stat-value {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  .services-tiles-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 40px;
  }
}


/* =========================
   ROUTE MAPS — LIGHT THEME
========================= */

.route-maps-light {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding-bottom: 140px;
}

/* page title */
.route-page-title {
  position: relative;
  z-index: 1;
  font-family: sans-serif, 'Montserrat';
  font-size: 50px;
  letter-spacing: .06em;
  font-weight: 700;
  line-height: 1.15;
  color: #122c53;
  margin: 77px 0 47px;
}

/* block */
.route-map-block {
  position: relative;
  z-index: 1;
  padding: 36px 0 44px;
}

/* title */
.route-map-title {
  margin: 0 0 16px;
  font-family: sans-serif, 'Montserrat';
  letter-spacing: .06em;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  opacity: 0.8;
  color: #000;
  letter-spacing: 0;
}

/* description */
.route-map-desc {
  font-family: sans-serif, 'Montserrat';
  font-weight: 400;
  font-size: 24px;
  color: #1e1a17;
  letter-spacing: -0.24px;
  line-height: normal;
  margin: 0 0 16px;
}

/* image wrapper — centered, max-width */
.route-map-image {
  max-width: 1240px;
  margin: 14px auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f2f7;
  border: 1px solid #e3e6ef;
}

/* image itself */
.route-map-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* decorative element */
.route-decor {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.route-decor img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .route-decor {
    display: none;
  }
}

@media (max-width: 768px) {
  .route-page-title {
    margin: 20px 0;
  }
  .contacts-heading {
    margin: 20px 0;
  }
  .route-map-block {
    padding: 12px 0;
  }
  .route-map-desc {
    font-size: 20px;
  }
}


/* =========================================================
   Press center page (uses existing tokens + cards)
   ========================================================= */

.press-hero {
  padding: 18px 0 8px;
}

.press-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.press-toolbar {
  margin-top: 10px;
}

.press-toolbar-inner {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.press-search {
  flex: 1 1 280px;
  min-width: 240px;
}

.press-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.press-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #dbe2ef;
  background: #fff;
  color: var(--text);
  outline: none;
}

.press-input:focus {
  border-color: rgba(47, 111, 236, .55);
  box-shadow: 0 0 0 3px rgba(47, 111, 236, .10);
}

.press-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.press-filters .chip {
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}

.press-filters .chip.is-active {
  background: rgba(47, 111, 236, .10);
  border-color: rgba(47, 111, 236, .25);
  color: var(--text);
}

.press-list {
  padding: 14px 0 26px;
}

.press-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
}

.press-item {
  overflow: hidden;
}

.press-link {
  display: block;
  height: 100%;
}

.press-item .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.press-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.press-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.press-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.press-excerpt {
  margin: 0;
  font-size: 13.5px;
}

.press-more {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.press-pager {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}


/* =========================================================
   Career page
   ========================================================= */

.career-hero {
  padding: 18px 0 8px;
}

.career-lead {
  max-width: 62ch;
}

.career-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.career-hero-card .inner {
  padding: 14px;
}

.career-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric {
  border: 1px solid rgba(10, 46, 87, .10);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, .6);
}

.metric-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.career-section {
  padding: 14px 0 26px;
}

.career-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .career-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .career-cards {
    grid-template-columns: 1fr;
  }
}

.career-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .career-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .career-benefits {
    grid-template-columns: 1fr;
  }
}

.career-toolbar {
  margin-top: 10px;
}

.career-toolbar-inner {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.career-search {
  flex: 1 1 280px;
  min-width: 240px;
}

.career-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.career-input,
.career-textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #dbe2ef;
  background: #fff;
  color: var(--text);
  outline: none;
}

.career-input:focus,
.career-textarea:focus {
  border-color: rgba(47, 111, 236, .55);
  box-shadow: 0 0 0 3px rgba(47, 111, 236, .10);
}

.career-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.career-tags .chip {
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}

.career-tags .chip.is-active {
  background: rgba(47, 111, 236, .10);
  border-color: rgba(47, 111, 236, .25);
  color: var(--text);
}

.career-acc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.career-item {
  overflow: hidden;
}

.career-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.career-summary::-webkit-details-marker {
  display: none;
}

.career-role {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.career-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.career-loc {
  font-size: 12px;
  color: var(--muted);
}

.career-body {
  padding-top: 0;
}

.career-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.career-list li {
  margin: 6px 0;
}

.career-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .career-steps {
    grid-template-columns: 1fr;
  }
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(10, 46, 87, .12);
  font-weight: 800;
  margin-bottom: 8px;
}

.career-apply-card .inner {
  padding: 16px;
}

.career-form {
  margin-top: 8px;
}

.career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.career-form-wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .career-form-grid {
    grid-template-columns: 1fr;
  }
}

.career-form-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.career-form-hint {
  font-size: 12px;
  color: var(--muted);
}


/* ===== Mobile (768px) ===== */
@media (max-width: 768px) {
  .stats .section-head {
    margin-left: 0;
    padding-left: 0;
    width: auto;
  }

  .services-tiles-head {
    margin-left: 0;
    padding-left: 0;
    width: auto;
  }

  .stats .h2 { font-size: 40px; }
  .stats .kicker { font-size: 20px; margin-bottom: 40px; }
  .services-tiles-title { font-size: 40px; }
  .services-section { margin-top: 50px; }
  .stat-label { font-size: 18px; }
  .career-metrics { grid-template-columns: 1fr; }
}

/* ---------- RTL (Arabic) fixes for page-specific components ---------- */
[dir="rtl"] .stile-name {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

[dir="rtl"] .stile {
  min-height: 190px;
  overflow: visible;
}


[dir="rtl"] .services-tiles-grid {
  grid-template-columns: repeat(6, minmax(min-content, 1fr));
}

@media (max-width: 768px) {

[dir="rtl"] .services-tiles-grid {
  grid-template-columns: repeat(1, minmax(min-content, 1fr));
}

}

[dir="rtl"] .stats-grid {
  direction: ltr;
}

[dir="rtl"] .stats-grid .inner {
  direction: rtl;
}