@charset "UTF-8";
:root {
  /* цвета */
  --bg: #f6f6f6;
  --white: #fff;
  --ink: #2f2f2f;
  --ink-soft: #444141;
  --muted: #8d8d8d;
  --muted-2: #b4b4b4;
  --line: #e6e8ec;
  --lime: #c4f449;
  --lime-dark: #b2e336;
  --violet: #8942fe;
  --red: #e64949;
  /* радиусы */
  --r-xs: 10px;
  --r-sm: 15px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;
  --r-pill: 100px;
  /* сетка */
  --container: 1200px;
  --gap: 20px;
  /* тень */
  --shadow: 0 10px 40px rgba(47, 47, 47, 0.08);
  --shadow-soft: 0 4px 20px rgba(47, 47, 47, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media screen and (max-width: 767.98px) {
  body {
    font-size: 15px;
  }
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- контейнер ---------- */
.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.container--narrow {
  width: min(800px, var(--container));
}
@media screen and (max-width: 767.98px) {
  .container {
    width: 90%;
    max-width: 500px;
  }
}
@media screen and (max-width: 1359.98px) {
  .container {
    width: 90%;
  }
}

/* ---------- типографика ---------- */
.h1 {
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}
@media screen and (max-width: 767.98px) {
  .h1 {
    font-size: 34px;
  }
}
@media screen and (max-width: 1359.98px) {
  .h1 {
    font-size: 52px;
  }
}

.h2 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}
@media screen and (max-width: 767.98px) {
  .h2 {
    font-size: 28px;
  }
}
@media screen and (max-width: 1359.98px) {
  .h2 {
    font-size: 38px;
  }
}

.h3 {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
}
@media screen and (max-width: 767.98px) {
  .h3 {
    font-size: 22px;
  }
}
.h4 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
}
@media screen and (max-width: 767.98px) {
  .lead {
    font-size: 17px;
  }
}
.text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.small {
  font-size: 14px;
  line-height: 1.4;
}
.muted {
  color: var(--muted);
}
/* заголовок-плашка секции: [ площадки ] — как в макете журнала */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 26px;
}
.section-label::before, .section-label::after {
  color: var(--muted-2);
  font-size: 22px;
  line-height: 1;
}
.section-label::before {
  content: "[";
}
.section-label::after {
  content: "]";
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.section-head__text {
  max-width: 720px;
}
.section-head .h2 + .text {
  margin-top: 12px;
}
@media screen and (max-width: 767.98px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.section {
  padding: 70px 0;
}
.section--tight {
  padding: 44px 0;
}
.section--flush-top {
  padding-top: 0;
}
@media screen and (max-width: 767.98px) {
  .section {
    padding: 48px 0;
  }
}
.section#steps {
  padding-bottom: 20px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: 0.3s ease-in-out;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  background: var(--lime-dark);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: #1f1f1f;
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover {
  background: #ececec;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  background: var(--white);
}
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--ghost-light.is-active {
  background: var(--lime);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost-light.is-active:hover {
  background: var(--lime-dark);
}
.btn--sm {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- кнопка-иконка ---------- */
.icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: 0.3s ease-in-out;
}
.icon-btn:hover {
  background: #ececec;
}
.icon-btn__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
@media screen and (max-width: 767.98px) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge--dark {
  background: var(--ink);
  color: var(--white);
}
.badge--light {
  background: var(--white);
  color: var(--ink);
}
.badge--violet {
  background: var(--violet);
  color: var(--white);
}
.badge--glass {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 18px 0;
}
.breadcrumbs a {
  transition: 0.3s ease-in-out;
}
.breadcrumbs a:hover {
  color: var(--ink);
}
.breadcrumbs span {
  color: var(--muted-2);
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  background: var(--bg);
}
@media screen and (max-width: 767.98px) {
  .header {
    padding: 12px 0;
  }
}
.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.header.is-stuck::after {
  opacity: 1;
}
.header__inner {
  display: flex;
  align-items: center;
  /* с justify-content:space-between отступ логотип→меню и меню→телефон
     всегда получается одинаковым — оба это единственные два промежутка
     между тремя блоками (логотип, меню, правая часть) */
  justify-content: space-between;
  gap: 24px;
}
@media screen and (max-width: 767.98px) {
  .header__inner {
    gap: 12px;
  }
}
.header__side {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media screen and (max-width: 767.98px) {
  .header__side {
    gap: 8px;
  }
}
@media screen and (max-width: 767.98px) {
  .header__side > .btn {
    display: none;
  }
}
.header__phone {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
@media screen and (max-width: 1359.98px) {
  .header__phone {
    display: none;
  }
}
@media screen and (max-width: 1139.98px) {
  .header__phone {
    display: none;
  }
}
@media screen and (max-width: 767.98px) {
  .header__phone {
    font-size: 22px;
  }
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.logo img {
  width: 104px;
  height: auto;
}
.logo__suffix {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transform: translateY(-3px);
}
.logo--light .logo__suffix {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
@media screen and (max-width: 1139.98px) {
  .nav {
    display: none;
  }
}
.nav a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: 0.3s ease-in-out;
}
@media screen and (max-width: 1359.98px) {
  .nav a {
    padding: 10px 11px;
    font-size: 14px;
  }
}
.nav a:hover {
  background: var(--white);
  color: var(--ink);
}
.nav a.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.burger {
  display: none;
  width: 56px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--white);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
@media screen and (max-width: 1139.98px) {
  .burger {
    display: flex;
  }
}
@media screen and (max-width: 767.98px) {
  .burger {
    width: 50px;
    height: 42px;
  }
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- ссылка со стрелкой ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.link-arrow svg {
  transition: transform 0.18s ease;
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- герой главной ---------- */
.hero {
  padding: 10px 0 0;
}
@media screen and (max-width: 767.98px) {
  .hero {
    padding-top: 4px;
  }
}
.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: var(--white);
  isolation: isolate;
}
@media screen and (max-width: 1023.98px) {
  .hero__card {
    min-height: 520px;
    padding: 32px;
  }
}
@media screen and (max-width: 767.98px) {
  .hero__card {
    min-height: 480px;
    padding: 24px;
    border-radius: var(--r-lg);
  }
}
.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.12) 38%, rgba(20, 20, 20, 0.82) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
@media screen and (max-width: 1023.98px) {
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}
.hero__text {
  max-width: 760px;
}
.hero__title {
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px 0 16px;
}
@media screen and (max-width: 1359.98px) {
  .hero__title {
    font-size: 52px;
  }
}
@media screen and (max-width: 1023.98px) {
  .hero__title {
    font-size: 44px;
  }
}
@media screen and (max-width: 767.98px) {
  .hero__title {
    font-size: 34px;
  }
}
.hero__sub {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media screen and (max-width: 767.98px) {
  .hero__actions .btn {
    width: 100%;
  }
}
.hero__stats {
  display: flex;
  gap: 36px;
  flex-shrink: 0;
  padding-bottom: 6px;
}
@media screen and (max-width: 767.98px) {
  .hero__stats {
    gap: 24px;
  }
}
.hero__stat b {
  display: block;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media screen and (max-width: 767.98px) {
  .hero__stat b {
    font-size: 26px;
  }
}
.hero__stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- разделы каталога (бенто) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media screen and (max-width: 1023.98px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .bento {
    grid-template-columns: 1fr;
  }
}
.bento__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  isolation: isolate;
  transition: transform 0.25s ease;
}
.bento__item:hover {
  transform: translateY(-3px);
}
.bento__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.bento__item:hover img {
  transform: scale(1.04);
}
.bento__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.05) 30%, rgba(20, 20, 20, 0.78) 100%);
}
.bento__item--wide {
  grid-column: span 2;
  min-height: 340px;
}
@media screen and (max-width: 767.98px) {
  .bento__item--wide {
    grid-column: span 1;
  }
}
.bento__item--tall {
  grid-row: span 2;
}
@media screen and (max-width: 1023.98px) {
  .bento__item--tall {
    grid-row: auto;
  }
}
.bento__count {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
}
.bento__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.bento__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 8px;
  max-width: 340px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media screen and (max-width: 1023.98px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps .step {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.steps .step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: auto;
}
.steps .step__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 10px;
}
.steps .step__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.steps .step--accent {
  background: var(--ink);
  color: var(--white);
}
.steps .step--accent .step__num {
  color: var(--ink);
}
.steps .step--accent .step__text {
  color: rgba(255, 255, 255, 0.7);
}

.cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 60px 60px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media screen and (max-width: 1023.98px) {
  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    border-radius: var(--r-lg);
  }
}
@media screen and (max-width: 767.98px) {
  .cta {
    padding: 30px 24px;
  }
}
.cta__text {
  max-width: 620px;
}
.cta__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}
@media screen and (max-width: 767.98px) {
  .cta__title {
    font-size: 26px;
  }
}
@media screen and (max-width: 1023.98px) {
  .cta__title {
    font-size: 32px;
  }
}
.cta__desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
@media screen and (max-width: 767.98px) {
  .cta__actions {
    width: 100%;
  }
}
@media screen and (max-width: 767.98px) {
  .cta__actions .btn {
    width: 100%;
  }
}
.cta--lime {
  background: var(--lime);
  color: var(--ink);
}
.cta--lime .cta__desc {
  color: var(--ink-soft);
}

.request {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media screen and (max-width: 1023.98px) {
  .request {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px;
    border-radius: var(--r-lg);
  }
}
@media screen and (max-width: 767.98px) {
  .request {
    padding: 26px 20px;
  }
}
.request__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media screen and (max-width: 767.98px) {
  .request__form {
    grid-template-columns: 1fr;
  }
}
.request__form .field--full {
  grid-column: span 2;
}
@media screen and (max-width: 767.98px) {
  .request__form .field--full {
    grid-column: span 1;
  }
}

/* сайдбар-заявка */
.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
@media screen and (max-width: 1023.98px) {
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* мобильная панель действий */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -6px 24px rgba(47, 47, 47, 0.1);
}
@media screen and (max-width: 767.98px) {
  .action-bar {
    display: flex;
  }
}
.action-bar__price {
  flex-shrink: 0;
  align-self: center;
  line-height: 1.2;
}
.action-bar__price b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.action-bar__price span {
  font-size: 12px;
  color: var(--muted);
}
.action-bar .btn {
  flex: 1;
}

.order-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 30px;
}
.order-card__price {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.order-card__price span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}
.order-card__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.order-card .btn {
  margin-top: 22px;
}
.order-card .btn + .btn {
  margin-top: 10px;
}
.order-card .field label {
  color: rgba(255, 255, 255, 0.5);
}
.order-card .field input,
.order-card .field textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.field {
  margin-bottom: 12px;
  /* именно прямой label поля, а не вложенные (например, лейблы-чипы поводов) */
}
.field > label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid transparent;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease-in-out;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  background: var(--white);
}
.field textarea {
  height: auto;
  min-height: 96px;
  padding: 15px 18px;
  resize: vertical;
  line-height: 1.45;
}
.field select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%238d8d8d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.panel--dark .field input,
.panel--dark .field textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- чекбокс согласия на обработку ПДн ---------- */
.field--checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.field--checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--lime);
  cursor: pointer;
}
.field--checkbox a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.field--checkbox {
  /* ошибка — на всю ширину отдельной строкой под чекбоксом, а не третьим элементом в ряд */
}
.field--checkbox .field__error {
  flex-basis: 100%;
  margin-left: 28px;
}
.field--checkbox.is-invalid {
  margin-bottom: 10px;
}
.field--checkbox.is-invalid input[type=checkbox] {
  outline: 1px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.field__hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.field-required-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- переключатель из двух-трёх сегментов (радио, стилизованные под кнопки) ---------- */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle-group__option {
  position: relative;
}
.toggle-group__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.toggle-group__option span {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s ease;
}
.toggle-group__option input:checked + span {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.toggle-group__option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- повторяющиеся строки доп. услуг в форме заявки ---------- */
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 0 16px;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
}
.service-row .field {
  margin-bottom: 12px;
}
.service-row .field:last-of-type {
  margin-bottom: 0;
  grid-column: 1/-1;
}
.service-row .field input,
.service-row .field textarea {
  background: var(--white);
}
@media screen and (max-width: 560px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}
.service-row__remove {
  grid-column: 1/-1;
  justify-self: start;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 12px;
}
.form-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field.is-invalid {
  margin-bottom: 6px;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
}
.field__error {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--red);
}

/* ---------- баннер cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--ink);
  padding: 16px;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media screen and (max-width: 767.98px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}

/* ---------- flatpickr под дизайн проекта ---------- */
.flatpickr-wrapper {
  display: block;
  width: 100%;
}

/* штатная анимация сдвигает календарь на 20px — из-за этого автопрокрутка к нему считается неточно */
.flatpickr-calendar.animate.open {
  animation: fp-fade 0.2s ease-out;
}

@keyframes fp-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.flatpickr-calendar {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: none;
  padding: 16px;
  box-sizing: border-box;
  width: 320px;
  max-width: calc(100vw - 16px);
  scroll-margin: 84px 0 16px;
  /* календарь встроен в блок поля: ширина и левый край совпадают с полем */
}
.flatpickr-calendar.static {
  left: 0;
  width: 100%;
  min-width: 264px;
  max-width: min(320px, 100vw - 16px);
  top: calc(100% + 6px);
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after {
  display: none;
}

/* внутренние блоки flatpickr жёстко заданы в 307.875px — растягиваем по контейнеру */
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days {
  width: 100%;
}

.flatpickr-rContainer {
  display: block;
}

.flatpickr-days .dayContainer {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px 0;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
}

.flatpickr-months {
  position: relative;
  align-items: center;
  margin-bottom: 8px;
}
.flatpickr-months .flatpickr-month {
  color: var(--ink);
  fill: var(--ink);
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  /* по умолчанию flatpickr прибивает стрелки к top:0, а название месяца смещено
     своим внутренним отступом — из-за этого стрелки оказывались выше названия */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--ink);
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: var(--bg);
  fill: var(--ink);
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}

.flatpickr-current-month {
  font-size: 16px;
  font-weight: 600;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  appearance: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: var(--bg);
}
.flatpickr-current-month .numInputWrapper:hover {
  background: var(--bg);
}

span.flatpickr-weekday {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: none;
}

.flatpickr-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  flex-basis: auto;
  line-height: 1;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 500;
}
.flatpickr-day.today {
  border-color: var(--lime);
}
.flatpickr-day:hover, .flatpickr-day:focus {
  background: var(--bg);
  border-color: var(--bg);
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
  color: var(--muted-2);
}

.flatpickr-day.today:not(.selected) {
  color: var(--ink);
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media screen and (max-width: 1359.98px) {
  .page-layout {
    grid-template-columns: 1fr 340px;
    gap: 30px;
  }
}
@media screen and (max-width: 1023.98px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}
.page-layout__main {
  /* без этого широкий контент (например, длинная строка в корзине) распирает грид-колонку */
  min-width: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 36px;
}
@media screen and (max-width: 1023.98px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
  cursor: zoom-in;
}
.gallery__item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}
@media screen and (max-width: 1023.98px) {
  .gallery__item:first-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16/9;
  }
}
@media screen and (max-width: 767.98px) {
  .gallery__item:first-child {
    grid-column: span 2;
    aspect-ratio: 4/3;
  }
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
}
.gallery__more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.entity-head {
  margin-bottom: 28px;
}
.entity-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.entity-head__title {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
@media screen and (max-width: 1359.98px) {
  .entity-head__title {
    font-size: 44px;
  }
}
@media screen and (max-width: 767.98px) {
  .entity-head__title {
    font-size: 32px;
  }
}
.entity-head__sub {
  font-size: 17px;
  color: var(--muted);
  margin-top: 10px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 26px;
}
@media screen and (max-width: 767.98px) {
  .specs {
    grid-template-columns: 1fr;
  }
}

.spec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.spec > span:last-child {
  min-width: 0;
}
.spec__ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.spec__label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.spec__value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.panel {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 30px;
}
@media screen and (max-width: 767.98px) {
  .panel {
    padding: 24px 20px;
  }
}
.panel + .panel {
  margin-top: var(--gap);
}
.panel__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.panel--dark {
  background: var(--ink);
  color: var(--white);
}
.panel--dark .dl__t {
  color: rgba(255, 255, 255, 0.55);
}

.prose {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.prose p + p {
  margin-top: 14px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 12px;
  letter-spacing: -0.01em;
}
.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.prose li {
  position: relative;
  padding-left: 24px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted-2);
  transition: 0.3s ease-in-out;
}
.prose a:hover {
  text-decoration-color: var(--ink);
}

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

.lineup {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 20px 24px;
}
@media screen and (max-width: 767.98px) {
  .lineup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.lineup__main {
  flex: 1;
  min-width: 0;
}
.lineup__name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lineup__desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.lineup__price {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.lineup--accent {
  background: var(--lime);
}
.lineup--accent .lineup__desc {
  color: var(--ink-soft);
}

.timing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media screen and (max-width: 767.98px) {
  .timing {
    grid-template-columns: minmax(0, 1fr);
  }
}
.timing__item {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 22px;
  overflow-wrap: anywhere;
}
.timing__big {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.timing__cap {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.acc__item {
  border-bottom: 1px solid var(--line);
}
.acc__item:last-child {
  border-bottom: 0;
}
.acc__item.is-open .acc__btn i {
  transform: rotate(45deg);
  background: var(--lime);
}
.acc__item.is-open .acc__body {
  display: block;
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.acc__btn i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  transition: 0.3s ease-in-out;
}
.acc__body {
  display: none;
  padding-bottom: 24px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--r-md);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media screen and (max-width: 1023.98px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.photo-strip__item {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--line);
  cursor: zoom-in;
}
.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-strip__item:hover img {
  transform: scale(1.04);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media screen and (max-width: 767.98px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

.media-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  isolation: isolate;
  cursor: pointer;
  background: var(--ink);
}
.media-card[hidden] {
  display: none;
}
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.15) 40%, rgba(20, 20, 20, 0.8) 100%);
}
.media-card:hover img {
  transform: scale(1.04);
}
.media-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.media-card:hover .media-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}
.media-card__title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.media-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.media-card.is-playing {
  padding: 0;
  cursor: default;
}
.media-card.is-playing::after,
.media-card.is-playing img,
.media-card.is-playing .media-card__play,
.media-card.is-playing .media-card__title {
  display: none;
}

/* Остальные фото галереи — мозаика с чередованием размеров (цикл из 9 фото) */
.gallery-more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: var(--gap);
  margin: calc(var(--gap) - 36px) 0 36px;
}
@media screen and (max-width: 1023.98px) {
  .gallery-more {
    grid-auto-rows: 150px;
  }
}
@media screen and (max-width: 767.98px) {
  .gallery-more {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: 12px;
    margin-top: -24px;
  }
}
.gallery-more[hidden] {
  display: none;
}
.gallery-more__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
  animation: gallery-more-in 0.4s ease both;
}
.gallery-more__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-more__item:hover img {
  transform: scale(1.03);
}
.gallery-more__item {
  /* фото 1 из 9: крупное 2×2, рядом четыре обычных */
}
.gallery-more__item:nth-child(9n+1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-more__item {
  /* фото 6 из 9: высокое, 7 и 8 — рядом, 9 — крупное 2×2 */
}
.gallery-more__item:nth-child(9n+6) {
  grid-row: span 2;
}
.gallery-more__item:nth-child(9n+9) {
  grid-column: span 2;
  grid-row: span 2;
}
@media screen and (max-width: 767.98px) {
  .gallery-more__item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-more__item {
    /* на телефоне: широкое фото каждые 5 штук, высокое — каждое 5-е со сдвигом */
  }
  .gallery-more__item:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-more__item:nth-child(5n+4) {
    grid-row: span 2;
  }
}

@keyframes gallery-more-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ---------- подвал (портал) ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 56px 0 30px;
}
@media screen and (max-width: 767.98px) {
  .footer {
    padding: 40px 0 24px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media screen and (max-width: 1023.98px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
@media screen and (max-width: 767.98px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }
}
.footer__brand .logo {
  margin-bottom: 18px;
}
.footer__tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 300px;
}
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer__socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}
.footer__socials a svg {
  transition: 0.3s ease-in-out;
}
.footer__socials a:hover {
  background: var(--lime);
  color: var(--ink);
}
.footer__socials a:hover svg {
  fill: var(--ink);
}
.footer__col-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.3s ease-in-out;
}
.footer__col a:hover {
  color: var(--lime);
}
.footer__contact {
  font-size: 19px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__legal a {
  transition: 0.3s ease-in-out;
}
.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.footer__disclaimer {
  max-width: 720px;
}

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: 16px 0;
  overflow-y: auto;
  display: none;
}
@media screen and (max-width: 767.98px) {
  .mobile-menu {
    padding: 12px 0;
  }
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 26px;
}
.mobile-menu__list a {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 22px;
  font-weight: 600;
  background: var(--white);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 160%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 16px 28px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  z-index: 300;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.is-visible {
  transform: translate(-50%, 0);
}
.toast--success {
  background: var(--lime);
  color: var(--ink);
}
.toast--error {
  background: var(--red);
  color: var(--white);
}
@media screen and (max-width: 767.98px) {
  .toast {
    bottom: 20px;
    border-radius: var(--r-md);
  }
}

.reviews-panel {
  margin-top: 20px;
}
.reviews-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.reviews-panel__head .panel__title {
  margin: 0;
}
.reviews-panel__more {
  margin-top: 20px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rating-summary__score {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rating-summary__meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.rating-summary__stars {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media screen and (max-width: 767.98px) {
  .reviews {
    grid-template-columns: minmax(0, 1fr);
  }
}

.review[hidden] {
  display: none;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--r-sm);
  background: var(--bg);
}
.review__stars {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink);
}
.review__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.review__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.review__name {
  font-size: 15px;
  font-weight: 600;
}
.review__date {
  font-size: 13px;
  color: var(--muted);
}

.reviews-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.reviews-form__title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* оценка звёздами: радиокнопки в обратном порядке, чтобы «выбранная и все левее» красились одним селектором */
.field .stars-input {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}
.field .stars-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.field .stars-input label {
  display: block;
  margin: 0;
  font-size: 34px;
  line-height: 1;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.15s ease;
}
.field .stars-input input:checked ~ label,
.field .stars-input label:hover,
.field .stars-input label:hover ~ label {
  color: var(--ink);
}
.field .stars-input input:focus-visible + label {
  border-radius: 6px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field.is-invalid .stars-input {
  border-radius: 8px;
  outline: 1px solid var(--red);
  outline-offset: 4px;
}

/* ---------- карточки каталога ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media screen and (max-width: 1023.98px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 1023.98px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767.98px) {
  .cards--4 {
    grid-template-columns: 1fr;
  }
}
.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 767.98px) {
  .cards--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.card__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__media img {
  transform: scale(1.04);
}
.card__tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 56px);
}
.card__cart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.card__cart:hover {
  background: var(--white);
}
.card__cart.is-active {
  background: var(--lime);
}
.card__body {
  padding: 14px 4px 0;
}
.card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.45;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card__price {
  font-size: 16px;
  font-weight: 600;
}
.card__price span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.card__rating span {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- фильтры ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.chip__ico {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}
.chip:hover {
  box-shadow: inset 0 0 0 1px var(--muted-2);
}
.chip.is-active {
  background: var(--lime);
  box-shadow: inset 0 0 0 1px var(--lime);
}
.chip__ico {
  font-size: 16px;
  line-height: 1;
}

.filters {
  position: relative;
  z-index: 40;
}
.filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media screen and (max-width: 767.98px) {
  .filters__row {
    gap: 8px;
  }
}
.filters__submit {
  margin-left: auto;
  min-width: 290px;
}
@media screen and (max-width: 1023.98px) {
  .filters__submit {
    margin-left: 0;
    width: 100%;
  }
}

/* панель фильтров должна быть выше следующих секций (у .container свой z-index) */
.section--filters,
.section--filters > .container {
  position: relative;
  z-index: 30;
}

.filter {
  position: relative;
}
.filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
  transition: background 0.15s ease;
  white-space: nowrap;
}
.filter__btn:hover {
  background: #efefef;
}
.filter__btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
@media screen and (max-width: 767.98px) {
  .filter__btn {
    height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }
}
.filter.is-open .filter__btn {
  background: var(--lime);
}
.filter.is-open .filter__btn svg {
  transform: rotate(180deg);
}
.filter__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  min-width: 430px;
  max-height: 330px;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  display: none;
}
@media screen and (max-width: 1023.98px) {
  .filter__panel {
    min-width: min(430px, 84vw);
  }
}
@media screen and (max-width: 767.98px) {
  .filter__panel {
    padding: 20px;
  }
}
.filter.is-open .filter__panel {
  display: block;
}
.filter__panel-title {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}
.filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 22px;
  flex-wrap: wrap;
}
@media screen and (max-width: 767.98px) {
  .toolbar {
    gap: 12px;
  }
}
.toolbar__count {
  font-size: 15px;
  color: var(--muted);
}
.toolbar__reset {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.toolbar__sort select {
  height: 50px;
  padding: 0 44px 0 22px;
  border-radius: var(--r-pill);
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%232f2f2f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  font-size: 15px;
  cursor: pointer;
}
@media screen and (max-width: 767.98px) {
  .toolbar__sort select {
    height: 46px;
  }
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.tabs a,
.tabs button {
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  background: var(--white);
  color: var(--ink-soft);
  transition: 0.15s ease;
}
.tabs a:hover,
.tabs button:hover {
  background: #ececec;
}
@media screen and (max-width: 767.98px) {
  .tabs a,
  .tabs button {
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }
}
.tabs .is-active {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
}
.pagination a,
.pagination span {
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  font-size: 15px;
  transition: 0.15s ease;
}
.pagination a:hover {
  background: #ececec;
}
.pagination .is-active {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

/* ---------- корзина ---------- */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 16px;
}
@media screen and (max-width: 767.98px) {
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 16px;
    overflow: hidden;
  }
}
.cart-item__media {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--line);
}
.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__media {
  /* на мобильном фото занимает всю ширину карточки, а не маленькую миниатюру */
}
@media screen and (max-width: 767.98px) {
  .cart-item__media {
    width: auto;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 0;
  }
}
.cart-item__body {
  flex: 1;
  min-width: 0;
}
@media screen and (max-width: 767.98px) {
  .cart-item__body {
    padding: 14px 14px 0;
  }
}
.cart-item__title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
  color: var(--ink);
}
.cart-item__desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}
.cart-item__price {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
@media screen and (max-width: 767.98px) {
  .cart-item__price {
    padding: 10px 14px 0;
  }
}
.cart-item__remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.cart-item__remove:hover {
  background: var(--bg);
}
@media screen and (max-width: 767.98px) {
  .cart-item__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
  }
  .cart-item__remove:hover {
    background: var(--white);
  }
}
