:root {
  --paper: #ffffff;
  --ink: #102a4d;
  --text: #253952;
  --muted: #5d6878;
  --blue: #0b67e5;
  --blue-dark: #0756c1;
  --line: #e4e9f0;
  --gold: #f5a800;
  --shadow: 0 12px 30px rgba(16, 42, 77, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid rgba(11, 103, 229, 0.42);
  outline-offset: 3px;
}

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

#practice,
#process,
#reviews,
#contacts {
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav a {
  padding: 9px 7px;
  font-size: 13px;
  text-decoration: none;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header__contacts a {
  min-height: 25px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__stage {
  position: relative;
  min-height: 560px;
  padding: 72px 0 54px;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(47%, 550px);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: inherit;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 4.3vw, 58px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.hero__description {
  margin-top: 28px;
}

.hero__description p {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.58;
}

.hero__description p:first-child {
  font-size: 17px;
}

.hero__accent {
  color: #9a3f3f;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.button--primary {
  color: #fff;
  background: var(--blue);
}

.hero__art {
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: 0;
  z-index: 1;
  width: 73%;
  pointer-events: none;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.section {
  padding: 64px 0;
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
}

.section-title span {
  width: 34px;
  height: 3px;
  display: block;
  margin: 10px auto 0;
  background: var(--blue);
  border-radius: 99px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.practice-card {
  min-height: 250px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.practice-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--blue);
}

.practice-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.process-section {
  padding-top: 50px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 0 8px;
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 68%;
  width: 64%;
  height: 1px;
  background: #bdc7d4;
}

.step-number {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.reviews-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.reviews-shell {
  position: relative;
}

.reviews-strip {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 1px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-strip::-webkit-scrollbar {
  display: none;
}

.review-slide {
  flex: 0 0 296px;
  min-height: 350px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.rating-card {
  flex-basis: 250px;
}

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rating-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rating-card p {
  margin: 8px 0;
}

.rating-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.award-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.yandex-award {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 42, 77, 0.06);
}

.yandex-award__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff2f2f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.yandex-award__text {
  display: grid;
  gap: 2px;
}

.yandex-award__text strong {
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.yandex-award__text small {
  color: #606975;
  font-size: 11px;
  line-height: 1.35;
}

.rating-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.review-card {
  display: flex;
  flex-direction: column;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-card p {
  margin: 20px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.62;
}

.review-card small {
  display: block;
  margin-top: auto;
  color: var(--muted);
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.reviews-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.reviews-arrow--left {
  left: -48px;
}

.reviews-arrow--right {
  right: -48px;
}

.contacts-section {
  padding: 38px 0 0;
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 30px;
  align-items: stretch;
}

.contacts-copy {
  padding: 18px 0 38px;
}

.contacts-copy h2 {
  margin: 0 0 20px;
  font-size: 27px;
  font-weight: 750;
}

.contacts-copy address {
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-style: normal;
}

.contacts-copy address p {
  margin: 0;
}

.contacts-copy address a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contacts-map {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6f8;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px 28px 68px;
  color: var(--text);
  text-align: center;
}

.map-placeholder[hidden] {
  display: none;
}

.map-placeholder strong {
  font-size: 18px;
}

.map-placeholder p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-enable-button {
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.map-card-link {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  padding: 10px 13px;
  border-radius: 8px;
  color: #111;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(16, 42, 77, 0.16);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: #737d89;
  font-size: 12px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

.cookie-settings-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: #aab1ba;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(570px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(16, 42, 77, 0.2);
  backdrop-filter: blur(12px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.cookie-consent__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: grid;
  gap: 8px;
}

.cookie-button {
  min-width: 108px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-button--accept {
  color: #fff;
  background: var(--blue);
}

.cookie-button--reject {
  color: var(--blue);
  background: #fff;
}

@media (hover: hover) {
  .nav a:hover,
  .header__contacts a:hover,
  .contacts-copy address a:hover,
  .rating-card a:hover {
    color: var(--blue);
  }

  .button:hover {
    color: #fff;
    background: var(--blue-dark);
    transform: translateY(-1px);
  }

  .map-enable-button:hover,
  .cookie-button--reject:hover {
    color: #fff;
    background: var(--blue-dark);
  }

  .reviews-arrow:not(:disabled):hover {
    background: var(--blue-dark);
  }
}

@media (max-width: 1280px) {
  .reviews-arrow--left {
    left: 6px;
  }

  .reviews-arrow--right {
    right: 6px;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .header__contacts {
    margin-left: auto;
  }

  .hero__copy {
    width: 60%;
  }

  .hero__art {
    right: -44px;
    width: 79%;
    opacity: 0.88;
  }

  .practice-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .review-slide {
    flex-basis: calc((100% - 14px) / 2);
  }

  .rating-card {
    flex-basis: 38%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), 1180px);
  }

  #practice,
  #process,
  #reviews,
  #contacts {
    scroll-margin-top: 78px;
  }

  .header__inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand small,
  .header__contacts {
    display: none;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
  }

  .menu-button span {
    width: 19px;
    height: 2px;
    background: var(--ink);
  }

  .mobile-menu.is-open {
    display: grid;
    padding: 8px 14px 14px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 4px;
    text-decoration: none;
  }

  .hero__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 42px 0 0;
  }

  .hero__copy {
    width: 100%;
    order: 1;
  }

  h1 {
    font-size: 40px;
  }

  .hero__description {
    margin-top: 24px;
  }

  .hero__description p {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .hero__description p:first-child {
    font-size: 17.5px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 12px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .hero__art {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + 28px);
    height: 330px;
    margin: 12px -14px 0;
    opacity: 1;
  }

  .hero__art img {
    object-position: center bottom;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .practice-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .practice-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .practice-card h3 {
    font-size: 20px;
  }

  .practice-card p {
    font-size: 15px;
  }

  .steps li {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .steps h3 {
    font-size: 18px;
  }

  .steps p {
    font-size: 15px;
  }

  .review-slide,
  .rating-card {
    flex-basis: 88%;
    min-height: 0;
  }

  .reviews-arrow {
    display: none;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contacts-copy {
    padding: 0 0 30px;
  }

  .contacts-map {
    height: 240px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-consent {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 37px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .hero__art {
    height: 300px;
  }

  .section-title h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
