:root {
  --purple: #9851bc;
  --purple-icon: #9851bc;
  --client-purple: #b080d6;
  --lavender: #ede0f7;
  --pale: #f6f6fa;
  --text: #2c2a2d;
  --hero-text: #4a4774;
  --footer: #4a4b72;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Desktop layout: full-width section backgrounds with a centred 1920 px design canvas. */
.page-frame,
.top-stage,
main,
.site-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.page-frame { container-type: normal; overflow-x: clip; }
.container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  container-type: inline-size;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #9951bd;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: filter .18s ease, transform .18s ease;
}
.button:hover,
.button:focus-visible { filter: brightness(1.04); transform: translateY(-1px); }

/* ---------- Header + hero: fluid background with a centred 1920 px content canvas ---------- */
.top-stage {
  position: relative;
  height: min(56.25vw, 1080px);
  overflow: hidden;
  background-color: #fff;
  background-image:
    radial-gradient(
      ellipse min(31.25vw, 600px) min(39.58vw, 760px)
      at calc(50% - min(25vw, 480px)) 66%,
      rgba(152, 81, 188, .72) 0%,
      rgba(174, 118, 207, .54) 28%,
      rgba(205, 169, 226, .34) 50%,
      rgba(235, 218, 245, .18) 68%,
      rgba(255, 255, 255, 0) 84%
    ),
    radial-gradient(
      ellipse min(45.83vw, 880px) min(50vw, 960px)
      at calc(50% - min(27.08vw, 520px)) 68%,
      rgba(237, 224, 247, .78) 0%,
      rgba(246, 239, 251, .48) 52%,
      rgba(255, 255, 255, 0) 82%
    );
  background-repeat: no-repeat;
}
.top-stage-reference { display: none; }
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(6.15vw, 118.08px);
  z-index: 100;
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}
.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 min(.25vw, 4.8px) min(1.25vw, 24px) rgba(66, 54, 86, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { height: 100%; }
.brand {
  position: absolute;
  left: 6.73cqw;
  top: 2.12cqw;
  font-size: 1.93cqw;
  line-height: 1.18;
  font-weight: 700;
  color: #4a4774;
  white-space: nowrap;
}
.main-nav {
  position: absolute;
  left: 27.65cqw;
  top: 2.42cqw;
  display: flex;
  align-items: center;
  gap: 2.0cqw;
  font-size: 1.23cqw;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--purple); }
.header-button {
  position: absolute;
  right: 8.0cqw;
  top: 1.68cqw;
  width: 14.0cqw;
  height: 3.18cqw;
  font-size: 1.14cqw;
}
.menu-toggle { display: none; }

.hero { position: absolute; inset: 0; z-index: 3; }
.hero-grid { height: 100%; }
.hero-content {
  position: absolute;
  left: 6.72cqw;
  top: 15.78cqw;
  width: 50.8cqw;
}
.hero h1 {
  margin: 0;
  color: var(--hero-text);
  font-size: 3.50cqw;
  line-height: 1.27;
  letter-spacing: -.025em;
  font-weight: 600;
}
.hero p {
  margin: 1.35cqw 0 0;
  color: #2f2d32;
  font-size: 1.58cqw;
  line-height: 1.35;
  font-weight: 400;
}
.hero .button {
  margin-top: 4.15cqw;
  width: 20.75cqw;
  height: 3.10cqw;
  font-size: 1.22cqw;
}
/* Illustration is kept separate from the fluid CSS background. */
.hero-visual {
  display: block;
  position: absolute;
  left: 58.28cqw;
  top: 6.82cqw;
  width: 40.10cqw;
  height: 40.10cqw;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

#specialists,
#advantages,
#clients,
#cooperation,
#request,
#contacts {
  scroll-margin-top: min(6.4vw, 122.88px);
}

/* ---------- Shared section headings ---------- */
.section { position: relative; overflow: hidden; padding: 0; }
.section-heading { position: absolute; left: 6.78cqw; top: 5.35cqw; margin: 0; }
.section-heading h2 {
  margin: 0;
  color: #2d2b2e;
  font-size: 2.34cqw;
  line-height: 1.18;
  font-weight: 600;
}
.section-heading p {
  margin: .92cqw 0 0;
  color: #353238;
  font-size: 1.22cqw;
  line-height: 1.35;
  font-weight: 400;
}

/* ---------- Specialists: 1920 x 1080 ---------- */
#specialists { height: min(56.25vw, 1080px); background: var(--lavender); }
#specialists > .container { height: 100%; }
#specialists .section-heading { top: 5.75cqw; }
.specialists-grid {
  position: absolute;
  left: 8.85cqw;
  right: 8.45cqw;
  top: 16.7cqw;
  display: grid;
  grid-template-columns: repeat(4, 15.6cqw);
  justify-content: space-between;
  row-gap: 6.0cqw;
}
.specialist-card { min-height: 12.3cqw; }
.specialist-card img {
  width: 4.55cqw;
  height: 4.55cqw;
  object-fit: contain;
  margin: 0 0 1.35cqw;
}
.specialist-card h3 {
  margin: 0 0 .62cqw;
  color: #302d31;
  font-size: 1.78cqw;
  line-height: 1.18;
  font-weight: 400;
}
.specialist-card p {
  margin: 0;
  color: #373339;
  font-size: .88cqw;
  line-height: 1.48;
  font-weight: 400;
}

/* ---------- Advantages: 1920 x 920 ---------- */
#advantages { height: min(47.9167vw, 920px); background: var(--pale); }
#advantages > .container { height: 100%; }
#advantages .section-heading { top: 4.45cqw; }
.advantages-grid {
  position: absolute;
  inset: 10.05cqw 4.8cqw 3.0cqw 0;
  display: grid;
  grid-template-columns: 49.2cqw 1fr;
  column-gap: 3.2cqw;
  align-items: center;
}
.advantages-visual { width: 49.2cqw; height: 30.2cqw; display: flex; align-items: center; }
.advantages-visual img { width: 100%; height: 100%; object-fit: contain; }
.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, 16.9cqw);
  column-gap: 3.7cqw;
  row-gap: 5.15cqw;
  align-content: center;
}
.advantages-list article h3 {
  margin: 0 0 1.25cqw;
  color: #302d31;
  font-size: 1.78cqw;
  line-height: 1.18;
  font-weight: 400;
}
.advantages-list article p {
  margin: 0;
  color: #373339;
  font-size: .91cqw;
  line-height: 1.48;
}

/* ---------- Clients: 1920 x 930 ---------- */
#clients { height: min(48.4375vw, 930px); background: var(--lavender); }
#clients > .container { height: 100%; }
#clients .section-heading { top: 5.55cqw; }
.clients-grid {
  position: absolute;
  left: 6.75cqw;
  top: 16.45cqw;
  display: grid;
  grid-template-columns: repeat(6, 10.42cqw);
  gap: 3.72cqw 5.18cqw;
}
.client-card {
  width: 10.42cqw;
  height: 10.42cqw;
  display: grid;
  place-items: center;
  border-radius: 1.65cqw;
  background: var(--client-purple);
}
.client-card img { width: 56%; height: 56%; object-fit: contain; }

/* ---------- Cooperation: 1920 x 530 ---------- */
#cooperation { height: min(27.6042vw, 530px); background: var(--pale); }
#cooperation > .container { height: 100%; }
#cooperation .section-heading { top: 4.25cqw; }
.cooperation-grid {
  position: absolute;
  left: 6.75cqw;
  right: 6.2cqw;
  top: 10.55cqw;
  display: grid;
  grid-template-columns: repeat(4, 20.7cqw);
  justify-content: space-between;
}
.cooperation-card img {
  width: 4.8cqw;
  height: 4.8cqw;
  object-fit: contain;
  margin: 0 0 1.3cqw;
}
.cooperation-card h3 {
  margin: 0 0 1.15cqw;
  color: #302d31;
  font-size: 1.82cqw;
  line-height: 1.18;
  font-weight: 400;
}
.cooperation-card p {
  margin: 0;
  color: #373339;
  font-size: .91cqw;
  line-height: 1.45;
}

/* ---------- Request: 1920 x 1285 ---------- */
.request-section {
  position: relative;
  height: min(66.9271vw, 1285px);
  overflow: hidden;
  isolation: isolate;
  background: #f4edfa url("../images/request-background-r12.png") center / 100% 100% no-repeat;
}
.request-section > .container { height: 100%; }
.request-section::before,
.request-section::after {
  content: none;
  display: none;
}
.request-heading { position: absolute; left: 6.75cqw; top: 3.55cqw; margin: 0; z-index: 1; }
.request-heading h2 {
  margin: 0;
  color: #2d2b2e;
  font-size: 2.34cqw;
  line-height: 1.18;
  font-weight: 600;
}
.request-form {
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 11.72cqw;
  transform: translateX(-50%);
  width: 49.53cqw;
  height: 45.10cqw;
  margin: 0;
  padding: 4.15cqw 8.44cqw 4.20cqw;
  border-radius: 3.0cqw;
  background: #fff;
  box-shadow: none;
}
.request-intro { margin: 0 0 1.81cqw; text-align: center; }
.request-intro h3 {
  margin: 0;
  color: #2e2b2f;
  font-size: 1.75cqw;
  line-height: 1.18;
  font-weight: 600;
}
.request-intro p {
  margin: 1.50cqw 0 0;
  color: #3d393f;
  font-size: 1.08cqw;
  line-height: 1.34;
}
.form-row { display: grid; gap: .65cqw; margin: 0 0 1.25cqw; }
.form-row-two { grid-template-columns: 1.055fr 1fr; }
.request-form > .form-field { display: block; margin: 0 0 1.86cqw; }
.form-field-half { width: 50.24%; }
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form input[type="email"],
.request-form input[type="number"] {
  width: 100%;
  height: 2.60cqw;
  padding: 0 1.0cqw;
  border: 0;
  border-radius: 999px;
  outline: none;
  color: #2d2a31;
  background: #eadcf3;
  font-size: .83cqw;
}
.request-form input::placeholder { color: #9a8fa2; opacity: 1; }
.request-form input:focus { box-shadow: 0 0 0 .12cqw #9951bd inset; }
.request-form fieldset { margin: 0 0 1.50cqw; padding: 0; border: 0; }
.request-form legend {
  margin: 0 0 1.39cqw;
  padding: 0;
  color: #302d31;
  font-size: 1.15cqw;
  line-height: 1.2;
}
.specialist-options {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  gap: .88cqw;
}
.option-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.28cqw;
}
.specialist-options label { display: block; cursor: pointer; flex: 0 0 auto; }
.specialist-options input { position: absolute; opacity: 0; pointer-events: none; }
.specialist-options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 5.95cqw;
  height: 3.07cqw;
  padding: 0 1.62cqw;
  border: .105cqw solid #9951bd;
  border-radius: 999px;
  color: #9951bd;
  background: #fff;
  font-size: .78cqw;
  line-height: 1;
  white-space: nowrap;
}
.option-row:nth-child(2) label:first-child span { min-width: 13.33cqw; }
.option-row:nth-child(2) label:nth-child(2),
.option-row:nth-child(3) label:nth-child(2) { margin-left: .52cqw; }
.option-row:nth-child(3) label:nth-child(3) { margin-left: .10cqw; }
.option-row:nth-child(3) label:first-child span { min-width: 11.51cqw; }
.specialist-options input:checked + span,
.specialist-options input:focus-visible + span { color: #fff; background: #9951bd; }
.form-row-submit {
  grid-template-columns: 1.2fr 1fr 1.08fr;
  align-items: center;
  margin: 0;
}
.form-row-submit .button {
  width: 100%;
  height: 3.07cqw;
  position: relative;
  top: -.16cqw;
  font-size: 1.13cqw;
}
.form-status { min-height: 1cqw; margin: .65cqw 0 0; text-align: center; font-size: .72cqw; color: #6b3f83; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .12em; }

/* ---------- Footer: 1920 x 501 ---------- */
.site-footer {
  position: relative;
  height: min(26.0938vw, 501px);
  padding: 0;
  color: #fff;
  background: var(--footer);
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before,
.site-footer::after {
  content: none;
  display: none;
}
.site-footer > .container:first-child { height: 100%; z-index: 1; }
.footer-brand {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.65cqw;
  margin: 0;
  text-align: center;
  font-size: 1.92cqw;
  line-height: 1.2;
  font-weight: 700;
}
.footer-grid { position: absolute; inset: 0; display: block; }
.footer-contact { position: absolute; left: 6.75cqw; top: 8.0cqw; }
.footer-address { position: absolute; right: 6.75cqw; top: 7.85cqw; text-align: right; }
.footer-contact h2,
.footer-address h2 {
  margin: 0 0 .8cqw;
  font-size: 1.22cqw;
  line-height: 1.25;
  font-weight: 400;
}
.footer-contact h2:not(:first-child) { margin-top: 3.25cqw; }
.footer-contact a,
.footer-address p {
  margin: 0;
  color: #fff;
  font-size: 1.18cqw;
  line-height: 1.42;
  font-weight: 600;
}
.footer-address p { font-weight: 400; }
.footer-bottom {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 1.65cqw;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .78cqw; color: rgba(255,255,255,.94); }
.footer-bottom a:hover,
.footer-bottom a:focus-visible { text-decoration: underline; }

/* ---------- Adaptive layout: tablets and phones ---------- */
.nav-cta { display: none; }

@media (max-width: 1100px) {
  body.menu-open { overflow: hidden; }

  .page-frame,
  .top-stage,
  main,
  .site-footer {
    width: 100%;
    max-width: none;
  }

  .page-frame { container-type: normal; overflow: clip; }
  .container {
    width: min(100% - 48px, 960px);
    max-width: 960px;
    height: auto;
    margin-inline: auto;
    container-type: normal;
  }

  .top-stage {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 18% 70%, rgba(183, 126, 214, .48) 0, rgba(222, 198, 238, .28) 26%, rgba(255,255,255,0) 54%),
      #fff;
  }

  .site-header {
    position: absolute;
    inset: 0 0 auto 0;
    height: 76px;
    padding: 0;
    z-index: 1000;
  }

  .site-header.is-fixed {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    max-width: none;
    height: 72px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(66, 54, 86, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-inner {
    position: relative;
    inset: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    position: static;
    z-index: 3;
    font-size: 25px;
    line-height: 1.15;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    place-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f1e8f6;
    cursor: pointer;
  }

  .menu-toggle span:not(.visually-hidden) {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: #7d419f;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 72px 20px auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(152, 81, 188, .12);
    border-radius: 22px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 18px 46px rgba(53, 42, 68, .18);
    font-size: 17px;
    line-height: 1.25;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible { background: #f5edf9; }

  .main-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    min-height: 50px;
    margin-top: 8px;
    color: #fff;
    background: #9951bd;
    font-weight: 700;
  }

  .main-nav .nav-cta:hover,
  .main-nav .nav-cta:focus-visible { color: #fff; background: #8f46b5; }
  .header-button { display: none; }

  .hero {
    position: relative;
    inset: auto;
    z-index: 3;
    padding: 122px 0 76px;
  }

  .hero-grid {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 34px;
    align-items: center;
  }

  .hero-content {
    position: static;
    width: auto;
  }

  .hero h1 {
    font-size: clamp(43px, 5.1vw, 58px);
    line-height: 1.15;
    letter-spacing: -.028em;
  }

  .hero p {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.48;
  }

  .hero p br { display: none; }

  .hero .button {
    width: auto;
    height: 56px;
    margin-top: 42px;
    padding: 0 34px;
    font-size: 17px;
  }

  .hero-visual {
    display: block;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 430px;
    height: auto;
    justify-self: end;
  }

  .hero-visual img { width: 100%; height: auto; }

  #specialists,
  #advantages,
  #clients,
  #cooperation,
  #request,
  #contacts { scroll-margin-top: 76px; }

  .section,
  #specialists,
  #advantages,
  #clients,
  #cooperation,
  .request-section,
  .site-footer {
    height: auto;
    min-height: 0;
  }

  .section { padding: 82px 0; }
  .section-heading,
  #specialists .section-heading,
  #advantages .section-heading,
  #clients .section-heading,
  #cooperation .section-heading,
  .request-heading {
    position: static;
    margin: 0 0 52px;
  }

  .section-heading h2,
  .request-heading h2 {
    font-size: 38px;
    line-height: 1.2;
  }

  .section-heading p {
    max-width: 760px;
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.5;
  }

  .specialists-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 56px;
  }

  .specialist-card { min-height: 0; }
  .specialist-card img {
    width: 62px;
    height: 62px;
    margin: 0 0 18px;
  }
  .specialist-card h3 {
    margin-bottom: 9px;
    font-size: 25px;
  }
  .specialist-card p {
    max-width: 390px;
    font-size: 16px;
    line-height: 1.5;
  }

  .advantages-grid {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 52px;
    align-items: center;
  }

  .advantages-visual {
    width: 100%;
    height: auto;
  }

  .advantages-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 34px;
  }

  .advantages-list article h3 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .advantages-list article p {
    font-size: 15px;
    line-height: 1.52;
  }

  .clients-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .client-card {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 24px;
  }

  .cooperation-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 56px;
  }

  .cooperation-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .cooperation-card h3 {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .cooperation-card p {
    max-width: 410px;
    font-size: 16px;
    line-height: 1.5;
  }

  .request-section {
    padding: 82px 0 96px;
    background:
      radial-gradient(circle at 18% 8%, rgba(255,255,255,.92), rgba(255,255,255,0) 34%),
      linear-gradient(180deg, #eee0f7 0%, #d4a9e9 46%, #8950a8 100%);
  }

  .request-heading { position: static; }

  .request-form {
    position: static;
    transform: none;
    width: min(100%, 780px);
    height: auto;
    margin: 0 auto;
    padding: 58px 64px 54px;
    border-radius: 38px;
    box-shadow: 0 24px 70px rgba(77, 45, 94, .12);
  }

  .request-intro { margin-bottom: 30px; }
  .request-intro h3 {
    font-size: 30px;
    line-height: 1.25;
  }
  .request-intro p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.48;
  }

  .form-row { gap: 12px; margin-bottom: 18px; }
  .form-row-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-form > .form-field { margin-bottom: 24px; }
  .form-field-half { width: calc(50% - 6px); }

  .request-form input[type="text"],
  .request-form input[type="tel"],
  .request-form input[type="email"],
  .request-form input[type="number"] {
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }

  .request-form input:focus { box-shadow: 0 0 0 2px #9951bd inset; }
  .request-form fieldset { margin-bottom: 26px; }
  .request-form legend {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .specialist-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    gap: 11px;
  }

  .option-row { display: contents; }
  .specialist-options label { flex: 0 0 auto; }
  .specialist-options span,
  .option-row:nth-child(2) label:first-child span,
  .option-row:nth-child(3) label:first-child span {
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border-width: 1.5px;
    font-size: 14px;
  }

  .option-row:nth-child(2) label:nth-child(2),
  .option-row:nth-child(3) label:nth-child(2),
  .option-row:nth-child(3) label:nth-child(3) { margin-left: 0; }

  .form-row-submit {
    grid-template-columns: 1.12fr .88fr 1fr;
    gap: 12px;
  }

  .form-row-submit .button {
    top: 0;
    height: 52px;
    font-size: 17px;
  }

  .form-status {
    min-height: 22px;
    margin-top: 12px;
    font-size: 14px;
  }

  .site-footer {
    padding: 54px 0 28px;
  }

  .site-footer > .container:first-child,
  .footer-brand,
  .footer-grid,
  .footer-contact,
  .footer-address,
  .footer-bottom {
    position: static;
  }

  .footer-brand {
    margin-bottom: 42px;
    font-size: 31px;
    text-align: center;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .footer-contact,
  .footer-address { text-align: left; }
  .footer-address { text-align: right; }

  .footer-contact h2,
  .footer-address h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .footer-contact h2:not(:first-child) { margin-top: 26px; }
  .footer-contact a,
  .footer-address p {
    font-size: 18px;
    line-height: 1.55;
  }

  .footer-bottom {
    margin-top: 54px;
    text-align: center;
  }

  .footer-bottom p { font-size: 13px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 36px, 680px); }

  .site-header { height: 70px; }
  .site-header.is-fixed { height: 68px; }
  .brand { font-size: 21px; }
  .menu-toggle { width: 44px; height: 44px; border-radius: 13px; }
  .main-nav { inset: 68px 14px auto; }

  .hero { padding: 102px 0 66px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    text-align: center;
  }

  .hero-content { max-width: 650px; margin: 0 auto; }
  .hero h1 {
    font-size: clamp(38px, 7.2vw, 50px);
    line-height: 1.14;
  }
  .hero p {
    max-width: 610px;
    margin: 20px auto 0;
    font-size: 18px;
  }
  .hero .button { margin-top: 34px; }
  .hero-visual {
    width: min(72vw, 420px);
    justify-self: center;
  }

  .section { padding: 72px 0; }
  .section-heading,
  #specialists .section-heading,
  #advantages .section-heading,
  #clients .section-heading,
  #cooperation .section-heading,
  .request-heading { margin-bottom: 44px; }

  .section-heading h2,
  .request-heading h2 { font-size: 34px; }

  .specialists-grid,
  .cooperation-grid { gap: 40px 34px; }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .advantages-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .request-section { padding: 72px 0 84px; }
  .request-form { padding: 50px 42px 46px; border-radius: 32px; }
  .request-intro h3 { font-size: 27px; }
  .form-row-submit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-submit .button { grid-column: 1 / -1; }
}

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

  .hero { padding: 94px 0 58px; }
  .hero h1 { font-size: clamp(34px, 10vw, 43px); }
  .hero p { font-size: 16px; line-height: 1.5; }
  .hero .button {
    width: 100%;
    max-width: 310px;
    height: 54px;
    padding: 0 24px;
    font-size: 16px;
  }
  .hero-visual { width: min(86vw, 390px); }

  .section { padding: 62px 0; }
  .section-heading,
  #specialists .section-heading,
  #advantages .section-heading,
  #clients .section-heading,
  #cooperation .section-heading,
  .request-heading { margin-bottom: 38px; }

  .section-heading h2,
  .request-heading h2 {
    font-size: 31px;
    line-height: 1.18;
  }

  .section-heading p { font-size: 15px; }

  .specialists-grid,
  .cooperation-grid { grid-template-columns: 1fr; gap: 36px; }

  .specialist-card,
  .cooperation-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 17px;
    align-items: start;
  }

  .specialist-card img,
  .cooperation-card img {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .specialist-card h3,
  .cooperation-card h3 {
    margin: 0 0 7px;
    font-size: 23px;
  }

  .specialist-card p,
  .cooperation-card p { font-size: 15px; }

  .advantages-list { grid-template-columns: 1fr; gap: 32px; }
  .advantages-list article h3 { font-size: 23px; }
  .advantages-list article p { font-size: 15px; }

  .clients-grid { gap: 13px; }
  .client-card { border-radius: 18px; }

  .request-section { padding: 62px 0 72px; }
  .request-form {
    padding: 38px 20px 34px;
    border-radius: 28px;
  }

  .request-intro { margin-bottom: 26px; }
  .request-intro h3 { font-size: 24px; }
  .request-intro p { font-size: 15px; }
  .form-row-two,
  .form-row-submit { grid-template-columns: 1fr; }
  .form-row-submit .button { grid-column: auto; }
  .form-field-half { width: 100%; }
  .request-form legend { font-size: 19px; }
  .specialist-options { gap: 9px 8px; }
  .specialist-options span,
  .option-row:nth-child(2) label:first-child span,
  .option-row:nth-child(3) label:first-child span {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .site-footer { padding: 46px 0 24px; }
  .footer-brand { margin-bottom: 34px; font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact,
  .footer-address { text-align: center; }
  .footer-contact h2,
  .footer-address h2,
  .footer-contact a,
  .footer-address p { font-size: 16px; }
  .footer-bottom { margin-top: 38px; }
  .footer-bottom p { font-size: 12px; line-height: 1.5; }
}

@media (max-width: 370px) {
  .brand { font-size: 19px; }
  .hero h1 { font-size: 32px; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
