/* =====================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ===================================== */

   :root {
  --ink: #30323b;
  --muted: #777b88;
  --blue: #3976f6;
  --blue-dark: #245bd3;
  --soft: #f4f4f6;
  --line: #e6e7ec;
  --orange: #ff8355;
  --radius: 28px;
  --header-offset: 130px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
summary,
select {
  cursor: pointer;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 25px;
  font-size: clamp(48px, 5.8vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2.5px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
}

h3 {
  line-height: 1.2;
}

address {
  font-style: normal;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-top: 105px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 34px;
}

.section-heading > div {
  flex: 1;
  min-width: 0;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  flex: 0 1 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 14px 23px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.button:disabled:hover {
  background: var(--blue);
  transform: none;
}

.button-white {
  background: #fff;
  color: var(--ink);
}

.button-white:hover {
  background: #f2f5ff;
}

.button-soft {
  background: #edf2ff;
  color: var(--blue-dark);
}

.button-soft:hover {
  background: #e0e9ff;
}

.text-link {
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* =====================================
   ШАПКА И КОМПАКТНОЕ МЕНЮ
   ===================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.45);
  border-bottom-color: rgba(180, 190, 210, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(25, 40, 70, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 104px;
  padding-block: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 5px;
}

.logo-icon i {
  display: block;
  width: 13px;
  height: 23px;
  border-top: 5px solid #76cdaa;
  border-right: 5px solid #76cdaa;
  border-radius: 3px;
  transform: rotate(45deg);
}

.logo-icon i:nth-child(2) {
  border-color: #e7b67a;
}

.logo-icon i:nth-child(3) {
  border-color: #9b90e2;
}

.logo-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.logo-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2px;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.navigation a {
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

.navigation a:hover,
.navigation a[aria-current="page"],
.header-phone:hover {
  color: var(--blue);
}

.header-phone {
  justify-self: end;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

@supports not (
  (backdrop-filter: blur(18px)) or
  (-webkit-backdrop-filter: blur(18px))
) {
  .header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
  }
}

/* =====================================
   ПЕРВЫЙ ЭКРАН
   ===================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: #fff8e8;
}

/*
  Фоновый слой не участвует в обычном потоке.
  Поэтому он не может вытолкнуть текст вниз.
*/
.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(800px, 35.62vw, 1000px);
  padding-block: 70px;
}

.hero-copy {
  width: min(500px, 48%);
  min-width: 0;
}

.hero .eyebrow {
  margin-bottom: 24px;
  color: #795315;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 1.4px;
}

#hero-title {
  margin: 0 0 28px;
  color: #252936;
  font-size: clamp(48px, 5.8vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2.5px;
}

#hero-title span {
  display: block;
}

.hero-description {
  max-width: 490px;
  margin: 0 0 30px;
  color: #51505a;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
}

.hero .button-white {
  border: 1px solid #eadcc0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(111, 80, 25, 0.08);
}

.hero .button-white:hover {
  background: #fff9ed;
}

.hero-link {
  border-bottom: 1px solid #b59762;
  color: #604b2d;
  font-size: 16px;
}

.hero-link:hover {
  color: #252936;
}

.hero-caption {
  margin: 24px 0 0;
  color: #72634e;
  font-size: 13px;
  line-height: 1.6;
}

/* =====================================
   УСЛУГИ И АУДИТОРИИ
   ===================================== */

.service-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft);
}

.service-card:first-child {
  background: #edf2ff;
}

.service-number {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.service-card h3,
.audience-card h3 {
  margin-bottom: 16px;
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.service-card p,
.audience-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.service-card p {
  margin-bottom: 24px;
}

.service-card ul {
  margin: 0 0 27px;
  padding-left: 18px;
  color: #5e6472;
  font-size: 16px;
  line-height: 1.7;
}

.service-card li {
  margin-bottom: 8px;
}

.service-card .text-link {
  margin-top: auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience-card {
  min-width: 0;
  padding: 38px;
  border-radius: 30px;
  background: #eaf0ff;
}

.audience-card:nth-child(2) {
  background: #f0ecff;
}

.audience-label {
  display: inline-block;
  margin-bottom: 23px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #fff9;
  color: #5774b5;
  font-size: 13px;
}

.audience-card:nth-child(2) .audience-label {
  color: #7b65a8;
}

.audience-card p {
  max-width: 425px;
  color: #68728c;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span {
  padding: 7px 11px;
  border: 1px solid #404047;
  border-radius: 10px;
  background: #333339;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

/* =====================================
   ПЕРЕХОД В КАТАЛОГ
   ===================================== */

.catalog-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding: 44px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 0 0, #dbe5ff, transparent 65%),
    #edf2ff;
}

.catalog-preview-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
}

.catalog-preview-copy > p {
  max-width: 440px;
  margin-bottom: 27px;
  color: #68728c;
  font-size: 17px;
  line-height: 1.7;
}

.catalog-preview-links {
  display: grid;
  align-content: center;
  gap: 12px;
}

.catalog-preview-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #ffffffb8;
  transition: background 180ms ease, transform 180ms ease;
}

.catalog-preview-links > a:hover {
  background: #fff;
  transform: translateY(-3px);
}

.catalog-preview-links strong,
.catalog-preview-links small {
  display: block;
}

.catalog-preview-links strong {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.4;
}

.catalog-preview-links small {
  color: var(--muted);
  font-size: 14px;
}

.catalog-preview-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 13px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 23px;
}

/* =====================================
   О КОМПАНИИ И ОТЗЫВЫ
   ===================================== */

.company-dark-zone {
  margin-top: 105px;
  background: #333339;
  color: #fff;
}

.about-dark {
  padding: 90px 0 65px;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 65px;
}

.about-layout > * {
  min-width: 0;
}

.company-dark-zone .eyebrow,
.about-accent {
  color: var(--orange);
}

.company-dark-zone h2 {
  color: #fff;
}

.about-copy > p:not(.eyebrow) {
  color: #d0d0d8;
  font-size: 18px;
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.stat {
  min-width: 0;
  min-height: 205px;
  padding: 29px;
  border: 1px solid #5a5a64;
  border-radius: 24px;
  background: #404047;
}

.stat b {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -3px;
}

.stat span {
  display: block;
  max-width: 220px;
  color: #e0e0e7;
  font-size: 16px;
  line-height: 1.6;
}

.about-note {
  padding: 29px;
  border: 1px solid #5a5a64;
  border-radius: 24px;
  color: #d0d0d8;
  font-size: 17px;
  line-height: 1.8;
}

.about-note strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

.company-details {
  margin-top: 19px;
  border-top: 1px solid #5a5a64;
}

.company-details > summary {
  padding: 18px 0;
  color: #f0f0f5;
  font-size: 17px;
}

.company-details > summary:hover {
  color: var(--orange);
}

.company-details p,
.company-details li {
  color: #d0d0d8;
  font-size: 16px;
  line-height: 1.8;
}

.company-details ul {
  margin-top: 0;
  padding-left: 20px;
}

.company-dark-zone :focus-visible {
  outline-color: var(--orange);
}

#reviews {
  padding: 65px 0 90px;
  border-top: 1px solid #53535d;
}

.company-dark-zone .section-heading > p {
  color: #d0d0d8;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid #5a5a64;
  border-radius: 26px;
  background: #404047;
}

.review-label {
  color: #ffc1a8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-card > p {
  margin: 22px 0;
  color: #e0e0e7;
  font-size: 18px;
  line-height: 1.7;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #60606b;
}

.review-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: #57443e;
  color: #ffc1a8;
  font-size: 12px;
}

.review-person strong {
  display: block;
  font-size: 15px;
}

.review-person small {
  color: #c4c4cf;
  font-size: 13px;
}

.company-dark-zone .note {
  color: #bdbdc9;
}

/* =====================================
   РАСКРЫВАЮЩИЕСЯ БЛОКИ И FAQ
   ===================================== */

.company-details > summary,
.legal-document > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
}

.company-details > summary::-webkit-details-marker,
.legal-document > summary::-webkit-details-marker,
.faq-item > summary::-webkit-details-marker {
  display: none;
}

.company-details > summary::after,
.legal-document > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-right: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.company-details > summary::after {
  color: var(--orange);
}

.company-details[open] > summary::after,
.legal-document[open] > summary::after {
  transform: rotate(225deg);
}

.details-content {
  display: flow-root;
}

.faq {
  max-width: 950px;
  margin-inline: auto;
}

.faq > h2 {
  margin-bottom: 39px;
  text-align: center;
}

.faq-item {
  margin-bottom: 9px;
  border-radius: 25px;
  background: var(--soft);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 24px 28px;
  list-style: none;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.faq-item > summary::after {
  content: "+";
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  font-size: 29px;
  font-weight: 300;
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-answer {
  max-width: 800px;
  padding: 0 28px 28px;
  color: #737887;
  font-size: 17px;
  line-height: 1.8;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================
   КОНТАКТЫ И ФОРМА
   ===================================== */

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px;
  padding: 50px;
  border-radius: 32px;
  background: #eaf0ff;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 380px;
  color: #727f9b;
  font-size: 18px;
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 30px;
}

.contact-list a {
  font-size: 21px;
  letter-spacing: -0.3px;
}

.contact-list a:hover {
  color: var(--blue-dark);
}

.contact-list .email {
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: 19px;
}

.contact-list address {
  margin-top: 9px;
  color: #75809a;
  font-size: 16px;
}

.contact-form {
  min-width: 0;
  padding: 28px;
  border-radius: 23px;
  background: #fff;
}

.contact-form h3 {
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}

.form-description {
  color: var(--muted);
  font-size: 15px;
}

label {
  display: block;
  margin: 17px 0 7px;
  color: #636a79;
  font-size: 15px;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e2e5ed;
  border-radius: 11px;
  background: #fafbfe;
  color: var(--ink);
  font-size: 16px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  margin-top: 20px;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: #737987;
  font-size: 13px;
  line-height: 1.6;
}

/* =====================================
   ПОДВАЛ И ДОКУМЕНТЫ
   ===================================== */

.footer {
  margin-top: 55px;
  padding: 45px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom,
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-simple {
  justify-content: flex-end;
  padding: 4px 0 10px;
}

.footer-email {
  color: var(--blue-dark);
  font-size: 18px;
}

.footer a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 30px;
  color: #7b808c;
  font-size: 12px;
}

.legal-documents {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-document {
  border-bottom: 1px solid var(--line);
}

.legal-document > summary {
  padding: 20px 0;
  color: #747b8b;
  font-size: 16px;
}

.legal-document > summary:hover,
.legal-document[open] > summary {
  color: var(--ink);
}

.legal-content {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fafbfe;
  color: #616978;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.legal-content h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.legal-content h3 {
  margin: 30px 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.legal-content p {
  margin: 0 0 13px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 7px;
}

.legal-content a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-subtitle {
  color: var(--ink);
}

.legal-date {
  color: var(--muted);
  font-size: 13px;
}

.company-statuses {
  margin-top: 35px;
  padding: 45px 0 65px;
  background: var(--soft);
}

.company-statuses h2 {
  margin: 0 0 40px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.8px;
  text-align: center;
}

.statuses-placeholder {
  padding: 22px;
  border: 1px dashed #c7c9d2;
  border-radius: 16px;
}

.statuses-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.statuses-placeholder-grid span {
  display: grid;
  min-height: 85px;
  place-items: center;
  border-radius: 12px;
  background: #e9e9ee;
  color: #7c8190;
  font-size: 22px;
}

.statuses-placeholder p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.company-statuses-image {
  display: block;
  width: 100%;
  height: auto;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(57, 118, 246, 0.25);
  transition: background 180ms ease, transform 180ms ease;
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 25px;
  height: 25px;
}

/* =====================================
   СТРАНИЦА КАТАЛОГА
   ===================================== */

.catalog-main {
  padding-top: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 32px;
}

.catalog-heading h1 {
  margin-bottom: 0;
}

.catalog-heading > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.catalog-sidebar {
  position: sticky;
  top: var(--header-offset);
  min-width: 0;
}

.catalog-menu {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.catalog-menu h2 {
  margin: 8px 10px 18px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.catalog-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #626b7d;
  font-size: 14px;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.catalog-category + .catalog-category {
  margin-top: 5px;
}

.catalog-category:hover {
  background: var(--soft);
}

.catalog-category[aria-pressed="true"] {
  background: #edf2ff;
  color: var(--blue-dark);
}

.category-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  padding-inline: 5px;
  border-radius: 9px;
  background: var(--soft);
  font-size: 12px;
}

.catalog-category[aria-pressed="true"] .category-count {
  background: #fff;
}

.catalog-help {
  margin-top: 17px;
  padding: 25px;
  border-radius: 26px;
  background: #f0ecff;
}

.catalog-help h3 {
  margin-bottom: 12px;
  font-size: 23px;
  letter-spacing: -0.6px;
}

.catalog-help p {
  margin-bottom: 20px;
  color: #79718e;
  font-size: 14px;
  line-height: 1.7;
}

.catalog-help .button {
  width: 100%;
  padding-inline: 12px;
  font-size: 14px;
}

.catalog-content {
  min-width: 0;
}

.catalog-search {
  position: relative;
  margin: 0 0 20px;
}

.catalog-search svg {
  position: absolute;
  top: 19px;
  left: 20px;
  width: 22px;
  height: 22px;
  color: #8a96b0;
  pointer-events: none;
}

.catalog-search input {
  min-height: 60px;
  padding: 17px 20px 17px 55px;
  border-color: var(--line);
  border-radius: 18px;
  background: #f7f8fc;
}

.catalog-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  align-items: center;
  gap: 16px;
  min-height: 285px;
  padding: 34px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, #ffffff65, transparent 46%),
    linear-gradient(115deg, #bbcdff, #a4bafa);
}

.catalog-banner-copy {
  position: relative;
  z-index: 2;
}

.catalog-banner .eyebrow {
  color: #405995;
  font-size: 11px;
}

.catalog-banner h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.catalog-banner-copy > p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 22px;
  color: #4c608d;
  font-size: 15px;
  line-height: 1.7;
}

.catalog-banner .button {
  min-height: 46px;
  font-size: 14px;
}

.catalog-banner-art {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
}

.catalog-banner-art::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #ffffff12;
}

.catalog-banner-tile {
  position: relative;
  display: grid;
  width: 145px;
  height: 170px;
  place-content: center;
  border: 1px solid #fff;
  border-radius: 25px;
  background: linear-gradient(135deg, #fff, #eff3ff);
  box-shadow: 16px 18px 0 #537cdb26;
  transform: rotate(-9deg);
  text-align: center;
}

.catalog-banner-tile strong {
  color: var(--blue);
  font-size: 67px;
  line-height: 1;
  letter-spacing: -5px;
}

.catalog-banner-tile span {
  margin-top: 14px;
  color: #7282a6;
  font-size: 11px;
}

.catalog-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.catalog-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 145px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: #edf2ff;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.catalog-shortcut:nth-child(2) {
  background: #f0ecff;
}

.catalog-shortcut:nth-child(3) {
  background: #eaf5f1;
}

.catalog-shortcut:hover {
  transform: translateY(-3px);
}

.catalog-shortcut[aria-pressed="true"] {
  border-color: var(--blue);
}

.catalog-shortcut-icon {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1;
}

.catalog-shortcut strong {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.catalog-shortcut small {
  margin-top: auto;
  color: #768098;
  font-size: 12px;
}

.catalog-results {
  padding-top: 10px;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}

.catalog-toolbar h2 {
  max-width: 470px;
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -1px;
}

.catalog-result-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-sort label {
  margin: 0 0 6px;
  font-size: 12px;
}

.catalog-sort select {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 32px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #c8d8ff;
  box-shadow: 0 14px 32px #425b8b10;
}

.product-art {
  position: relative;
  display: grid;
  height: 180px;
  margin-bottom: 18px;
  overflow: hidden;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 40%, #fff, transparent 70%),
    #f4f5f9;
}

.product-art[data-kind="government"] {
  background: #f1edfa;
}

.product-art[data-kind="cloud"] {
  background: #eaf2ff;
}

.product-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 108px;
  height: 133px;
  padding: 14px;
  border: 1px solid #ffe589;
  border-radius: 10px 5px 5px 10px;
  background: linear-gradient(130deg, #fff19e, #ffd650);
  box-shadow: 8px 5px 0 #e8b82b, 13px 13px 22px #a58c3c24;
  transform: rotate(-7deg);
}

.product-box small {
  color: #78591f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-box strong {
  color: #c54b39;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -3px;
}

.product-box span {
  color: #846c31;
  font-size: 8px;
}

.product-cloud {
  position: relative;
  display: grid;
  width: 140px;
  height: 73px;
  margin-top: 30px;
  place-items: center;
  border-radius: 40px;
  background: linear-gradient(135deg, #7ba7ff, #3976f6);
  box-shadow: 0 14px 20px #3976f62b;
  isolation: isolate;
}

.product-cloud::before,
.product-cloud::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: #76a2ff;
}

.product-cloud::before {
  top: -36px;
  left: 20px;
  width: 76px;
  height: 76px;
}

.product-cloud::after {
  top: -19px;
  right: 10px;
  width: 61px;
  height: 61px;
  background: #5a8ef9;
}

.product-cloud strong {
  color: #fff;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -2px;
}

.product-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f1f4fb;
  color: #65718a;
  font-size: 11px;
  line-height: 1.4;
}

.product-card h3 {
  margin-bottom: 11px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.product-description {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.product-bottom {
  margin-top: auto;
}

.product-price {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.product-price-note {
  min-height: 35px;
  margin-bottom: 16px;
  color: #737987;
  font-size: 11px;
  line-height: 1.5;
}

.product-card .button {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  border-radius: 13px;
  font-size: 13px;
}

.catalog-empty {
  padding: 45px 28px;
  border-radius: 25px;
  background: var(--soft);
  text-align: center;
}

.catalog-empty h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.3;
}

.catalog-empty p {
  max-width: 490px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 16px;
}

.catalog-disclaimer {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.catalog-disclaimer a {
  color: var(--blue-dark);
  text-decoration: underline;
}

.catalog-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* =====================================
   АДАПТИВНОСТЬ
   ===================================== */

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-banner {
    grid-template-columns: minmax(0, 1fr) 140px;
    padding: 28px;
  }

  .catalog-banner-tile {
    width: 110px;
    height: 145px;
  }

  .catalog-banner-art::before {
    width: 150px;
    height: 150px;
  }

  .catalog-shortcut {
    padding: 16px;
  }

  /* На узком экране изображение не накладывается на текст */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    order: 0;
    min-height: 0;
    padding-block: 48px 30px;
  }

  .hero-copy {
    width: min(500px, 100%);
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 1;
    flex: none;
    width: 100%;
    height: clamp(280px, 45vw, 450px);
  }

  .hero-media img {
    object-position: right center;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    min-height: 0;
    padding-block: 16px;
  }

  .header-phone {
    grid-column: 2;
    grid-row: 1;
  }

  .navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding: 5px 3px 8px;
    font-size: 16px;
  }

  .navigation a:focus-visible {
    outline-offset: 2px;
  }

  .service-card {
    padding: 25px;
  }

  .about-dark {
    padding-top: 70px;
  }

  .about-layout {
    gap: 35px;
  }

  .stat {
    padding: 24px;
  }

  .contact-panel {
    gap: 30px;
    padding: 35px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section-heading > p {
    flex: auto;
    max-width: 650px;
  }
}

@media (max-width: 850px) {
  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .catalog-heading > p {
    max-width: 650px;
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 20px;
  }

  .catalog-menu h2 {
    display: none;
  }

  .catalog-category {
    width: auto;
    flex-shrink: 0;
    padding: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .catalog-category + .catalog-category {
    margin-top: 0;
  }

  .catalog-help {
    display: none;
  }

  .catalog-banner {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .service-grid,
  .review-grid,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding-top: 70px;
  }

  h1,
  #hero-title {
    font-size: clamp(44px, 10.5vw, 60px);
    line-height: 1.06;
    letter-spacing: -1.5px;
  }

  h2 {
    font-size: clamp(36px, 8.5vw, 46px);
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.3px;
  }

  .hero .eyebrow {
    font-size: 12px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-caption {
    font-size: 12px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 27px;
  }

  .section-heading > p,
  .service-card p,
  .audience-card p,
  .about-copy > p:not(.eyebrow),
  .review-card > p,
  .contact-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .audience-grid,
  .catalog-preview,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    padding: 28px;
  }

  .service-number {
    margin-bottom: 23px;
  }

  .audience-card {
    padding: 29px;
  }

  .catalog-preview {
    gap: 28px;
    padding: 27px 22px;
    border-radius: 25px;
  }

  .catalog-preview-links > a {
    padding: 19px;
  }

  .company-dark-zone {
    margin-top: 70px;
  }

  .about-dark {
    padding: 55px 0 45px;
  }

  .about-layout {
    gap: 30px;
  }

  .stat-grid {
    gap: 12px;
  }

  .stat {
    min-height: 180px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .stat b {
    font-size: 48px;
  }

  .stat span {
    font-size: 14px;
  }

  .about-note {
    padding: 24px;
    border-radius: 20px;
  }

  .company-details > summary {
    font-size: 16px;
  }

  #reviews {
    padding: 45px 0 60px;
  }

  .faq > h2 {
    margin-bottom: 27px;
  }

  .faq-item {
    border-radius: 21px;
  }

  .faq-item > summary {
    gap: 15px;
    min-height: 86px;
    padding: 19px;
    font-size: 17px;
    letter-spacing: -0.2px;
  }

  .faq-item > summary::after {
    width: 39px;
    height: 39px;
    border-radius: 13px;
    font-size: 25px;
  }

  .faq-answer {
    padding: 0 20px 24px;
    font-size: 16px;
  }

  .contact-panel {
    gap: 30px;
    padding: 27px 20px;
    border-radius: 25px;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-list a {
    font-size: 20px;
  }

  .footer {
    margin-top: 40px;
    padding: 30px 0 80px;
  }

  .footer-simple {
    justify-content: flex-start;
  }

  .legal-content {
    font-size: 15px;
  }

  .legal-content h3 {
    font-size: 16px;
  }

  .company-statuses {
    margin-top: 20px;
    padding: 35px 0 45px;
  }

  .company-statuses h2 {
    margin-bottom: 28px;
  }

  .statuses-placeholder {
    padding: 16px;
  }

  .statuses-placeholder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .statuses-placeholder-grid span {
    min-height: 65px;
  }

  .back-to-top {
    right: 17px;
    bottom: 17px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: 10px 12px;
    padding-block: 12px;
  }

  .logo {
    gap: 8px;
  }

  .logo-name {
    font-size: 23px;
  }

  .logo-name small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }

  .logo-icon i {
    width: 10px;
    height: 18px;
    border-width: 4px;
  }

  .header-phone {
    font-size: 13px;
  }

  .navigation {
    gap: 20px;
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  .catalog-main {
    padding-top: 22px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .catalog-heading > p {
    font-size: 16px;
  }

  .catalog-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 27px;
  }

  .catalog-banner-art {
    display: none;
  }

  .catalog-banner h2 {
    font-size: 34px;
  }

  .catalog-shortcuts {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .catalog-shortcut {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 0;
    padding: 17px;
  }

  .catalog-shortcut-icon {
    grid-row: span 2;
    margin: 0;
  }

  .catalog-shortcut strong {
    margin-bottom: 3px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar h2 {
    font-size: 32px;
  }

  .catalog-sort select {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    padding: 20px;
  }

  .product-art {
    height: 190px;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .product-description {
    font-size: 15px;
  }

  .product-price-note {
    min-height: 0;
  }

  .product-card .button {
    min-height: 49px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    min-height: auto;
  }

  #hero-title {
    font-size: 42px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =====================================
   ДОСТУПНОСТЬ И ПЕЧАТЬ
   ===================================== */

/* Контент никогда не скрывается до выполнения JavaScript */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .header {
    position: static;
  }

  .skip-link,
  .back-to-top {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .catalog-sidebar {
    position: static;
  }
}

/* Форма */

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.form-consent a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status[data-state="success"] {
  color: #247346;
}

.form-status[data-state="error"] {
  color: #b12c35;
}

.contact-form[aria-busy="true"] button {
  cursor: wait;
}

/* Контейнер плавного раскрытия создаётся JavaScript */

.accordion-body {
  display: flow-root;
  min-width: 0;
  overflow: hidden;
}

/* Значки переключаются сразу при нажатии */

.company-details[data-accordion-state="closed"] > summary::after,
.legal-document[data-accordion-state="closed"] > summary::after {
  transform: rotate(45deg);
}

.company-details[data-accordion-state="open"] > summary::after,
.legal-document[data-accordion-state="open"] > summary::after {
  transform: rotate(225deg);
}

.faq-item[data-accordion-state="closed"] > summary::after {
  content: "+";
}

.faq-item[data-accordion-state="open"] > summary::after {
  content: "−";
}

/* Без JavaScript содержание остаётся видимым */

.reveal {
  opacity: 1;
  transform: none;
}

/* =====================================
   ПОВТОРЯЕМЫЕ АНИМАЦИИ ПРИ ПРОКРУТКЕ
   ===================================== */

/* Без JavaScript ничего не скрывается */
.reveal {
  opacity: 1;
  transform: none;
}

/* Переход включается после первоначального расчёта */
.reveal.reveal-ready {
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Элемент ниже видимой области */
.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(48px);
}

/* Элемент вошёл в видимую область */
.reveal[data-reveal-state="visible"] {
  opacity: 1;
  transform: translateY(0);
}

/* При управлении клавиатурой элемент всегда виден */
.reveal[data-reveal-state="hidden"]:focus-within {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   ПЛАВНОЕ РАСКРЫТИЕ БЛОКОВ
   ===================================== */

.accordion-body {
  display: flow-root;
  min-width: 0;
  overflow: hidden;
}

.company-details[data-accordion-state="closed"] > summary::after,
.legal-document[data-accordion-state="closed"] > summary::after {
  transform: rotate(45deg);
}

.company-details[data-accordion-state="open"] > summary::after,
.legal-document[data-accordion-state="open"] > summary::after {
  transform: rotate(225deg);
}

.faq-item[data-accordion-state="closed"] > summary::after {
  content: "+";
}

.faq-item[data-accordion-state="open"] > summary::after {
  content: "−";
}

/* Настройки доступности */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-reveal-state="hidden"],
  .reveal[data-reveal-state="visible"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .reveal,
  .reveal[data-reveal-state="hidden"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================
   ВСПЛЫВАЮЩАЯ ФОРМА В КАТАЛОГЕ
   ===================================== */

html.has-request-modal {
  overflow: hidden;
}

.request-modal {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e6e7ec;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(20, 30, 55, 0.25);
}

/* Закрытый dialog не должен занимать место */
.request-modal:not([open]) {
  display: none;
}

.request-modal::backdrop {
  background: rgba(24, 29, 43, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.request-modal[open] {
  animation: request-modal-appear 220ms
    cubic-bezier(0.22, 1, 0.36, 1);
}

.request-modal[open]::backdrop {
  animation: request-backdrop-appear 220ms ease;
}

.request-modal .contact-form {
  margin: 0;
  padding: 36px;
  border-radius: inherit;
  background: #fff;
}

.request-modal .contact-form h3 {
  padding-right: 42px;
  font-size: 27px;
  font-weight: 600;
}

.request-modal .form-description {
  margin-bottom: 24px;
  line-height: 1.6;
}

.request-modal textarea {
  min-height: 125px;
}

.request-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f1f3f8;
  color: #535b6b;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.request-modal-close:hover {
  background: #e4eafb;
  color: var(--blue-dark);
}

.request-modal-close svg {
  width: 21px;
  height: 21px;
}

@keyframes request-modal-appear {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes request-backdrop-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 540px) {
  .request-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }

  .request-modal .contact-form {
    padding: 28px 22px;
  }

  .request-modal .contact-form h3 {
    font-size: 24px;
  }

  .request-modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-modal[open],
  .request-modal[open]::backdrop {
    animation: none;
  }
}

/* Цвет второй фразы в заголовках */
.title-accent {
  color: var(--orange, #ff8355);
}

/* =====================================
   СОБСТВЕННАЯ КАРУСЕЛЬ ОТЗЫВОВ
   ===================================== */

.reviews-carousel {
  --reviews-per-page: 3;
  --reviews-gap: 18px;
  min-width: 0;
}

.reviews-demo-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #80634e;
  border-radius: 14px;
  background: #493d35;
  color: #ffe0bd;
  font-size: 14px;
  line-height: 1.6;
}

.reviews-message {
  margin: 0 0 24px;
  color: #d0d0d8;
  font-size: 16px;
}

.reviews-viewport {
  overflow: hidden;
  border-radius: 26px;
  touch-action: pan-y;
}

.reviews-viewport:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.reviews-track {
  display: flex;
  align-items: stretch;
  gap: var(--reviews-gap);
  width: 100%;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-review {
  display: flex;
  flex-direction: column;

  flex: 0 0 calc(
    (100% - (var(--reviews-per-page) - 1) * var(--reviews-gap))
    / var(--reviews-per-page)
  );

  min-width: 0;
  padding: 28px;
  border: 1px solid #5a5a64;
  border-radius: 26px;
  background: #404047;
  color: #fff;
}

.carousel-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.carousel-review-label {
  color: #ffc1a8;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.carousel-review-stars {
  color: #ffbd66;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}

.carousel-review-text {
  margin: 0 0 28px;
  color: #e0e0e7;
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.carousel-review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #60606b;
}

.carousel-review-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: #57443e;
  color: #ffc1a8;
  font-size: 14px;
  font-weight: 700;
}

.carousel-review-person-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.carousel-review-author {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.carousel-review-meta {
  display: block;
  margin-top: 4px;
  color: #c4c4cf;
  font-size: 12px;
  line-height: 1.6;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.reviews-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #666670;
  border-radius: 15px;
  background: #404047;
  color: #fff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.reviews-arrow:not(:disabled):hover {
  border-color: var(--orange);
  background: #57443e;
  transform: translateY(-2px);
}

.reviews-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-arrow svg {
  width: 23px;
  height: 23px;
}

.reviews-page {
  min-width: 100px;
  margin: 0;
  color: #d0d0d8;
  font-size: 14px;
  text-align: center;
}

.reviews-bottom {
  margin-top: 28px;
  text-align: center;
}

.reviews-source-link {
  color: #ffc1a8;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reviews-source-link:hover {
  color: #fff;
}

@media (max-width: 1050px) {
  .reviews-carousel {
    --reviews-per-page: 2;
  }
}

@media (max-width: 650px) {
  .reviews-carousel {
    --reviews-per-page: 1;
    --reviews-gap: 14px;
  }

  .reviews-viewport,
  .carousel-review {
    border-radius: 22px;
  }

  .carousel-review {
    padding: 24px;
  }

  .carousel-review-text {
    font-size: 16px;
  }

  .reviews-controls {
    margin-top: 22px;
  }

  .reviews-demo-note {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track,
  .reviews-arrow {
    transition: none;
  }
}

@media print {
  .reviews-viewport {
    overflow: visible;
  }

  .reviews-track {
    display: block;
    transform: none !important;
  }

  .carousel-review {
    margin-bottom: 20px;
    break-inside: avoid;
  }

  .reviews-controls {
    display: none;
  }
}