/* ==========================================================================
   RestoIsh.uz — общие стили шаблона
   Дизайн: Figma (OAgiGcf0uUrWf1UEk0mY6L). Основа вёрстки — Bootstrap 5
   (см. css/vendor/bootstrap/). Здесь только токены и кастомные компоненты,
   которых нет в Bootstrap "из коробки".
   ========================================================================== */

:root {
  --ri-gold: #cc9544;
  --ri-gold-light: #d5a157;
  --ri-gold-dark: #a47d3a;
  --ri-dark: #14181b;
  --ri-dark-soft: #181c20;
  --ri-dark-border: #292e32;
  --ri-ink: #1c1d1e;
  --ri-ink-soft: #272b2e;
  --ri-text-muted: #5e6064;
  --ri-text-mute-2: #8f8f90;
  --ri-cream: #faf6f2;
  --ri-cream-soft: #f9f5f2;
  --ri-border-cream: #f4efeb;
  --ri-line: #e9e9ea;

  --ri-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ri-radius-lg: 24px;
  --ri-radius-md: 16px;
  --ri-radius-sm: 9px;
}

body {
  font-family: var(--ri-font-sans);
  color: var(--ri-ink);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.container-xl {
  max-width: 1320px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--ri-line);
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: auto;
}

.brand__resto { color: var(--ri-ink-soft); }
.brand__ish { color: var(--ri-gold); }
.brand__uz { color: #bec0c2; font-size: .8em; }

.site-header__tagline {
  color: var(--ri-text-muted);
  font-size: .95rem;
  line-height: 1.35;
  margin: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
}

.lang-switch a {
  color: #787b7e;
  padding: .25rem 0;
}

.lang-switch a.active {
  color: var(--ri-gold);
}

.lang-switch__sep {
  width: 1px;
  height: 18px;
  background: var(--ri-line);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #fbfafa;
  border: 1px solid #d1d2d4;
  border-radius: var(--ri-radius-sm);
  padding: .55rem 1.1rem;
  font-weight: 500;
  font-size: 1rem;
  color: #4a4b4b;
}

.btn-login img { width: 18px; height: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ri-cream);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-card {
  border-radius: var(--ri-radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
}

.hero-card__badge {
  width: 69px;
  height: auto;
  margin-top: .6rem;
  transition: transform .15s ease;
}

.hero-card:hover .hero-card__badge {
  transform: translateX(4px);
}

.hero-card__icon {
  width: 135px;
  height: 135px;
  object-fit: contain;
  margin-bottom: .6rem;
}

.hero-card__title {
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0;
}

.hero-card__link {
  font-size: 1.3rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero-card--dark {
  background: var(--ri-dark-soft);
  border: 1px solid var(--ri-dark-border);
  color: #dcddde;
}

.hero-card--dark .hero-card__title { color: #dcddde; }
.hero-card--dark .hero-card__link { color: #a4a6a8; }

.hero-card--light {
  background: #fcfcfc;
  border: 4px solid var(--ri-border-cream);
  color: var(--ri-ink);
}

.hero-card--light .hero-card__title { color: var(--ri-ink); }
.hero-card--light .hero-card__link { color: #7f8185; }

/* ---------- Telegram banner ---------- */

.telegram-banner {
  background: var(--ri-cream-soft);
  border: 6px solid #fcfaf9;
  border-radius: var(--ri-radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.telegram-banner .telegram-banner__icon {
  width: 78px;
  height: auto;
  flex-shrink: 0;
}

.telegram-banner__text h3 {
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 .25rem;
}

.telegram-banner__text p {
  color: #8f8f90;
  font-size: 1rem;
  margin: 0;
}

.telegram-banner .btn-telegram {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #f9f5f2;
  border: 1px solid #e3c59b;
  border-radius: var(--ri-radius-sm);
  padding: .9rem 1.6rem;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ri-gold-light);
  white-space: nowrap;
}

.telegram-banner .btn-telegram img, .telegram-banner .btn-telegram .icon-inline { width: 30px; height: auto; }

/* ---------- Features strip ---------- */

.features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 240px;
  padding: 0 1.5rem;
}

.feature-item:first-child { padding-left: 0; }

.feature-item img, .feature-item .icon-inline {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}

/* точные размеры по Figma (5:156, 5:152, 5:148, 5:144) — иконки не одного размера */
.features-strip .feature-item:nth-child(1) .icon-inline { width: 51px; }
.features-strip .feature-item:nth-child(2) .icon-inline { width: 56px; }
.features-strip .feature-item:nth-child(3) .icon-inline { width: 43px; }
.features-strip .feature-item:nth-child(4) .icon-inline { width: 51px; }

.feature-item h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ri-ink-soft);
  margin: 0 0 .15rem;
}

.feature-item p {
  font-size: .9rem;
  font-weight: 400;
  color: #8a8b8d;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ri-dark);
  color: #9d9fa1;
  padding: 4rem 0 2rem;
  font-size: .95rem;
}

.site-footer .brand__resto { color: #d4d5d6; }
.site-footer .brand__uz { color: #bec0c2; }

.site-footer__tagline {
  color: #9d9fa1;
  font-size: .9rem;
  margin: .5rem 0 0;
}

.site-footer h5 {
  color: #cfd0d1;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: .75rem;
}

.site-footer a:hover {
  color: #d4d5d6;
}

.site-footer__socials {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.site-footer__socials img {
  width: 40px;
  height: auto;
}

.site-footer__accordion {
  margin-top: 1.75rem;
}

.site-footer__accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__accordion .accordion-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer__accordion .accordion-button {
  background: transparent;
  color: #cfd0d1;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 0;
  box-shadow: none;
}

.site-footer__accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: #fff;
}

.site-footer__accordion .accordion-button:focus {
  box-shadow: none;
}

.site-footer__accordion .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(1.8);
}

.site-footer__accordion .accordion-body {
  padding: 0 0 1.1rem;
}

.site-footer__accordion .accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__accordion .accordion-body li {
  margin-bottom: .7rem;
}

.site-footer__accordion .accordion-body a {
  color: #9d9fa1;
}

.site-footer__accordion .accordion-body a:hover {
  color: #d4d5d6;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .9rem;
  color: #9d9fa1;
}

/* ---------- Mobile (home.html) ---------- */

@media (max-width: 767px) {
  .btn-login {
    background: none;
    border: 0;
    padding: 0;
    gap: 0;
  }

  .btn-login__label {
    display: none;
  }

  .telegram-banner {
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .telegram-banner__text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .telegram-banner .btn-telegram {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
  }

  .features-strip {
    flex-direction: column;
    gap: 1.25rem;
  }

  .feature-item {
    flex: 0 1 auto;
    padding: 0;
  }
}
