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

:root {
  --accent: #1a1a1a;
  --accent-dark: #000000;
  --accent-light: #3d3429;
  --wood: #8a6a45;
  --wood-soft: #c4a574;
  --text: #1a1a1a;
  --text-muted: #5a534c;
  --white: #ffffff;
  --bg: #f5f1eb;
  --bg-warm: #ebe4da;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.1);
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.topbar {
  background: var(--white);
  border-bottom: 1px solid #e8e2d8;
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
}

.topbar > .container,
.topbar__main,
.topbar__actions {
  overflow: visible;
}

.topbar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 92px;
  width: auto;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand__name {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  margin-right: 6px;
}

.topbar__meta a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.topbar__meta a:hover {
  color: var(--wood);
}

.site-search {
  position: relative;
  flex-shrink: 1;
  min-width: 140px;
  max-width: 220px;
  margin-right: 4px;
  z-index: 40;
}

.site-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e0d8cc;
  border-radius: 999px;
  background: #faf8f5;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.site-search__input::placeholder {
  color: #9a9186;
}

.site-search__input:focus {
  border-color: var(--wood);
  background: var(--white);
}

.site-search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: min(320px, calc(100vw - 32px));
  max-height: 360px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #e8e2d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
}

.site-search__results[hidden] {
  display: none !important;
}

.site-search__results--portal {
  position: fixed;
  z-index: 1000;
  margin: 0;
}

.site-search__item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #f0ebe3;
  transition: background 0.15s;
}

.site-search__item:last-child {
  border-bottom: none;
}

.site-search__item:hover,
.site-search__item.is-active {
  background: #faf8f5;
}

.site-search__title {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.site-search__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-search__empty {
  padding: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s;
}

.icon-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-btn--phone {
  background: var(--accent);
}

.icon-btn--phone:hover {
  background: var(--wood);
  filter: none;
}

.icon-btn--wa {
  background: #25d366;
}

.icon-btn--tg {
  background: #2aabee;
}

.icon-btn--avito {
  background: #00aaff;
  width: auto;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 999px;
}

.icon-btn__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-wrap {
  border-top: 1px solid #efe9e0;
  background: #faf8f5;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--wood);
}

.nav__sep {
  width: 1px;
  height: 22px;
  background: #cbbfae;
  flex-shrink: 0;
  margin: 0 4px;
}

.nav a.nav__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav a.nav__meta:hover,
.nav a.nav__meta.active {
  color: var(--wood);
}

.nav a.nav__meta--long {
  white-space: normal;
  text-align: center;
  max-width: 280px;
  line-height: 1.25;
}

.nav a.nav__mobile-only {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--outline-dark {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn--outline-dark:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(20, 16, 12, 0.9) 0%, rgba(60, 45, 30, 0.65) 45%, rgba(0, 0, 0, 0.3) 100%),
    url('https://images.unsplash.com/photo-1615874959474-d609969a20ed?w=1600&q=80') center/cover no-repeat;
  color: var(--white);
}

.hero__content {
  max-width: 680px;
  padding: 80px 0;
}

.hero__tagline {
  font-size: 0.95rem;
  margin-bottom: 16px;
  opacity: 0.95;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  padding-bottom: 4px;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__list {
  list-style: none;
  margin-bottom: 32px;
}

.hero__list li {
  padding: 4px 0 4px 16px;
  position: relative;
  font-size: 0.95rem;
}

.hero__list li::before {
  content: '—';
  position: absolute;
  left: 0;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Page hero */
.page-hero {
  background: var(--accent);
  color: var(--white);
  padding: 48px 0;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.9;
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 16px;
  opacity: 0.75;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 64px 0;
}

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

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

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

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.78));
}

.category-card__body {
  position: relative;
  padding: 20px;
  color: var(--white);
  width: 100%;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.category-card .btn {
  padding: 8px 16px;
  font-size: 0.72rem;
}

.categories .category-card:nth-child(4),
.categories .category-card:nth-child(5) {
  grid-column: span 1;
}

/* About / trust */
.trust {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.trust h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.trust p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.trust__list {
  list-style: none;
  margin-top: 8px;
}

.trust__list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
}

.trust__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wood);
  font-weight: 700;
}

.trust__cards {
  display: grid;
  gap: 16px;
}

.trust-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--wood);
}

.trust-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--wood);
  margin-bottom: 4px;
}

.trust-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Why DealerWood */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  padding: 24px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--wood);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.partners-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.partners-steps {
  max-width: 640px;
  margin: 0 auto;
}

.trust-link-wrap {
  padding: 0 0 8px;
}

.trust-link-wrap .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wood);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.trust-link:hover {
  border-bottom-color: var(--wood);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  text-align: left;
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Steps (animated) */
.steps {
  --steps-stagger: 100ms;
  --steps-duration: 0.55s;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps__progress {
  grid-column: 1 / -1;
  height: 3px;
  background: #e8e2d8;
  border-radius: 2px;
  overflow: hidden;
  order: -1;
  margin-bottom: 4px;
}

.steps__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wood-soft), var(--wood));
  border-radius: 2px;
  transition: width calc(var(--steps-duration) + 5 * var(--steps-stagger)) cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-section.js-animate.is-visible .steps__progress-bar {
  width: 100%;
}

.step {
  text-align: left;
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

/* Hidden only when JS opts into animation — without JS cards stay visible */
.steps-section.js-animate .step {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--steps-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--steps-duration) cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  transition-delay:
    calc(var(--i, 0) * var(--steps-stagger)),
    calc(var(--i, 0) * var(--steps-stagger)),
    0s,
    0s;
}

.steps-section.js-animate.is-visible .step {
  opacity: 1;
  transform: translateY(0);
}

.steps-section.is-settled .step {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: 0s;
}

.steps-section.is-settled .step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12);
  border-color: rgba(138, 106, 69, 0.25);
}

.step__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wood-soft);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  transition: color 0.35s ease;
  transition-delay: calc(var(--i, 0) * var(--steps-stagger));
}

.steps-section.js-animate .step__num {
  color: var(--wood-soft);
}

.steps-section.js-animate.is-visible .step__num {
  color: var(--wood);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .steps-section.js-animate .step,
  .steps__progress-bar,
  .step__num {
    transition: none;
  }

  .steps-section.js-animate .step {
    opacity: 1;
    transform: none;
  }

  .steps__progress-bar {
    width: 100%;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  scroll-margin-top: 120px;
}

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

.work-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}

.work-card__img:hover {
  filter: brightness(0.96);
}

.work-card__body {
  padding: 18px;
}

.work-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.work-card__tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--wood);
  font-weight: 600;
}

/* Office */
.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.office__visual {
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e2d8;
  position: relative;
}

.office__map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.office__map-link {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.office__map-link:hover {
  color: var(--wood);
}

.office h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.office p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.office__meta {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}

.office__meta p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--wood);
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item__body p + p {
  margin-top: 12px;
}

.faq-item__body a {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.contact h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact__details p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.contact__form-wrap {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  justify-self: end;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.contact__yandex-form {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 440px;
  height: 440px;
  border: 0;
  background: transparent;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--accent);
}

.form__note {
  font-size: 0.85rem;
  color: var(--wood);
  min-height: 1.2em;
}

/* CTA */
.cta-strip {
  background: var(--accent);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.cta-strip h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-strip p {
  margin-bottom: 24px;
  opacity: 0.9;
}

.cta-strip .hero__actions {
  justify-content: center;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .categories,
  .gallery,
  .features,
  .steps,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust,
  .office {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .topbar__meta {
    display: none;
  }

  .site-search {
    min-width: 120px;
    max-width: 160px;
  }

  .site-search__results {
    left: auto;
    right: 0;
    min-width: 260px;
  }

  .nav-wrap {
    border-top: none;
    background: transparent;
    position: static;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    border-bottom: 1px solid #e8e2d8;
    box-shadow: var(--shadow);
    gap: 14px;
  }

  .nav.open {
    display: flex;
  }

  .nav__sep {
    display: none;
  }

  .nav a.nav__meta {
    display: block;
    max-width: none;
    text-align: left;
  }

  .nav a.nav__mobile-only {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .logo img {
    height: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand__name {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .brand__tagline {
    font-size: 0.75rem;
  }

  .topbar__main {
    gap: 12px;
  }

  .topbar__actions {
    gap: 6px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .contact,
  .categories,
  .gallery,
  .features,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .steps__progress {
    display: none;
  }

  .contact__form-wrap {
    max-width: none;
    justify-self: stretch;
  }

  .hero {
    min-height: 480px;
  }

  .hero__content {
    padding: 48px 0;
  }

  .brand__tagline {
    display: none;
  }

  .topbar__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    padding: 10px 0 8px;
    gap: 8px 10px;
  }

  /* Перенос: строка 1 — бренд + меню, строка 2 — поиск + мессенджеры */
  .topbar__main::before {
    content: '';
    order: 3;
    flex: 1 0 100%;
    height: 0;
    overflow: hidden;
  }

  .brand {
    gap: 8px;
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
  }

  .topbar__actions {
    display: contents;
  }

  .logo img {
    height: 48px;
  }

  .brand__name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .burger {
    order: 2;
  }

  .site-search {
    order: 4;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    margin-right: 0;
  }

  .site-search__input {
    height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .topbar__messengers {
    order: 5;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .icon-btn--avito {
    min-width: 38px;
  }

  .office__visual {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 14px;
  }

  .brand {
    gap: 6px;
  }

  .brand__name {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .logo img {
    height: 44px;
  }

  .site-search__input {
    height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .topbar__messengers {
    gap: 10px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .burger {
    width: 34px;
    height: 34px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

