:root {
  --yellow: #ffdc00;
  --purple: #7902aa;
  --purple-dark: #4d006e;
  --ink: #161218;
  --muted: #6c6470;
  --line: #e9e2ed;
  --paper: #fffdf8;
  --soft: #f6f0dc;
  --white: #fff;
  --shadow: 0 18px 50px rgba(43, 24, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  line-height: 1.5;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

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

.logo__image {
  display: block;
  width: 118px;
  height: auto;
  max-width: min(24vw, 118px);
}

.footer__brand-logo {
  display: block;
  width: 132px;
  height: auto;
  max-width: 100%;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav__link {
  color: var(--purple);
  font-size: 18px;
}

.nav__link.is-active {
  font-weight: 800;
}

.header__contacts {
  display: grid;
  gap: 2px;
  text-align: right;
  color: var(--purple);
  font-weight: 800;
}

.hero {
  background: radial-gradient(circle at 80% 20%, #a926de 0, var(--purple) 30%, var(--purple-dark) 100%);
  color: var(--white);
  padding: 76px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.page-title h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 650px;
  font-size: 20px;
}

.hero img {
  background: white;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(43, 24, 55, 0.14);
}

.button--primary {
  background: var(--yellow);
  color: var(--purple-dark);
  border-color: var(--yellow);
}

.button--ghost {
  background: transparent;
  color: var(--purple);
}

.hero .button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero__actions,
.section__head {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.section {
  padding: 70px 0;
}

.pain-block {
  padding: 58px 0;
  background: #fff8d8;
}

.pain-block .eyebrow {
  color: var(--purple);
}

.pain-block__shell {
  display: grid;
  gap: 24px;
  align-items: start;
}

.pain-block__lead {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pain-block__lead h2 {
  margin: 0;
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.pain-block__intro {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.pain-block__note {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(121, 2, 170, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9d9 0%, #fff3b1 100%);
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 800;
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pain-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pain-item__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 18px;
  background: #fff4b3;
  color: var(--purple);
}

.pain-item__icon svg {
  display: block;
  width: 26px !important;
  height: 26px !important;
  max-width: none !important;
  max-height: none !important;
  flex: none;
}

.pain-item__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pain-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.pain-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.section__head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section__head h2,
.quiz h2,
.page-text h1,
.product-panel h1,
.info-grid h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catalog-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card.is-hidden {
  display: none;
}

.product-card__image {
  display: block;
  background: #fff;
  aspect-ratio: 16 / 9;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-card__body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-card__actions .button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.product-card h3 {
  min-height: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
}

.product-card__specs {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card__specs li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-card__config {
  display: grid;
  gap: 8px;
}

.product-card__config .field {
  margin-bottom: 0;
}

.product-card__config .field span {
  font-size: 11px;
  margin-bottom: 4px;
}

.product-card__config select {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.price del {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.price--large {
  font-size: 34px;
}

.quiz {
  background: var(--yellow);
}

.quiz .eyebrow,
.benefits .eyebrow,
.about-section .eyebrow,
.faq-section .eyebrow {
  color: var(--purple);
}

.quiz__box {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  background: var(--white);
  padding: clamp(22px, 5vw, 54px);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.quiz-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.quiz-form .field {
  margin-bottom: 0;
}

.quiz-form .button,
.quiz-form .form-status {
  grid-column: 1 / -1;
}

.quiz-form .button {
  justify-self: start;
  min-width: 190px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d8cedd;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  margin-top: 14px;
  min-height: 22px;
  color: var(--purple);
  font-weight: 900;
}

.form-status.is-error {
  color: #b00020;
}

.benefits {
  background: #fff8d8;
  padding: 58px 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.benefits__grid article,
.contact-card,
.map-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefits__grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
}

.benefit-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 6px;
}

.benefits__grid strong {
  display: block;
  color: var(--purple);
  font-size: 24px;
  line-height: 1.15;
}

.benefits .section__head h2 {
  max-width: 920px;
}

.benefits .section__head,
.photo-section .section__head,
.clients-section .section__head {
  justify-content: center;
  text-align: center;
}

.benefits .section__head h2,
.photo-section .section__head h2,
.clients-section .section__head h2 {
  margin-inline: auto;
}

.benefits__grid p,
.about-section p {
  color: var(--muted);
}

.benefits__grid p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.catalog-home {
  background: radial-gradient(circle at top right, #9b19d1 0, var(--purple) 34%, var(--purple-dark) 100%);
  color: white;
}

.catalog-home .page-title,
.catalog-home .catalog-layout {
  padding-left: 0;
  padding-right: 0;
}

.catalog-home .eyebrow,
.catalog-home .page-title .eyebrow {
  color: var(--yellow);
}

.catalog-home .page-title p:not(.eyebrow) {
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 24px;
}

.page-title--compact {
  padding-top: 4px;
}

.about-section {
  background: var(--paper);
  padding: 58px 0;
}

.about-section__grid,
.contacts-section__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.about-section__grid {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-section {
  background: var(--yellow);
  padding: 62px 0;
}

.clients-section {
  background: var(--paper);
  padding: 62px 0;
}

.site-slider {
  position: relative;
}

.photo-section .site-slider,
.clients-section .site-slider {
  width: min(100%, 590px);
  margin: 0 auto;
}

.site-slider__viewport {
  overflow: hidden;
  border-radius: 28px;
}

.site-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.site-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  background: white;
}

.site-slider__slide img {
  width: 100%;
  aspect-ratio: 86 / 55;
  object-fit: cover;
  background: white;
}

.site-slider--clients .site-slider__slide img {
  object-fit: contain;
  padding: 18px;
}

.site-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.site-slider__arrow--prev {
  left: 18px;
}

.site-slider__arrow--next {
  right: 18px;
}

.site-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.site-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--purple);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.site-slider__dot.is-active {
  background: var(--purple);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid img {
  grid-column: span 3;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
}

.photo-grid img:nth-child(1),
.photo-grid img:nth-child(5) {
  grid-column: span 6;
}

.photo-grid--clients img {
  grid-column: span 3;
  object-fit: contain;
  padding: 8px;
}

.photo-grid--clients img:nth-child(1),
.photo-grid--clients img:nth-child(5) {
  grid-column: span 3;
}

.faq-section {
  background: #fff8d8;
}

.faq-section__box {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-list {
  margin-top: 22px;
}

.contacts-section {
  background: var(--purple);
  color: white;
  padding: 70px 0;
}

.contacts-section a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card {
  color: var(--ink);
}

.contact-messengers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-messengers a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  font-weight: 900;
  text-decoration: none;
}

.map-card {
  overflow: hidden;
  padding: 0;
  min-height: 260px;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
}

.mobile-catalog-link {
  display: none;
}

.page-title {
  padding: 56px 0 24px;
}

.page-title .eyebrow {
  color: var(--purple);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 80px;
}

.filters {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--purple);
  color: white;
}

.filters .button {
  width: 100%;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  font-weight: 800;
}

.check input {
  width: 22px;
  min-height: 22px;
}

.filters__count {
  margin: 18px 0 0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 38px;
  padding: 42px 0 34px;
}

.back-link {
  grid-column: 1 / -1;
  color: var(--purple);
  font-weight: 900;
}

.gallery,
.product-panel,
.faq-panel,
.spec-panel,
.modal__box,
.page-text,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery {
  padding: 20px;
}

.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.gallery__stage > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  cursor: pointer;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  border-color: var(--purple);
  outline: none;
}

.gallery__arrow--prev {
  left: 14px;
}

.gallery__arrow--next {
  right: 14px;
}

.gallery__counter {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  max-height: 246px;
  overflow: auto;
  padding-right: 2px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.thumb.is-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}

.thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-panel {
  padding: clamp(22px, 4vw, 38px);
}

.product-panel p {
  color: var(--muted);
}

.config {
  margin: 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 82px;
}

.faq-panel,
.spec-panel {
  padding: 22px;
}

.faq-panel h2,
.spec-panel h2 {
  color: #e52626;
  font-size: 18px;
  text-align: center;
  margin-bottom: 18px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::after {
  content: "+";
}

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

.faq-item p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.spec-panel {
  order: 2;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.45fr);
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.spec-row strong {
  font-weight: 800;
}

.modal {
  width: min(680px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal__box {
  position: relative;
  padding: 28px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.order-summary {
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
  white-space: pre-wrap;
  font: inherit;
}

.page-text {
  margin-top: 44px;
  margin-bottom: 80px;
  padding: clamp(22px, 5vw, 48px);
}

.page-text p {
  font-size: 18px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--purple);
  text-decoration: none;
}

.breadcrumbs__sep {
  color: rgba(0, 0, 0, 0.28);
}

.article-links {
  padding: 0 0 72px;
}

.article-links__box {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8d8;
  box-shadow: var(--shadow);
}

.article-links__box h2 {
  margin: 0 0 10px;
}

.article-links__box p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article-links__box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.article-links__box a {
  color: var(--purple);
  font-weight: 800;
}

.section__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.contact-form {
  max-width: 620px;
  padding: 24px;
  margin-top: 28px;
}

.blog-page {
  padding: 52px 0 86px;
}

.blog-hero {
  max-width: 900px;
  text-align: center;
}

.blog-hero h1,
.blog-article h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.blog-hero p:last-child,
.blog-article__header p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.blog-page .blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.blog-page .blog-card {
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
}

.blog-page .blog-card__image {
  border-radius: 18px;
}

.blog-page .blog-card__image img {
  aspect-ratio: 16 / 9;
}

.blog-page .blog-card time {
  font-size: 12px;
  line-height: 1.2;
}

.blog-page .blog-card h2 {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.56em;
}

.blog-page .blog-card p {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.8em;
}

.blog-page .blog-card .button {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.blog-card,
.blog-article > article,
.blog-related {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
}

.blog-card__image {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.blog-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card time,
.blog-article time {
  color: var(--purple);
  font-weight: 900;
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.blog-card p {
  color: var(--muted);
  font-size: 17px;
}

.blog-card .button {
  justify-self: start;
  align-self: end;
}

.home-blog-section .container {
  width: min(100% - 24px, 920px);
}

.home-blog-section .section__head {
  max-width: 720px;
  margin-inline: auto;
}

.home-blog-section .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 20px auto 0;
}

.home-blog-section .blog-card {
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
}

.home-blog-section .blog-card__image {
  border-radius: 16px;
}

.home-blog-section .blog-card__image img {
  aspect-ratio: 16 / 8;
}

.home-blog-section .blog-card time {
  font-size: 12px;
}

.home-blog-section .blog-card h2 {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-blog-section .blog-card p {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-section .blog-card .button {
  padding: 10px 14px;
  font-size: 13px;
  min-height: 40px;
}

.blog-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 44px 0 86px;
}

.blog-article .back-link {
  grid-column: 1 / -1;
}

.blog-article > article {
  padding: clamp(24px, 5vw, 54px);
}

.blog-article__header {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.blog-cover {
  margin: 6px 0 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.blog-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-article__content {
  color: var(--ink);
  font-size: 18px;
}

.blog-article__content section + section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.blog-article__content h2 {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.blog-article__content p,
.blog-article__content li {
  color: var(--muted);
}

.blog-article__content li + li {
  margin-top: 8px;
}

.blog-products {
  margin-top: 42px;
}

.blog-products h2 {
  margin: 0 0 16px;
  color: var(--purple-dark);
}

.mini-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-product-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 14px;
}

.mini-product-card__image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.mini-product-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.mini-product-card__body {
  display: grid;
  gap: 10px;
}

.mini-product-card__body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.mini-product-card__body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.mini-product-card__price {
  margin: 0;
  color: var(--purple);
  font-weight: 900;
}

.table-wrapper {
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.post-table th,
.post-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.post-table th {
  background: #fff8d8;
  color: var(--purple-dark);
}

.blog-cta {
  margin-top: 42px;
  padding: 24px;
  border-radius: 22px;
  background: var(--yellow);
}

.blog-cta strong {
  display: block;
  font-size: 24px;
}

.blog-related {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 24px;
}

.blog-related h2 {
  margin-top: 0;
  color: var(--purple-dark);
}

.blog-related ul {
  display: grid;
  gap: 14px;
  padding-left: 18px;
}

.blog-related a {
  color: var(--purple);
  font-weight: 900;
}

.footer {
  padding: 42px 0;
  background: var(--yellow);
  color: var(--ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer p {
  color: var(--ink);
}

.footer a,
.footer strong {
  color: var(--purple);
}

@media (max-width: 980px) {
  .header__inner,
  .hero__grid,
  .quiz__box,
  .catalog-layout,
  .product-hero,
  .info-grid,
  .about-section__grid,
  .contacts-section__grid,
  .footer__grid,
  .blog-grid,
  .blog-article {
    grid-template-columns: 1fr;
  }

  .blog-related {
    position: static;
  }

  .blog-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .quiz-form {
    grid-template-columns: 1fr;
  }

  .header__contacts {
    text-align: left;
  }

  .filters {
    position: static;
  }

  .catalog-grid,
  .catalog-grid--compact,
  .pain-list,
  .benefits__grid,
  .photo-grid,
  .mini-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid img,
  .photo-grid img:nth-child(1),
  .photo-grid img:nth-child(5),
  .photo-grid--clients img,
  .photo-grid--clients img:nth-child(1),
  .photo-grid--clients img:nth-child(5) {
    grid-column: span 1;
  }

  .home-blog-section .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-panel {
    order: 1;
  }

  .faq-panel {
    order: 2;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header__inner {
    gap: 10px;
    padding: 10px 0;
  }

  .logo__image {
    width: 92px;
    max-width: 30vw;
  }

  .blog-page .blog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .catalog-grid--compact,
  .pain-list,
  .thumbs {
    grid-template-columns: 1fr;
  }

  .mini-product-grid {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 206px;
  }

  .gallery {
    padding: 12px;
  }

  .gallery__arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .gallery__arrow--prev {
    left: 8px;
  }

  .gallery__arrow--next {
    right: 8px;
  }

  .product-card h3 {
    min-height: auto;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero {
    padding: 42px 0;
  }

  .pain-block {
    padding-top: 18px;
  }

  .pain-item {
    gap: 12px;
    padding: 16px;
  }

  .pain-item__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 14px;
  }

  .pain-item__icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .pain-block__note {
    width: 100%;
    border-radius: 18px;
    white-space: normal;
  }

  .site-slider__arrow {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .site-slider__arrow--prev {
    left: 8px;
  }

  .site-slider__arrow--next {
    right: 8px;
  }

  .site-slider--clients .site-slider__slide img {
    padding: 8px;
  }

  .photo-section .site-slider,
  .clients-section .site-slider {
    width: 100%;
  }

  .benefits__grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-section .blog-grid {
    grid-template-columns: 1fr;
  }

  .product-card__actions .button {
    width: 100%;
  }
}
