/* ===== AlfaTrack — static rewrite using original theme tokens ===== */

:root {
  --accent: #f49f0b;
  --accent-mid: #c3594f;
  --accent-dark: #613a4b;
  --watermark: rgba(0, 0, 0, 0.07);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

p, ul, li, a, span, input {
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  font-size: 1rem;
}

p { margin: 0 0 1.5em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 3em;
}

/* ============ Header — Custom hero (image + branding) ============ */
.site-header { position: relative; }

.custom-header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.custom-header-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%),
    url("../img/hero.webp") center / cover no-repeat;
  z-index: 1;
}

.site-branding {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 75px;
}

.site-branding-text {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 3em;
  color: #fff;
}

.at-title-page {
  margin: 0 0 0.6em;
  font-family: "Mulish", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}

.about-flex {
  width: 55%;
  max-width: 680px;
  color: #fff;
}

.about-flex p {
  margin: 0 0 0.7em;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.about-flex p:last-child {
  margin-bottom: 0;
}

/* ============ Navigation (fixed top bar) ============ */
.navigation-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navigation-top .wrap {
  padding: 0.75em 3em;
}

.at-top-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.at-menu-logo img {
  width: 50px;
  height: auto;
}

.at-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  gap: 2rem;
}

.at-navigation a {
  color: #222;
  font-family: "Mulish", sans-serif;
  font-weight: 400 !important;
  font-size: 0.95rem;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.18s;
}

.at-navigation a:hover { color: var(--accent); }

.at-menu-phone {
  margin: auto 0 auto 3rem;
  color: #222;
  font-family: "Mulish", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.at-menu-phone:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #222; }

/* ============ Section wrap ============ */
.services-section,
.about-section,
.pros-section,
.contacts-section { padding: 0; scroll-margin-top: 80px; }

.services-section .wrap,
.about-section .wrap,
.pros-section .wrap,
.contacts-section .wrap {
  padding: 0 3em;
}

/* ============ Watermark section heading (.at-title-block) ============ */
.at-title-block {
  font-family: "Mulish", sans-serif;
  font-size: 7.75rem;
  font-weight: 800;
  margin: 65px 0 30px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.07);
  text-align: center;
  line-height: 1.1;
}

@media (max-width: 1280px) {
  .at-title-block { font-size: 5.8rem; }
}

@media (max-width: 1024px) {
  .at-title-block { font-size: 4.15rem; }
}

@media (max-width: 768px) {
  .at-title-block {
    font-size: 2rem;
    margin: 50px 0 25px;
    color: rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
  }
}

/* ============ Services subtitle ============ */
.services-subtitle {
  width: 80%;
  margin: 1.5em 0;
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .services-subtitle { width: 100%; }
}

/* ============ Services grid + items ============ */
.services-grid {
  display: grid;
  margin-top: 35px;
  position: relative;
}

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

.h-item { height: 350px; }

.items-back {
  height: 350px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

.col-span-2 { grid-column: span 2 / span 2; }

.items-text {
  height: 110px;
  overflow: hidden;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  display: block;
  margin: 0 20px;
  top: 240px;
  position: relative;
  transition: all 1s;
}

.items-text:hover {
  color: #fff;
  height: 350px;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  background-image: none;
  transform: translateY(-240px);
  margin: 0;
  padding: 20px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.25) 100%);
}

.items-text h2 {
  margin: 0 0 12px;
  font-family: "Mulish", sans-serif;
  font-weight: 700 !important;
  font-size: 1.4rem;
  line-height: 1.15;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0 !important;
  word-break: normal;
  overflow-wrap: break-word;
}

/* На широких карточках (Автомобильная, Мультимодальная) — крупнее */
.col-span-2 .items-text h2 {
  font-size: 2rem;
  letter-spacing: 1px !important;
}

.items-text p {
  margin: 0 0 12px;
  font-family: "Mulish", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .services-grid { margin-top: 35px; }
}

@media (max-width: 900px) {
  .grid-cols { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .col-span-2 { grid-column: span 1 / span 1; }
}

@media (max-width: 768px) {
  .services-grid { margin-top: 30px; }
  .items-text h2 { font-size: 1.6rem; }
  .items-text p { font-size: 0.8rem; }
}

/* ============ About / Facts ============ */
.facts-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: -60px;
  position: relative;
}

.facts-items {
  height: 200px;
  width: calc(22% - 1rem);
  text-align: center;
  padding: 35px 0;
}

.facts-count {
  font-family: "Mulish", sans-serif;
  font-size: 4.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #f49f0b, #c3594f, #613a4b);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
}

@media (max-width: 1200px) {
  .facts-count { font-size: 3.5rem; }
  .facts-items { height: 160px; }
}

@media (max-width: 1024px) {
  .facts-count { font-size: 3.5rem; }
  .facts-items { width: calc(30% - 1rem); }
}

@media (max-width: 768px) {
  .facts-flex {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 40px;
  }
  .facts-count { font-size: 4.25rem; }
  .facts-items {
    width: 100%;
    height: 135px;
    padding: 15px 0;
  }
}

/* ============ HR sloping lines (decorative divider) ============ */
.hr-sloping-lines {
  background-color: #fff;
  margin: 0;
  padding: 0;
  height: 10px;
  border: none;
  box-sizing: border-box;
  background-position: 50%;
  color: orange;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3px" height="3px" viewBox="0 0 3 3" fill="orange"><polygon points="0,0.5 0,1.5 1.5,3 2.5,3"/><polygon points="2.5,0 1.5,0 3,1.5 3,0.5"/></svg>');
  background-size: 6px 6px;
  background-repeat: repeat;
}

/* ============ Map / Geography section (3 background layers) ============ */
.map {
  width: 100%;
  height: 600px;
  background-image:
    url("../img/map-1.svg"),
    radial-gradient(circle, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.25) 100%),
    url("../img/geography-bg.webp");
  background-size: 100%, cover, cover;
  background-position: top right, center, bottom;
  background-repeat: no-repeat;
}

.map-title {
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  font-size: 2.8rem;
  line-height: normal;
  color: #fff;
  width: 490px;
  font-weight: 500;
  padding: 205px 0 0 50px;
  margin: 0 0 25px;
}

.map-text {
  font-family: "Mulish", sans-serif;
  line-height: normal;
  color: #fff;
  width: 490px;
  padding: 0 0 50px 50px;
  margin: 0;
  font-weight: 200;
  font-size: 0.94rem;
}

@media (max-width: 768px) {
  .map {
    height: 470px;
    background-size: 140%, cover, cover;
  }
  .map-title {
    font-size: 2.3rem;
    width: 100%;
    padding: 50px 15px 0;
    margin-bottom: 25px;
  }
  .map-text {
    line-height: 1.3em;
    width: 100%;
    padding: 0 15px;
    font-size: 1rem;
  }
}

/* ============ Pros / Advantages ============ */
.pros-title {
  margin: 70px 0 50px;
  text-transform: uppercase;
  letter-spacing: 5px !important;
  font-family: "Mulish", sans-serif;
  font-size: 1.5rem;
  font-weight: 100;
  text-align: center;
  color: #222;
}

.pros-flex {
  display: flex;
  gap: 3rem;
}

.pros-item {
  width: calc(33.33% - 3rem);
  flex: 1;
}

.pros-item-title {
  text-transform: uppercase;
  font-family: "Mulish", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px !important;
  color: #222;
  margin: 0 0 1em;
}

.pros-text {
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .pros-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .pros-item { width: 100%; }
}

/* ============ Contacts ============ */
.contacts-section { padding-bottom: 60px; }

.contacts-flex {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacts-left-side {}

.contacts-data {
  margin-bottom: 30px;
}

.contacts-data p {
  margin: 0 0 5px;
  font-family: "Mulish", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #333;
}

.contacts-data strong {
  font-weight: 600;
  margin-right: 6px;
}

.contacts-data a:hover { color: var(--accent-mid); }

.map-embed {
  margin-top: 20px;
  overflow: hidden;
  background: #f5f6f8;
  min-height: 500px;
}
.map-embed iframe { display: block; width: 100%; height: 500px; border: 0; }

.form-caption-at {
  margin: 0 0 1em;
  text-align: center;
  font-family: "Mulish", sans-serif;
  font-size: 1rem;
}

.form-caption-at strong { font-weight: 600; }

.contact-form { display: grid; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 25px !important;
  padding: 14px 22px;
  font-family: "Onest", "Mulish", sans-serif !important;
  font-weight: 300;
  font-size: 1rem;
  color: #222;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: "Onest", "Mulish", sans-serif !important;
  font-weight: 300;
  font-size: 1rem;
  color: #999;
  cursor: text !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 159, 11, 0.18);
}

.contact-form .field-comment {
  height: 200px;
  resize: vertical;
}

.contact-form .button-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 25px !important;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid) 55%, var(--accent-dark));
  font-family: "Onest", "Mulish", sans-serif !important;
  font-weight: 300 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.contact-form .button-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(244, 159, 11, 0.28);
}

.form-status { min-height: 22px; margin: 0; color: #888; font-size: 0.9rem; text-align: center; }

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
}

@media (max-width: 1024px) {
  .contacts-flex { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .form-caption-at {
    font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 30px;
  }
}

/* ============ Footer ============ */
.site-footer {
  background: #fff;
  color: #333;
  padding: 30px 0;
}

.at-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.at-copyright p {
  margin: 0;
  font-family: "Mulish", sans-serif;
  font-size: 0.92rem;
  color: #555;
}

.at-copyright a:hover { color: var(--accent-mid); }

@media (max-width: 768px) {
  .at-copyright {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .at-copyright p { margin-bottom: 10px; }
}

/* ============ Cookie banner ============ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px clamp(20px, 5vw, 60px);
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(20, 22, 28, 0.96);
  color: #fff;
  font-family: "Mulish", sans-serif;
  font-size: 0.9rem;
}
.cookie-banner p { margin: 0; flex: 1; line-height: 1.5; color: #fff; }
.cookie-banner button {
  padding: 10px 22px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: "Mulish", sans-serif;
}

/* ============ Privacy page ============ */
.page-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 3em 60px;
}
.page-content h1 {
  margin: 0 0 32px;
  font-family: "Mulish", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  color: #222;
}
.page-content h2 {
  margin: 36px 0 12px;
  font-family: "Libre Franklin", "Helvetica Neue", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
}
.page-content p {
  margin: 0 0 14px;
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}
.page-content a { color: var(--accent-mid); text-decoration: underline; }

/* ============ Responsive — header / navigation ============ */
@media (max-width: 1024px) {
  .navigation-top .wrap { padding: 0.75em 1.5em; }
  .at-top-menu { gap: 1rem; }
  .at-navigation { gap: 1.2rem; }
  .at-menu-phone { margin-left: 1.5rem; }
}

@media (max-width: 768px) {
  .wrap, .services-section .wrap, .about-section .wrap, .pros-section .wrap, .contacts-section .wrap {
    padding: 0 1.5em;
  }
  .site-branding-text { padding: 0 1.5em; }
  .at-title-page {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }
  .about-flex { width: 100%; }
  .site-branding { margin-bottom: 40px; }

  .navigation-top .wrap { padding: 0.75em 1.5em; }
  .at-top-menu { gap: 0.75rem; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .at-navigation {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 10px;
  }
  .at-navigation.is-open { display: flex; }
  .at-navigation a {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid #eee;
  }
  .at-menu-phone { margin-left: auto; margin-right: 0; }

  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}
