/* Trinity Cars visual refinement: compact rhythm, restrained glass and catalog cards. */
:root {
  --paper: #f8f9fa;
  --ink: #1d2327;
  --muted: #656d73;
  --line: #e3e7e9;
}
.container { width: min(1280px, calc(100% - 64px)); }
.nav-island {
  top: 14px;
  width: min(1050px, calc(100% - 40px));
  min-height: 58px;
  padding: 5px 7px 5px 17px;
  background: rgba(250, 252, 253, .76);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 7px 30px #0b182412;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.page-home .nav-island:not(.scrolled) {
  background: rgba(19, 29, 34, .53);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 8px 28px #0002;
}
.brand { min-height: 48px; }
.brand img { width: 79px; height: 48px; object-fit: contain; }
.brand .logo-light, .page-home .nav-island:not(.scrolled) .logo-dark { display: none; }
.page-home .nav-island:not(.scrolled) .logo-light { display: block; }
.desktop-nav { gap: 24px; }
.desktop-nav a { font-size: 13px; font-weight: 550; }
.nav-contact { min-height: 42px; padding: 8px 17px; font-size: 13px; }
.hero {
  min-height: 610px;
  height: min(690px, 90svh);
  background: radial-gradient(circle at 79% 65%, #506169 0%, #2b3a42 29%, #172228 65%, #141d22 100%);
}
.hero-image {
  inset: auto -2% 7% auto;
  width: 62%;
  height: 75%;
  object-fit: contain;
  object-position: center;
  z-index: -1;
}
.hero-shade {
  background: linear-gradient(90deg, rgba(14,22,27,.56), transparent 68%), linear-gradient(0deg, #121d24ae, transparent 20%);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-bottom { position: absolute; z-index: 1; }
.hero-content { padding-top: 158px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(3.5rem, 5.8vw, 5.8rem); }
.hero-content > p { margin-top: 23px; }
.hero .button { margin-top: 27px; }
.hero-bottom { bottom: 20px; }
.brand-strip { padding: 17px 0 0; background: var(--paper); }
.brand-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-block: 0;
}
.brand-row a {
  min-width: 0;
  min-height: 68px;
  padding: 14px 15px;
  border: 1px solid #e6eaed;
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  color: #283139;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.03em;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.brand-row a:hover {
  color: #1d2327;
  border-color: #cfd8de;
  box-shadow: 0 7px 20px #26333b0c;
  transform: translateY(-2px);
}
.brand-tile-name { overflow-wrap: anywhere; }
.brand-tile-action { color: #8c989f; font-size: 16px; font-weight: 400; }
.section { padding-block: 60px; }
.section-heading { margin-bottom: 29px; }
.section-heading h2 { font-size: clamp(2.3rem, 3.4vw, 3.3rem); }
.eyebrow { margin-bottom: 13px; }
.car-grid { gap: 22px; }
.car-card {
  overflow: hidden;
  border: 1px solid #e5e9ed;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 24px #1b344008;
}
.car-photo {
  aspect-ratio: 1.65;
  border-radius: 0;
  background: linear-gradient(145deg, #f0f5f8 0%, #f7f9fa 68%, #eef3f6 100%);
  outline: none;
}
.car-photo > img {
  width: 100%;
  height: 100%;
  padding: 32px 11px 12px;
  object-fit: contain;
}
.photo-label { top: 13px; left: 14px; background: #fff9; backdrop-filter: blur(12px); }
.photo-arrow { display: none; }
.car-copy { padding: 17px 19px 18px; }
.car-type { font-size: 11px; margin-bottom: 4px; }
.car-card :is(h2,h3) { font-size: 22px; line-height: 1.22; min-height: 27px; }
.car-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin: 17px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e9edef;
}
.car-specs div { min-width: 0; }
.car-specs dt { color: #7a858d; font-size: 10px; line-height: 1.35; }
.car-specs dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 630;
  font-variant-numeric: tabular-nums;
}
.car-year { color: #7a858d; font-size: 10px; line-height: 1.45; margin-top: 12px; }
.car-bottom { margin-top: 13px; padding-top: 13px; align-items: center; }
.car-bottom strong { display: block; font-size: 18px; letter-spacing: -.03em; font-weight: 650; }
.car-bottom > a { border-radius: 50%; background: #f0f3f4; }
.reference-note, .catalog-note {
  max-width: 870px;
  margin-top: 20px;
  color: #67727a;
  font-size: 11px;
  line-height: 1.6;
}
.availability {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 15px;
}
.availability-card {
  position: relative;
  min-height: 170px;
  padding: 25px 28px;
  border-radius: 20px;
  background: #eceff1;
  border: 1px solid #e5e9eb;
}
.availability-card:nth-child(2) { background: #e9edee; }
.availability-card .eyebrow { color: #69757b; font-size: 10px; }
.availability-card h2 { font-size: 26px; }
.availability-card p { margin-top: 9px; color: #657078; font-size: 13px; }
.availability-arrow { position: absolute; right: 24px; top: 22px; font-size: 19px; color: #6c777e; }
.availability-card:hover { background: #e2e8eb; }
.approach { padding-top: 56px; }
.principles { margin-top: 35px; gap: 26px; }
.principle-number { margin-bottom: 16px; }
.journey {
  min-height: 0;
  margin-top: 4px;
  margin-bottom: 62px;
  border-radius: 20px;
}
.journey-image {
  min-height: 380px;
  background: radial-gradient(circle at 53% 43%, #5d717b, #2c3a42 68%, #202a30);
}
.journey-image > img { object-fit: contain; padding: 32px; }
.journey-image:after { background: linear-gradient(0deg,#10171b77,transparent 27%); }
.journey-copy { padding: 40px; }
.journey h2 { font-size: clamp(1.9rem, 2.7vw, 2.5rem); }
.steps { margin: 25px 0; gap: 13px; }
.catalog-head { padding-top: 117px; padding-bottom: 28px; }
.breadcrumb { margin-bottom: 25px; }
.catalog-head h1 { font-size: clamp(3rem, 5vw, 4.7rem); }
.catalog-controls { padding-top: 18px; }
.catalog-meta { margin-top: 22px; }
.catalog-section { padding-bottom: 65px; }
.footer {
  padding: 42px 0 113px;
  color: #f3f5f5;
  background: #20272b;
}
.footer-top { margin-bottom: 31px; align-items: end; }
.footer-brand .logo-dark { display: none; }
.footer-brand .logo-light { display: block; }
.footer-brand img { width: 92px; height: 57px; }
.footer-top p { color: #aab5bb; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.footer-contact { align-items: end; }
.phone-large { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; }
.footer-telegram { color: #d7e0e4; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.footer-telegram svg { width: 15px; }
.footer-bottom {
  padding-top: 22px;
  border-top-color: #485257;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr auto;
  align-items: start;
  gap: 20px;
  color: #aab5bb;
  font-size: 11px;
}
.footer-bottom a:hover { color: white; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .container { width: calc(100% - 48px); }
  .hero { min-height: 610px; height: 75svh; }
  .hero-content { padding-top: 143px; }
  .brand-row { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .brand-row a { font-size: 13px; padding: 12px; min-height: 64px; }
  .featured-grid .car-card:last-child { display: block; }
  .section { padding-block: 52px; }
  .journey { margin-bottom: 52px; }
  .journey-image { min-height: 0; height: 270px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .nav-island { top: 10px; width: calc(100% - 20px); min-height: 56px; padding: 4px 6px 4px 12px; }
  .brand { min-height: 44px; }
  .brand img { width: 70px; height: 43px; }
  .nav-contact { min-height: 40px; }
  .hero { min-height: 600px; height: 70svh; }
  .hero-image {
    top: auto;
    bottom: 0;
    left: -4%;
    right: auto;
    width: 108%;
    height: 50%;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-shade { background: linear-gradient(180deg,#17222899,transparent 45%,#111c2366 100%); }
  .hero-content { padding-top: 117px; padding-bottom: 290px; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 3.8rem); }
  .hero-content > p { margin-top: 17px; }
  .hero .button { margin-top: 20px; }
  .hero-bottom { bottom: 21px; }
  .brand-strip { padding-top: 11px; }
  .brand-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; text-align: left; }
  .brand-row a { min-height: 59px; font-size: 12px; padding: 10px; align-items: start; }
  .brand-tile-action { font-size: 13px; }
  .section { padding-block: 40px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 34px; }
  .section-intro { margin-top: 14px; }
  .car-grid { gap: 14px; }
  .car-photo { aspect-ratio: 1.7; }
  .car-photo > img { padding: 30px 10px 5px; }
  .car-copy { padding: 15px 17px 17px; }
  .car-card :is(h2,h3) { font-size: 23px; }
  .availability { grid-template-columns: 1fr; gap: 10px; }
  .availability-card { min-height: 144px; padding: 20px; }
  .availability-card h2 { font-size: 24px; }
  .approach { padding-top: 43px; }
  .principles { gap: 20px; margin-top: 28px; }
  .journey { margin-bottom: 42px; }
  .journey-image { height: 235px; }
  .journey-copy { padding: 28px 23px; }
  .steps { gap: 15px; }
  .catalog-head { padding-top: 102px; }
  .catalog-head h1 { font-size: 44px; }
  .footer { padding: 33px 0 112px; }
  .footer-top { margin-bottom: 27px; }
  .footer-brand img { width: 83px; height: 51px; }
  .footer-contact { margin-top: 25px; }
  .phone-large { font-size: 27px; }
  .footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-links { flex-direction: column; gap: 5px; }
  .footer-bottom > span:last-child { width: auto; }
}
@media (max-width: 360px) {
  .hero { min-height: 670px; height: auto; }
  .hero-content { padding-bottom: 190px; }
  .hero-image { height: 200px; bottom: 38px; }
  .hero-bottom { display: none; }
  .nav-contact { padding-inline: 9px; }
  .brand-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .car-specs dd { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-row a:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-island { background: #f9fafb; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .page-home .nav-island:not(.scrolled) { background: #22282c; }
}
