/* ГФК — corporate, strict grid, burgundy accent */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee7;
  --ink: #1a1719;
  --muted: #5d5659;
  --wine: #6a1b2b;
  --wine-deep: #4a101d;
  --wine-wash: #efe3e4;
  --line: #d9d2ca;
  --line-strong: #b9afa6;
  --error: #8c2b34;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --gutter: clamp(18px, 4vw, 32px);
  --fs-h1: clamp(2.35rem, 4.6vw, 3.9rem);
  --fs-h2: clamp(1.7rem, 2.8vw, 2.45rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--wine);
}

a:hover {
  color: var(--wine-deep);
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

::selection {
  background: var(--wine);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.shell {
  width: 100%;
  max-width: 1244px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

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

section[id],
footer[id] {
  scroll-margin-top: 92px;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wine);
  line-height: 1;
}

.brand__text {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.nav__phone {
  display: none;
}

.topbar__phone {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__phone:hover {
  color: var(--wine);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.menu-btn__bars span {
  display: block;
  height: 1.5px;
  background: var(--wine);
}

.menu-btn:hover {
  border-color: var(--wine);
}

/* Hero */

.hero {
  padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.hero__main {
  padding-top: 6px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wine);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--wine);
}

h1 {
  margin: 20px 0 22px;
  font-size: var(--fs-h1);
  line-height: 1.07;
  max-width: 17ch;
}

.hero__accent {
  color: var(--wine);
}

.hero__lead {
  max-width: 54ch;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 52ch;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.btn--primary:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.btn--ghost {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}

.btn--ghost:hover {
  background: var(--wine-wash);
  color: var(--wine-deep);
}

/* Fact card */

.factcard {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.factcard__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--wine);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.factcard__list {
  margin: 0;
  padding: 0;
}

.factcard__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.factcard__row:last-child {
  border-bottom: 0;
}

.factcard__row dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.factcard__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.factcard__row dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.factcard__row dd a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.factcard__row--rating strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--wine);
  margin-right: 4px;
}

/* Sections */

.section {
  padding: clamp(60px, 7.5vw, 108px) 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.sec-index {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.sec-head h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.sec-lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
}

/* Situations */

.sit-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.sit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.sit-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.sit__num {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--wine);
}

.sit-list h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}

.sit-list p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

.sit-aside {
  padding: 26px 24px 28px;
  background: var(--wine-wash);
  border-left: 3px solid var(--wine);
}

.sit-aside h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.sit-aside ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f3235;
}

.sit-aside li {
  position: relative;
  padding-left: 15px;
}

.sit-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  background: var(--wine);
}

/* Steps */

.steps__head,
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px;
  gap: 24px;
}

.steps__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps__head span:last-child {
  text-align: right;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--wine);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 500;
}

.step p {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  color: var(--muted);
}

.step__term {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
}

.table-note {
  margin: 18px 0 0;
  max-width: 72ch;
  font-size: 13px;
  color: var(--muted);
}

/* Support */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
}

.support-col {
  padding-top: 16px;
  border-top: 2px solid var(--wine);
}

.support-col h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.support-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.support-col li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  counter-increment: item;
}

.support-col li::before {
  content: counter(item, decimal-leading-zero);
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--wine);
}

.support-col li:last-child {
  border-bottom: 0;
}

/* Documents register */

.register {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.register__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 2px solid var(--wine);
  background: var(--paper-2);
}

.register__title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.register__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: right;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.doc-table th {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

.doc-table th:nth-child(2) {
  width: 38%;
}

.doc-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table__num {
  width: 64px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--wine);
}

.doc-table td:nth-child(2) {
  width: 38%;
  font-weight: 500;
}

.doc-table td:last-child {
  font-size: 14.5px;
  color: var(--muted);
}

.register__foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.register__foot p {
  margin: 0;
  max-width: 72ch;
  font-size: 12.5px;
  color: var(--muted);
}

.register__foot .mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Price */

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.price-table th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

.price-table th:last-child {
  text-align: right;
}

.price-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.price-table td:last-child {
  padding-left: 24px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  color: var(--wine);
}

.price-aside {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.price-aside h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.price-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-aside li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.price-aside li:last-child {
  border-bottom: 0;
}

/* Reviews band */

.reviews {
  background: var(--wine);
  color: #fff;
  border-bottom: 0;
}

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.reviews__score {
  padding-right: clamp(0px, 3vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.reviews__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.reviews__number {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.reviews__count {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.sec-index--light {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px;
}

.reviews h2 {
  margin: 0 0 14px;
  font-size: var(--fs-h2);
  color: #fff;
}

.reviews__text p {
  max-width: 58ch;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.reviews__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.reviews__text a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.reviews a:focus-visible {
  outline-color: #fff;
}

/* Form */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.form-intro h2 {
  margin: 10px 0 16px;
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.form-intro > p {
  max-width: 46ch;
  color: var(--muted);
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-list span:first-child {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.contact-list a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

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

.form-card {
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  appearance: none;
}

.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236a1b2b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input::placeholder {
  color: #756c6f;
}

.field input:hover,
.field select:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus {
  border-color: var(--wine);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 1px var(--wine);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--error);
}

.field.is-invalid input:focus,
.field.is-invalid select:focus {
  box-shadow: 0 0 0 1px var(--error);
}

.field__error {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form-success__label {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.form-success h3 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.lead-summary {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--wine);
  background: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-btn {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
}

.faq-intro h2 {
  margin: 8px 0 12px;
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.faq-intro .sec-lead {
  font-size: 15px;
}

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

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

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--wine);
}

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

.faq-item h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.16s ease;
}

.faq-item summary:hover h3 {
  color: var(--wine);
}

.faq-item p {
  margin: 0;
  padding: 0 36px 22px 0;
  max-width: 66ch;
  font-size: 15px;
  color: var(--muted);
}

/* Footer */

.footer {
  padding: clamp(44px, 5vw, 68px) 0 28px;
  background: var(--paper-2);
  border-top: 3px solid var(--wine);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.footer h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
}

.footer p {
  margin: 0 0 8px;
  font-size: 14.5px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.footer a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.footer__brand {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}

.footer__bottom p {
  margin: 0;
  max-width: 64ch;
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1000px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    padding: 8px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav a:hover {
    border-bottom-color: var(--line);
  }

  .nav__phone {
    display: block;
    margin-top: 16px;
    border-bottom: 0;
    font-family: var(--mono);
    font-size: 15px;
    color: var(--wine);
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .reviews__grid,
  .form-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__main {
    padding-top: 0;
  }

  h1 {
    max-width: 20ch;
  }

  .factcard {
    max-width: 520px;
  }

  .reviews__score {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 860px) {
  .sit-layout,
  .price-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

@media (max-width: 720px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .sec-index {
    margin-top: 0;
  }

  .steps__head {
    display: none;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 18px 0;
  }

  .step__num {
    padding-top: 0;
  }

  .step__term {
    padding-top: 6px;
    text-align: left;
  }

  .step__term::before {
    content: "Срок: ";
    color: var(--muted);
  }

  .register__head,
  .register__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 18px;
  }

  .register__meta {
    text-align: left;
  }

  .doc-table thead {
    display: none;
  }

  .doc-table,
  .doc-table tbody,
  .doc-table tr,
  .doc-table td {
    display: block;
    width: 100%;
  }

  .doc-table tr {
    position: relative;
    padding: 14px 18px 14px 58px;
    border-bottom: 1px solid var(--line);
  }

  .doc-table tr:last-child {
    border-bottom: 0;
  }

  .doc-table td {
    padding: 0;
    border: 0;
  }

  .doc-table td.doc-table__num {
    position: absolute;
    left: 18px;
    top: 16px;
    width: auto;
  }

  .doc-table td:nth-child(2) {
    width: auto;
    margin-bottom: 3px;
  }

  .doc-table td:last-child {
    font-size: 14px;
  }

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

  .footer__bottom {
    margin-top: 30px;
  }

  .contact-list li {
    flex-wrap: wrap;
    gap: 2px 16px;
  }
}

@media (max-width: 620px) {
  .topbar__phone {
    display: none;
  }

  .topbar__inner {
    gap: 14px;
    min-height: 70px;
  }

  .brand__text {
    font-size: 9.5px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 16px;
  }

  .brand__mark {
    font-size: 1.4rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td,
  .price-table th {
    display: block;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .price-table td {
    padding: 0;
    border: 0;
  }

  .price-table td:last-child {
    padding: 4px 0 0;
    text-align: left;
    font-size: 13.5px;
  }

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

  .form-success__actions .btn {
    flex: 1 1 100%;
  }

  .reviews__number {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
