/* Страница «О нас».
   Опирается на токены и компоненты из styles.css. */

/* ------------------------------------------------------------- шапка --- */

.about-hero{padding:56px 0 72px;}
.about-hero h1{
  font-size:clamp(30px,4vw,48px);
  line-height:1.12;letter-spacing:-0.02em;font-weight:800;
  max-width:17ch;margin-bottom:22px;
}
.about-lead{
  font-size:17px;line-height:1.7;color:var(--muted);
  max-width:62ch;margin-bottom:36px;
}

/* --------------------------------------------------- правила общения --- */

.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.about-card{
  background:var(--bg);border-radius:var(--radius-card);
  padding:30px 28px;min-width:0;
}
.about-card h3{font-size:17px;font-weight:700;line-height:1.3;margin-bottom:12px;}
.about-card p{font-size:14.5px;line-height:1.65;color:var(--muted);}

/* --------------------------------------------------------- маршруты --- */

.about-routes{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.about-route{
  background:var(--surface);border-radius:var(--radius-card);
  padding:30px 28px;min-width:0;
  display:flex;flex-direction:column;
  box-shadow:0 1px 2px rgba(42,37,33,.06);
}
.about-route-idx{
  font-size:13px;font-weight:800;color:var(--accent);
  margin-bottom:14px;font-variant-numeric:tabular-nums;
}
.about-route h3{font-size:17px;font-weight:700;margin-bottom:10px;}
.about-route p{font-size:14.5px;line-height:1.65;color:var(--muted);margin-bottom:18px;}
.about-route p a{color:var(--accent);font-weight:600;text-decoration:underline;}

/* Адрес прижат к низу карточки: у карточек разной длины текста
   почта иначе оказывается на разной высоте и ряд выглядит рваным. */
.about-mail{
  margin-top:auto;font-size:15px;font-weight:600;color:var(--accent);
  word-break:break-all;
}
@media (hover:hover) and (pointer:fine){
  .about-mail:hover{text-decoration:underline;}
}

/* --------------------------------------------------------- контакты --- */

.about-contact{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start;}
.about-contact h2{font-size:clamp(24px,2.8vw,32px);font-weight:800;letter-spacing:-0.01em;margin-bottom:14px;}
.about-contact-note{font-size:15px;line-height:1.65;color:var(--muted);max-width:38ch;}

.about-contact-card{
  background:var(--bg);border-radius:var(--radius-card);
  padding:30px 32px;min-width:0;
}

/* Двухколоночный список: подпись слева, значение справа. На узком экране
   разворачивается в строки, иначе значения сжимаются до переноса
   по одному символу. */
.about-dl{
  display:grid;grid-template-columns:auto 1fr;gap:12px 28px;
  margin:0 0 24px;
}
.about-dl dt{font-size:13.5px;color:var(--muted);line-height:1.5;}
.about-dl dd{margin:0;font-size:15.5px;font-weight:600;line-height:1.5;}
.about-dl dd a{color:var(--accent);}
@media (hover:hover) and (pointer:fine){
  .about-dl dd a:hover{text-decoration:underline;}
}

.about-legal{
  font-size:13.5px;line-height:1.6;color:var(--muted);
  padding-top:18px;border-top:1px solid var(--line);
}
.about-legal + .about-legal{border-top:none;padding-top:10px;}
.about-legal a{color:var(--accent);font-weight:600;text-decoration:underline;}

/* Текущий раздел в меню отмечен цветом и весом, а не только цветом:
   по одному оттенку его не различить при слабом зрении. */
.nav-links a.is-current{color:var(--ink);font-weight:700;}

@media (max-width:900px){
  .about-cards,.about-routes{grid-template-columns:1fr;gap:18px;}
  .about-contact{grid-template-columns:1fr;gap:32px;}
}

@media (max-width:640px){
  .about-hero{padding:36px 0 52px;}
  .about-lead{font-size:16px;}
  .about-card,.about-route,.about-contact-card{padding:24px 22px;}
  .about-dl{grid-template-columns:1fr;gap:4px;}
  .about-dl dd{margin-bottom:12px;}
}
