/* УммаАвто uses the same public shell as the other Умма directions. */
:root {
  --header-line: #d8e3dc;
  --header-sage: #edf5f0;
}

html { scroll-padding-top: 82px; }

body.menu-open { overflow: hidden; }

body.menu-open::before {
  position: fixed;
  z-index: 84;
  inset: 0;
  background: rgba(3, 19, 14, .48);
  backdrop-filter: blur(3px);
  content: "";
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 44px;
  align-items: center;
  gap: 10px;
  padding: 7px max(18px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid rgba(15, 59, 46, .13);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 22px rgba(7, 36, 27, .05);
  backdrop-filter: blur(16px) saturate(135%);
}

.header-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.umma-home-link {
  min-width: 196px;
  min-height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(15, 59, 46, .2);
  color: var(--green-950);
  text-decoration: none;
}

.umma-home-link > img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(6, 45, 32, .12));
}

.umma-wording {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.umma-wording strong {
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: .92;
}

.umma-wording small {
  max-width: 145px;
  color: var(--green-650);
  font-size: .59rem;
  line-height: 1.05;
  font-weight: 850;
  text-transform: uppercase;
  white-space: normal;
}

.brand-family {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 3px;
  align-items: stretch;
}

.brand-family a {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px minmax(0, auto);
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 6px;
  color: var(--green-900);
  font-size: .72rem;
  line-height: 1.05;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.brand-family a:hover,
.brand-family a[aria-current="page"] {
  color: var(--green-950);
  background: var(--header-sage);
  transform: translateY(-1px);
}

.brand-family a[aria-current="page"]::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--green-650);
  content: "";
}

.brand-family img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-nav {
  position: fixed;
  z-index: 110;
  top: 72px;
  right: max(16px, calc((100vw - 1360px) / 2));
  width: min(420px, calc(100% - 32px));
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: var(--green-950);
  box-shadow: 0 30px 90px rgba(3, 24, 17, .34);
}

body.menu-open .site-nav { display: grid; }

.site-nav::before {
  grid-column: 1 / -1;
  padding: 2px 3px 8px;
  color: #9fc3b1;
  font-size: .68rem;
  line-height: 1;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  content: "Разделы сайта";
}

.site-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  text-decoration: none;
}

.site-nav .nav-family-link { background: rgba(255, 255, 255, .13); }

.site-nav .nav-cabinet-link {
  grid-column: 1 / -1;
  justify-content: center;
  border-color: #fff;
  background: #fff;
  color: var(--green-950);
  font-weight: 900;
}

.header-cabinet-link,
.header-cta,
.menu-button {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.header-cabinet-link {
  display: inline-flex;
  padding: 0 12px;
  border: 1px solid var(--green-650);
  background: #fff;
  color: var(--green-900);
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  padding: 0 15px;
  border: 1px solid var(--green-900);
  background: var(--green-900);
  color: #fff;
}

.menu-button {
  position: relative;
  width: 44px;
  display: grid;
  padding: 0;
  border: 1px solid var(--header-line);
  background: #fff;
  color: var(--green-950);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button span::before { transform: translateY(-6px); }
.menu-button span::after { transform: translateY(4px); }
body.menu-open .menu-button span { background: transparent; }
body.menu-open .menu-button span::before { transform: translateY(0) rotate(45deg); }
body.menu-open .menu-button span::after { transform: translateY(-2px) rotate(-45deg); }

/* Direction hero: same information rhythm as Capital, Stroy and Zemlya. */
.auto-direction-hero {
  min-height: 550px;
  grid-template-columns: minmax(500px, 47%) minmax(0, 53%);
}

.auto-direction-hero__copy { padding-top: 38px; padding-bottom: 38px; }

.cooperative-kicker {
  margin: 0 0 13px;
  color: #a9cbbb;
  font-size: .74rem;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.auto-direction-lockup {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: var(--green-950);
}

.auto-direction-lockup img { width: 42px; height: 42px; object-fit: contain; }
.auto-direction-lockup > span { display: grid; gap: 2px; }
.auto-direction-lockup strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1; }
.auto-direction-lockup small { color: var(--green-650); font-size: .68rem; line-height: 1.1; font-weight: 800; }

.auto-direction-hero h1 {
  max-width: 660px;
  font-size: clamp(3rem, 4.35vw, 4rem);
  line-height: .98;
  letter-spacing: 0;
}

.auto-direction-hero h1 em { color: #b9d5c7; font-weight: 760; }
.auto-direction-hero .hero-lead { margin-top: 16px; font-size: 16px; }
.auto-direction-hero .hero-terms { margin-top: 18px; }
.auto-direction-hero .hero-actions { margin-top: 18px; }
.auto-direction-hero__media { min-height: 550px; }
.auto-direction-hero__media > picture img { object-position: 68% 58%; transform: scale(1.06); }

.auto-video-overlay {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 50px;
  left: 24px;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 7px;
  background: rgba(4, 29, 22, .84);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.auto-video-overlay .founder-video-play { width: 50px; height: 50px; flex: 0 0 50px; margin: 0; }
.auto-video-overlay > div { display: grid; gap: 4px; }
.auto-video-overlay strong { font-size: 1.1rem; line-height: 1.05; }
.auto-video-overlay small { color: #c2d8ce; font-size: .78rem; line-height: 1.3; }
.founder-video-slot { display: none !important; }

.catalog-section { padding-top: 44px; }
.catalog-heading { margin-bottom: 18px; }
.catalog-heading h2 { letter-spacing: 0; }

/* Shared footer hierarchy. */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 17px;
  padding: 34px max(20px, calc((100vw - 1220px) / 2)) 30px;
  background: var(--green-950);
  color: #fff;
  text-align: center;
}

.footer-family { width: min(900px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.footer-family a { min-height: 48px; display: grid; grid-template-columns: 28px minmax(0, auto); align-items: center; justify-content: center; gap: 6px; padding: 7px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; background: rgba(255, 255, 255, .06); color: #fff; font-size: .78rem; font-weight: 850; text-decoration: none; }
.footer-family img { width: 28px; height: 28px; object-fit: contain; }
.footer-telegram { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.footer-telegram > span { flex: 0 0 100%; color: #bcd4c8; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.footer-telegram a { min-height: 34px; display: inline-flex; align-items: center; color: #fff; font-size: .83rem; font-weight: 800; }
.footer-telegram small { flex: 0 0 100%; color: #8fa99d; font-size: .72rem; }
.footer-contact { width: min(690px, 100%); display: grid; justify-items: center; gap: 8px; }
.footer-contact > span { color: #bdd2c7; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.footer-phone { color: #fff; font-size: 1.7rem; line-height: 1; font-weight: 900; text-decoration: none; }
.footer-cta { min-height: 46px; padding: 10px 22px; border: 1px solid #fff; border-radius: 7px; background: #fff; color: var(--green-950); font-weight: 900; }
.footer-legal { width: min(980px, 100%); display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-legal p { max-width: 900px; margin: 0 auto; color: #b8ccc2; font-size: .75rem; }
.footer-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; }
.footer-legal a { min-height: 34px; display: inline-flex; align-items: center; color: #fff; font-size: .76rem; font-weight: 800; }
.footer-legal small { color: #91aa9f; font-size: .7rem; line-height: 1.35; }

@media (max-width: 1360px) {
  .umma-wording small { display: none; }
  .umma-home-link { min-width: 172px; }
  .brand-family a { font-size: .67rem; }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .header-cta { display: none; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .site-header { min-height: 72px; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 7px; padding: 7px 10px; }
  .header-identity { gap: 6px; }
  .umma-home-link { min-width: 118px; gap: 6px; padding-right: 7px; }
  .umma-home-link > img { width: 29px; height: 29px; flex-basis: 29px; }
  .umma-wording strong { font-size: 1.05rem; }
  .brand-family { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .brand-family a { grid-template-columns: 18px minmax(0, auto); gap: 3px; justify-content: center; padding: 3px 5px; font-size: 0; }
  .brand-family img { width: 18px; height: 18px; }
  .brand-family span::after { display: block; font-size: .68rem; line-height: 1; }
  .brand-family a:nth-child(1) span::after { content: "Капитал"; }
  .brand-family a:nth-child(2) span::after { content: "Строй"; }
  .brand-family a:nth-child(3) span::after { content: "Земля"; }
  .brand-family a:nth-child(4) span::after { content: "Авто"; }
  .header-cabinet-link { min-height: 42px; padding-inline: 9px; }
  .menu-button { width: 42px; height: 42px; }
}

@media (max-width: 900px) {
  .auto-direction-hero { min-height: 0; display: flex; flex-direction: column; }
  .auto-direction-hero__copy { padding: 31px var(--page) 28px; }
  .auto-direction-hero__copy::after { display: none; }
  .auto-direction-hero h1 { font-size: clamp(2.6rem, 8vw, 3.3rem); }
  .auto-direction-hero__media { min-height: 310px; height: 310px; }
  .auto-direction-hero__media > picture img { object-position: 56% 62%; transform: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 114px; }
  .site-header { min-height: 110px; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-rows: 47px 48px; gap: 3px 7px; padding: 5px 9px 7px; }
  .header-identity { display: contents; }
  .umma-home-link { grid-column: 1; grid-row: 1; min-width: 0; padding: 0; border: 0; }
  .umma-home-link > img { width: 31px; height: 31px; flex-basis: 31px; }
  .umma-wording strong { font-size: 1.05rem; }
  .brand-family { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 3px; }
  .brand-family a { min-height: 46px; grid-template-columns: 1fr; grid-template-rows: 18px auto; gap: 2px; justify-items: center; align-content: center; padding: 3px 1px; background: #f1f6f3; font-size: .68rem; }
  .brand-family img { width: 18px; height: 18px; }
  .header-cabinet-link { grid-column: 2; grid-row: 1; min-height: 42px; padding-inline: 9px; }
  .header-cta { display: none; }
  .menu-button { grid-column: 3; grid-row: 1; width: 42px; height: 42px; }
  .site-nav { top: 110px; max-height: calc(100dvh - 120px); grid-template-columns: 1fr; }
  .site-nav .nav-cabinet-link { grid-column: 1; }

  .auto-direction-hero__copy { padding-top: 27px; padding-bottom: 24px; }
  .cooperative-kicker { margin-bottom: 10px; font-size: .66rem; }
  .auto-direction-lockup { margin-bottom: 13px; padding: 6px 10px 6px 7px; }
  .auto-direction-lockup img { width: 36px; height: 36px; }
  .auto-direction-lockup strong { font-size: 1.14rem; }
  .auto-direction-hero h1 { font-size: 2.55rem; line-height: .98; }
  .auto-direction-hero .hero-lead { margin-top: 13px; font-size: 14px; }
  .auto-direction-hero .hero-terms { margin-top: 15px; }
  .auto-direction-hero .hero-actions { margin-top: 17px; }
  .auto-direction-hero__media { min-height: 260px; height: 260px; }
  .encar-source { top: 13px; right: 13px; min-width: 142px; }
  .auto-video-overlay { right: 14px; bottom: 38px; left: 14px; min-height: 94px; padding: 13px 14px; }
  .auto-video-overlay .founder-video-play { width: 43px; height: 43px; flex-basis: 43px; }
  .auto-video-overlay strong { font-size: .98rem; }
  .auto-video-overlay small { font-size: .7rem; }

  .catalog-section { padding-top: 36px; }
  .site-footer { gap: 15px; padding: 27px 15px 24px; }
  .footer-family { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .footer-family a { min-height: 46px; grid-template-columns: 24px minmax(0, auto); font-size: .72rem; }
  .footer-family img { width: 24px; height: 24px; }
  .footer-phone { font-size: 1.45rem; }
}

@media (max-width: 380px) {
  .brand-family a { font-size: .62rem; }
  .auto-direction-hero h1 { font-size: 2.32rem; }
  .hero-terms strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-family a,
  .menu-button span,
  .menu-button span::before,
  .menu-button span::after { transition: none; }
}

/* Public catalog keeps comparison prices, without an interactive payment plan. */
.filter-primary { grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(130px, .7fr)) minmax(160px, .8fr); }
.price-box.price-box--public { grid-template-columns: minmax(0, 1fr); }
.price-box--public .main-price { border: 0; padding: 9px 0; }
.price-box--public .main-price small { font-size: 12px; line-height: 1.35; font-weight: 400; }
@media (max-width: 760px) {
  .filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-primary .search-field, .filter-primary .sort-field { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .filter-primary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .header-cabinet-link { width: 100px; font-size: .875rem; line-height: 1.15; white-space: normal; text-align: center; padding-inline: 7px; }
}
