/* ============================================
   Междугороднее такси — style.css
   Дизайн 1:1 с оригиналом Tilda
   ============================================ */

/* --- Font --- */
@font-face {
  font-family: 'Museo Sans Cyrl';
  src: url('/css/museosanscyrl_100.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #eeeeee;
  --color-primary: #2c2c2c;
  --color-accent: #ffd500;
  --color-accent-hover: #ffeb83;
  --color-text: #2c2c2c;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-border: #eeeeee;
  --color-tg: #229ED9;
  --color-wa: #25D366;
  --font-main: 'Museo Sans Cyrl', 'museo', Arial, sans-serif;
  --radius-card: 30px;
  --radius-button: 30px;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--accent {
  background: var(--color-accent);
}

.section--dark {
  background: var(--color-primary);
  color: #ffffff;
}

.section__title {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.35;
}

.section__subtitle {
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   HEADER (user approved — keeping as-is)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg);
  z-index: 1000;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid var(--color-border);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
}

.header__logo { flex-shrink: 0; }
.header__logo img { height: 40px; width: auto; }

.header__phone {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-primary);
}
.header__phone:hover { color: var(--color-text-muted); }

.header__messengers {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.header__messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--transition), opacity var(--transition);
}
.header__messenger-btn:hover { transform: scale(1.1); opacity: 0.85; }
.header__messenger-btn svg { width: 24px; height: 24px; }

.header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100vh;
  background: var(--color-accent);
  z-index: 2000;
  padding: 80px 32px 32px;
  transition: right var(--transition);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
  cursor: pointer;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu__nav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.mobile-menu__phone {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 700;
  display: block;
  color: var(--color-primary);
}

.mobile-menu__messengers {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.mobile-menu__messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.mobile-menu__messengers svg { width: 28px; height: 28px; }

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ============================================
   HERO — крупный текст, как в оригинале Tilda
   ============================================ */
.hero {
  background: var(--color-accent);
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__title {
  font-size: 80px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero__text {
  font-size: 22px;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero__subtext {
  font-size: 18px;
  font-weight: 300;
  color: rgba(44,44,44,0.6);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BUTTONS — стиль Tilda: border-radius 30px
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius-button);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover { background: #444444; }

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

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #ffffff; }

/* ============================================
   TARIFF CARDS — Tilda style, 5 cards grid
   ============================================ */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tariff-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.tariff-card:hover {
  transform: translateY(-4px);
}

.tariff-card__image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--color-bg-alt);
}

.tariff-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tariff-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tariff-card__name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}

.tariff-card__price {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.tariff-card__price em {
  font-style: normal;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.tariff-card__features {
  margin: 0 0 16px;
  flex: 1;
}

.tariff-card__features li {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.tariff-card__features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text);
}

.tariff-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.tariff-card__btn {
  margin-top: auto;
  width: 100%;
  font-size: 14px;
  padding: 12px 16px;
}

/* Tariff detail (tariffs.html) — чередующийся layout */
.tariff-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.tariff-detail:last-child { border-bottom: none; }

.tariff-detail:nth-child(even) { direction: rtl; }
.tariff-detail:nth-child(even) > * { direction: ltr; }

.tariff-detail__image {
  border-radius: var(--radius-card);
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.tariff-detail__content { padding: 0; }

.tariff-detail__name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.tariff-detail__price {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}
.tariff-detail__price span,
.tariff-detail__price em {
  font-style: normal;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.tariff-detail__desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 20px;
}

.tariff-detail__info {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================
   SERVICES — сетка 4 колонки, иконки сверху
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 30px 20px;
  text-align: center;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-3px); }

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 20px;
}

.service-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================
   REVIEWS — ЖЁЛТЫЕ карточки в карусели (как Tilda t1186)
   ============================================ */
.reviews-section {
  background: var(--color-bg-alt);
  padding: 80px 0;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.review-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--color-accent);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.review-card__route {
  font-size: 16px;
  font-weight: 600;
  color: #49483e;
  margin-bottom: 20px;
}

.review-card__text {
  font-size: 20px;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.55;
  flex: 1;
}

/* Carousel controls */
.reviews-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.reviews-carousel__btn {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background: rgba(248,248,248,1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.reviews-carousel__btn:hover { background: #e0e0e0; }

.reviews-carousel__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #222;
  stroke-width: 2;
}

/* Dots */
.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.reviews-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.reviews-carousel__dot.active { background: var(--color-primary); }

/* Grid fallback for reviews page (non-carousel) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reviews-grid .review-card {
  flex: none;
}

/* ============================================
   FAQ — SVG «+» в круге, border-top #eee (как Tilda t849)
   ============================================ */
.faq-list {
  max-width: 960px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: 1px solid #eee;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 50px 27px 0;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  gap: 20px;
  line-height: 1.35;
  position: relative;
}

.faq-item__question:hover { color: #555; }

.faq-item__icon {
  position: absolute;
  right: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease-in-out;
}

.faq-item__icon svg {
  width: 40px;
  height: 40px;
}

.faq-item__icon circle {
  fill: none;
  stroke: #222;
  stroke-width: 1;
}

.faq-item__icon .faq-lines {
  stroke: #222;
  stroke-width: 2;
  fill: none;
}

.faq-item.open .faq-item__icon {
  transform: rotate(-45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item__answer-inner {
  padding: 0 0 20px;
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.55;
}

/* ============================================
   FORMS — стиль Tilda
   ============================================ */
.form-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-section__title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
}

.form-section__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  background: #ffffff;
  transition: border-color var(--transition);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #bbb;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__consent {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}
.form__consent a { text-decoration: underline; }

.form__btn {
  width: 100%;
  padding: 18px;
}

.form__success {
  display: none;
  padding: 24px;
  background: #e8f5e9;
  border-radius: 10px;
  color: #2e7d32;
  font-size: 16px;
  text-align: center;
}
.form__success.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: #ffffff;
  padding: 48px 0 24px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer__info {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  line-height: 1.6;
  font-weight: 300;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__nav a:hover { color: #ffffff; }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer__phone {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer__messengers {
  display: flex;
  gap: 12px;
}

.footer__messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--transition);
}
.footer__messengers a:hover { transform: scale(1.1); }
.footer__messengers svg { width: 22px; height: 22px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.footer__legal { display: flex; gap: 20px; }
.footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--color-accent);
  padding: 60px 0;
  text-align: center;
}

.page-hero__title {
  font-size: 60px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: 20px;
  font-weight: 300;
  color: rgba(44,44,44,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .hero__title { font-size: 50px; }
  .hero { padding: 60px 0 80px; }

  .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .review-card { flex: 0 0 calc(50% - 12px); }

  .tariff-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tariff-detail:nth-child(even) { direction: ltr; }

  .section__title { font-size: 30px; }
  .faq-item__question { font-size: 20px; }

  .page-hero__title { font-size: 40px; }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__contacts { align-items: center; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section__title { font-size: 26px; }
  .section__subtitle { font-size: 16px; margin-bottom: 32px; }

  .hero { padding: 48px 0 64px; }
  .hero__title { font-size: 36px; }
  .hero__text { font-size: 18px; }
  .hero__subtext { font-size: 15px; }

  .header__phone { font-size: 15px; }
  .header__messengers { gap: 8px; }
  .header__messenger-btn { width: 32px; height: 32px; }
  .header__messenger-btn svg { width: 20px; height: 20px; }

  .tariffs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .review-card {
    flex: 0 0 100%;
    padding: 28px 24px;
    min-height: auto;
  }
  .review-card__name { font-size: 20px; }
  .review-card__text { font-size: 16px; }

  .tariff-detail__image { height: 220px; }
  .tariff-detail__name { font-size: 24px; }
  .tariff-detail__price { font-size: 20px; }

  .btn { padding: 14px 28px; font-size: 16px; }

  .page-hero { padding: 40px 0; }
  .page-hero__title { font-size: 30px; }
  .page-hero__subtitle { font-size: 16px; }

  .faq-item__question { font-size: 18px; padding-right: 40px; }
  .faq-item__icon { width: 30px; height: 30px; }
  .faq-item__icon svg { width: 30px; height: 30px; }
  .faq-item__answer-inner { font-size: 16px; }

  .form-section__title { font-size: 24px; }

  .footer__nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer__legal {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .header__phone { font-size: 13px; }
  .page-hero__title { font-size: 24px; }
}
