/* ==========================================================================
   how2ask.com — Proposal 007
   Собственная вёрстка взамен экспорта Tilda. Значения выверены по оригиналу.
   ========================================================================== */

/* --- Шрифт (самохостинг, без tildacdn) ---------------------------------- */
@font-face {
  font-family: 'TildaSans';
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-VF.woff2') format('woff2');
  font-weight: 250 1000;
  font-style: normal;
  font-display: swap;
}

/* --- Токены -------------------------------------------------------------- */
:root {
  --font: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --c-text: #000;
  --c-muted: #777;
  --c-invert: #fff;
  --c-dark: #171717;
  --c-dark-nav: #111;
  --c-grey-bg: #f7f7f7;
  --c-line: #eee;
  --c-purple: #a376d0;
  --c-blue: #094fbd;
  --c-coral: #fa8669;
  --c-red-1: #db4543;
  --c-red-2: #ec4e4e;

  --grad-warm: linear-gradient(0.75turn, rgb(255,106,40) 0%, rgb(254,47,87) 100%);
  --grad-cool: linear-gradient(0.75turn, rgb(206,159,252) 0%, rgb(115,103,240) 100%);
  --shadow-cool: 0 5px 15px 0 rgba(206,159,252,.5);
  --shadow-warm: 0 5px 15px 0 rgba(255,106,40,.5);
  --shadow-card: 0 15px 30px -10px rgba(0,11,48,.2);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 70px;
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
/* контейнеры, где картинка должна заполнять блок целиком */
.hero__bg picture, .cta-cover__bg picture, .card__img picture, .person__bg picture,
.slider__slide picture, .product__slide picture, .popup__img picture,
.hero__card-icon picture, .step__icon picture { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Сетка --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 90px 0; }
.section--grey { background: var(--c-grey-bg); }
.section--tight { padding: 75px 0; }
.anchor { position: relative; top: calc(-1 * var(--header-h)); display: block; height: 0; font-size: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  padding: 12px 20px; background: #fff; color: #000; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Типографика --------------------------------------------------------- */
.t-title      { font-size: 42px; line-height: 1.23; font-weight: 600; }
.t-title--hero{ font-size: 52px; line-height: 1.23; font-weight: 600; }
.t-title--sm  { font-size: 36px; line-height: 1.23; font-weight: 600; }
.t-lead       { font-size: 24px; line-height: 1.5; font-weight: 300; }
.t-descr      { font-size: 20px; line-height: 1.55; font-weight: 300; }
.t-body       { font-size: 16px; line-height: 1.55; font-weight: 300; }
.t-small      { font-size: 14px; line-height: 1.55; font-weight: 300; }

.section__head { text-align: center; }
.section__title { font-size: 42px; line-height: 1.23; font-weight: 600; margin: 0 0 40px; }
.section__descr { font-size: 24px; line-height: 1.5; font-weight: 300; max-width: 560px; margin: 0 auto 90px; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 30px;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center;
  color: #fff; border-radius: 10px; position: relative; overflow: hidden; z-index: 1;
  transition: background-color .2s ease-in-out, color .2s ease-in-out,
              box-shadow .2s ease-in-out, opacity .2s ease-in-out, transform .2s ease-in-out;
}
.btn--md { min-height: 48px; padding: 13px 40px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 16px 48px; font-size: 16px; }

.btn--warm { background-image: var(--grad-warm); }
.btn--warm::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background-image: var(--grad-cool); transition: opacity .2s ease-in-out;
}
.btn--cool { background-image: var(--grad-cool); border-radius: 6px; box-shadow: var(--shadow-cool); }
.btn--cool::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background-image: var(--grad-warm); transition: opacity .2s ease-in-out;
}
.btn--radius-6  { border-radius: 6px; }
.btn--radius-15 { border-radius: 15px; }
.btn--radius-32 { border-radius: 32px; }

.btn--hero-1 { background-color: var(--c-red-1); border-radius: 6px; box-shadow: var(--shadow-cool); }
.btn--hero-2 { background-color: var(--c-red-2); border-radius: 6px; box-shadow: var(--shadow-cool); }
.btn--coral  { background-color: var(--c-coral); border-radius: 32px; }
.btn--block  { display: flex; width: 100%; }

@media (hover: hover) {
  .btn--warm:hover::after, .btn--warm:focus-visible::after,
  .btn--cool:hover::after, .btn--cool:focus-visible::after { opacity: 1; }
  .btn--hero-1:hover, .btn--hero-1:focus-visible,
  .btn--hero-2:hover, .btn--hero-2:focus-visible { color: var(--c-blue); background-color: #fff; }
  .btn--coral:hover, .btn--coral:focus-visible { opacity: .88; }
}

/* --- Шапка --------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 2000;
  height: var(--header-h); background: rgba(0,0,0,.5);
  transition: background-color .25s ease;
}
.header.is-scrolled { background: rgba(0,0,0,.85); }
.header__inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.header__logo { font-size: 24px; font-weight: 900; color: #fff; white-space: nowrap; }
.header__nav { margin-left: auto; }
.header__list { display: flex; align-items: center; gap: 28px; }
.header__link { font-size: 16px; font-weight: 600; color: #fff; opacity: 1; transition: opacity .2s; }
.header__link:hover { opacity: .7; }
.header__side { display: flex; align-items: center; gap: 18px; }
.header__langs { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; }
.header__lang.is-active { opacity: .5; pointer-events: none; }
.header__burger {
  display: none; position: relative; flex-shrink: 0;
  width: 44px; height: 44px; padding: 12px 8px;   /* полоски 28x20, палец попадает в 44x44 */
}
.header__burger span {
  position: absolute; left: 8px; width: 28px; height: 3px; background: #fff;
  transition: .25s ease-in-out;
}
.header__burger span:nth-child(1) { top: 12px; }
.header__burger span:nth-child(2), .header__burger span:nth-child(3) { top: 20px; }
.header__burger span:nth-child(4) { top: 28px; }
.header.is-open .header__burger span:nth-child(1) { top: 20px; width: 0; left: 50%; }
.header.is-open .header__burger span:nth-child(2) { transform: rotate(45deg); }
.header.is-open .header__burger span:nth-child(3) { transform: rotate(-45deg); }
.header.is-open .header__burger span:nth-child(4) { top: 20px; width: 0; left: 50%; }

@media (max-width: 980px) {
  .header { background: var(--c-dark-nav); }
  .header__burger { display: block; order: 3; margin-left: auto; }
  .header__nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: var(--c-dark-nav); padding: 10px 0 30px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .header.is-open .header__nav { display: block; }
  .header__list { flex-direction: column; gap: 0; }
  .header__list a { display: block; padding: 14px 20px; width: 100%; text-align: center; }
  .header__side { order: 2; margin-left: auto; }
  .header__side .btn { display: none; }
}
@media (max-width: 480px) { .header__logo { font-size: 20px; } }

/* --- Обложка / герой ----------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__filter { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.9)); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 40px) 0 60px; }
.hero__head { max-width: 66.66%; }
.hero__title { font-size: 52px; line-height: 1.23; font-weight: 600; margin: 0; }
.hero__descr { font-size: 22px; line-height: 1.55; font-weight: 300; padding: 40px 0 54px; margin: 0; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 90px; }
.hero__card-icon { width: 36px; height: 36px; margin-bottom: 20px; }
.hero__card-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.hero__card-title { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0 0 12px; }
.hero__card-desc { font-size: 16px; line-height: 1.55; font-weight: 300; margin: 0; }

@media (max-width: 960px) {
  .hero__head { max-width: 100%; }
  .hero__title { font-size: 38px; }
  .hero__descr { font-size: 20px; padding: 30px 0 40px; }
  .hero__cards { grid-template-columns: 1fr; gap: 30px; margin-top: 60px; }
}
@media (max-width: 480px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero__title { font-size: 30px; }
  .hero__buttons .btn { flex: 1 1 100%; }
}

/* --- Карточки пакетов (плитка с текстом поверх изображения) -------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 20px 10px 0; }
.card__inner {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 374 / 280; border-radius: 10px; overflow: hidden;
  background: #222; color: #fff; text-align: left; cursor: pointer;
  transition: box-shadow .25s ease;
}
.card__inner:hover, .card__inner:focus-visible { box-shadow: var(--shadow-card); }
.card__img { position: absolute; inset: 0; }
.card__img img, .card__img picture { width: 100%; height: 100%; }
.card__img img { object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card__inner:hover .card__img img { transform: scale(1.07); }
.card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55)); }
.card__body { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px; }
.card__title {
  display: block; font-size: 22px; line-height: 1.35; font-weight: 600; color: #fff;
  margin: 0; padding-right: 26px; position: relative;
}
.card__title::after {
  content: ''; position: absolute; right: 0; top: .35em; width: 9px; height: 9px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
  transition: transform .25s ease;
}
.card__inner:hover .card__title::after { transform: rotate(45deg) translate(3px, -3px); }
.card__descr {
  display: block; font-size: 16px; line-height: 1.55; font-weight: 300; color: #fff;
  margin: auto 0 0;
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* --- Блок «своя идея» (обложка с формой) --------------------------------- */
.cta-cover { position: relative; color: #fff; overflow: hidden; }
.cta-cover__bg { position: absolute; inset: 0; }
.cta-cover__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-cover__filter { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cta-cover__inner { position: relative; z-index: 2; padding: 100px 0; text-align: center; }
.cta-cover .form__label { color: #fff; }
.cta-cover__title { font-size: 42px; line-height: 1.23; font-weight: 600; margin: 0 0 40px; }
.cta-cover__descr { font-size: 20px; line-height: 1.55; font-weight: 300; margin: 0 auto 50px; max-width: 920px; }
@media (max-width: 960px) {
  .cta-cover__inner { padding: 80px 0; }
  .cta-cover__title { font-size: 32px; }
}

/* --- Шаги ---------------------------------------------------------------- */
.steps-section { padding: 150px 0 105px; background: var(--c-grey-bg); }
.steps-section .section__title { margin-bottom: 105px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.step__icon { width: 60px; height: 60px; margin: 0 auto 25px; }
.step__icon img { width: 100%; height: 100%; object-fit: contain; }
.step__num { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 0 0 10px; }
.step__text { font-size: 16px; line-height: 1.55; font-weight: 300; margin: 0; }
.steps-section__footer { text-align: center; margin-top: 80px; }
.steps-section__footer .btn { margin-top: 25px; }
.steps-section__cta-title { font-size: 24px; font-weight: 600; margin: 0; }
@media (max-width: 960px) {
  .steps-section { padding: 80px 0 70px; }
  .steps-section .section__title { margin-bottom: 45px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --- Заголовок «about us» ------------------------------------------------ */
.titled { text-align: center; padding: 75px 0; }
.titled__uptitle {
  display: inline-block; padding: 10px 43px; margin-bottom: 30px;
  background: var(--c-purple); color: #fff;
  font-size: 16px; font-weight: 700; text-transform: lowercase;
}
.titled__title { font-size: 42px; line-height: 1.23; font-weight: 600; margin: 0 0 40px; }
.titled__line { width: 100%; height: 1px; background: var(--c-purple); margin: 0; border: 0; }
@media (max-width: 960px) { .titled__title { font-size: 32px; } }

/* --- Команда ------------------------------------------------------------- */
.persons { display: grid; grid-template-columns: repeat(2, 1fr); }
.person { position: relative; min-height: 400px; display: flex; align-items: flex-end; overflow: hidden; }
.person__bg { position: absolute; inset: 0; }
.person__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person__filter { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.person__body { position: relative; z-index: 2; width: 100%; padding: 40px 30px; text-align: center; color: #fff; }
.person__title { font-size: 36px; line-height: 1.23; font-weight: 600; margin: 0; color: #fff; }
.person__text { font-size: 16px; font-weight: 300; margin: 8px 0 0; color: #fff; }
@media (max-width: 640px) { .persons { grid-template-columns: 1fr; } }

/* --- Текстовый блок ------------------------------------------------------ */
.prose { padding: 60px 0; }
.prose__inner { max-width: 900px; margin: 0 auto; }
.prose p { font-size: 16px; line-height: 1.75; font-weight: 300; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

/* --- Галерея: слайдер как в оригинале (960x550) --------------------------- */
.slider { max-width: 960px; margin: 0 auto; }
.slider__viewport {
  position: relative; aspect-ratio: 960 / 550; border-radius: 6px;
  overflow: hidden; background: var(--c-line);
}
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; cursor: zoom-in; }
.slider__slide.is-active { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: grid; place-items: center; transition: background .2s;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__bullets { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.slider__bullet {
  width: 24px; height: 24px; padding: 0; background: none;   /* точка 9px, палец попадает в 24px */
  position: relative; border-radius: 50%;
}
.slider__bullet::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: #d5d5d5; transition: background .2s;
}
.slider__bullet.is-active::before, .slider__bullet:hover::before { background: #222; }
@media (max-width: 640px) {
  .slider__arrow { width: 44px; height: 44px; }
  .slider__arrow--prev { left: 8px; } .slider__arrow--next { right: 8px; }
}

/* --- Подвал -------------------------------------------------------------- */
.footer { background: var(--c-dark); color: #fff; padding: 60px 0 75px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { font-size: 28px; font-weight: 600; color: #fff; }
.footer__list { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__list a { font-size: 16px; font-weight: 300; color: #fff; opacity: .85; }
.footer__list a:hover { opacity: 1; }
.footer__copy { padding: 40px 0 10px; text-align: center; font-size: 14px; font-weight: 400; color: #fff; opacity: .8; }
.footer__copy a { text-decoration: underline; }
@media (max-width: 640px) {
  .footer__top { flex-direction: column; text-align: center; }
  .footer__list { justify-content: center; gap: 16px; }
}

/* --- Бегущая строка (страница /ads) -------------------------------------- */
.marquee { background: var(--c-blue); color: #fff; overflow: hidden; height: 70px; display: flex; align-items: center; }
.marquee__track { display: flex; align-items: center; gap: 24px; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.marquee__item { font-size: 20px; font-weight: 300; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Формы --------------------------------------------------------------- */
.form { display: grid; gap: 12px; }
.form--centered { max-width: 560px; margin: 0 auto; }
.form__field { display: grid; gap: 6px; text-align: left; }
.form__label {
  font-size: 14px; line-height: 1.4; font-weight: 600; color: inherit;
  opacity: .9; margin-bottom: 2px;
}
.form__req { color: #e05252; }
.input, .textarea {
  width: 100%; min-height: 56px; padding: 0 20px;
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.33;
  color: #000; background: #fff; border: 1px solid #ddd; border-radius: 5px;
  transition: border-color .2s;
}
.textarea { padding: 16px 20px; min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: rgba(0,0,0,.5); }
.input:focus, .textarea:focus { border-color: var(--c-purple); outline: none; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #e05252; }
.form__error { font-size: 13px; line-height: 1.4; color: #e05252; margin: 0; }
.form__error:empty { display: none; }
.form__note { font-size: 12px; line-height: 1.5; font-weight: 300; opacity: .7; margin: 10px 0 0; text-align: center; }
.form__note a { text-decoration: underline; }
.form__status { font-size: 15px; line-height: 1.5; margin: 14px 0 0; text-align: center; }
.form__status:empty { display: none; margin: 0; }
.form__status[data-state="ok"] { color: #2e9e5b; }
.form__status[data-state="err"] { color: #e05252; }
.form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }


/* --- Попапы -------------------------------------------------------------- */
.popup {
  position: fixed; inset: 0; z-index: 3000; display: none;
  background: rgba(0,0,0,.7); overflow-y: auto; padding: 40px 20px;
}
.popup.is-open { display: block; }
.popup__dialog {
  position: relative; margin: 0 auto; background: #fff; border-radius: 10px;
  max-width: 560px; width: 100%; overflow: hidden;
  animation: popup-in .25s ease;
}
.popup__dialog--wide { max-width: 900px; }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.popup__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.35);
  transition: background .2s;
}
.popup__close:hover { background: rgba(0,0,0,.6); }
.popup__close svg { width: 14px; height: 14px; fill: #fff; }
.popup__img { width: 100%; aspect-ratio: 16 / 9; }
.popup__img img { width: 100%; height: 100%; object-fit: cover; }
.popup__body { padding: 34px 40px 40px; }
.popup__title { font-size: 30px; line-height: 1.3; font-weight: 600; margin: 0 0 12px; text-align: center; }
.popup__descr { font-size: 16px; line-height: 1.55; font-weight: 300; margin: 0 0 26px; text-align: center; }
@media (max-width: 560px) {
  .popup { padding: 0; }
  .popup__dialog { border-radius: 0; min-height: 100%; }
  .popup__body { padding: 26px 20px 34px; }
  .popup__title { font-size: 24px; }
}

/* Попап-карточка товара */
.product { display: grid; grid-template-columns: 1fr 1fr; }
.product__media { position: relative; background: #f2f2f2; }
.product__slides { position: relative; height: 100%; min-height: 420px; }
.product__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.product__slide.is-active { opacity: 1; }
.product__slide img { width: 100%; height: 100%; object-fit: cover; }
.product__bullets { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 0; z-index: 2; }
.product__bullet { width: 24px; height: 24px; border-radius: 50%; background: none; position: relative; padding: 0; }
.product__bullet::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .2s;
}
.product__bullet.is-active::before { background: #222; }
.product__body { padding: 40px; display: flex; flex-direction: column; }
.product__title { font-size: 24px; line-height: 1.35; font-weight: 600; margin: 0 0 10px; }
.product__price { display: flex; align-items: baseline; gap: 2px; font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 22px; }
.product__descr { font-size: 14px; line-height: 1.55; font-weight: 300; margin: 0 0 10px; }
.product__list { font-size: 14px; line-height: 1.55; font-weight: 300; margin: 0 0 26px; }
.product__list li { position: relative; padding-left: 16px; }
.product__list li::before { content: '—'; position: absolute; left: 0; }
.product__actions { margin-top: auto; display: grid; gap: 12px; }
.product__more { font-size: 14px; line-height: 1.55; font-weight: 400; text-align: center; text-decoration: underline; }
@media (max-width: 780px) {
  .product { grid-template-columns: 1fr; }
  .product__slides { min-height: 260px; }
  .product__body { padding: 26px 20px 30px; }
}

/* --- Лайтбокс ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 4000; display: none; background: rgba(0,0,0,.92); }
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; }
.lightbox__close svg { width: 20px; height: 20px; fill: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; }
.lightbox__nav svg { width: 26px; height: 26px; fill: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* --- Появление при скролле ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Верхняя полоса с контактами (страница /ads) -------------------------- */
.topbar { background: #000; color: #fff; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 28px; min-height: 44px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 300; }
.topbar__item img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.topbar + .header { top: 44px; }
@media (max-width: 640px) {
  .topbar__inner { justify-content: center; gap: 16px; }
  .topbar + .header { top: 0; }
  .topbar { display: none; }
}

/* --- Сетка из 5 категорий (страница /ads) --------------------------------- */
.cards--5 { grid-template-columns: repeat(3, 1fr); }
.cards--5 .card__body { padding: 22px 22px 26px; }
@media (max-width: 960px) { .cards--5 { grid-template-columns: 1fr; } }

/* карточка-кнопка: сбрасываем стили button */
button.card__inner { width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
button.card__inner .card__body > span { display: block; }
button.card__inner .card__cta { display: inline-flex; }
