/* FOLLOWERS.su — стили сайта (на основе исходного дизайна: градиент, белые карточки, Jura с разрядкой) */

:root {
  color-scheme: light;

  --gradient: linear-gradient(45deg, #ca80ff 0%, #008080 100%);
  --gradient-phone: linear-gradient(-111deg, #5a00bc, #a207b5, #cc038e, #d00060, #e4290b, #ff7804);

  --ink: #111;
  --text: #555;
  --muted: #757575;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --soft: #f6f6f6;
  --dark: #222;
  --danger: #c0392b;

  --font-alt: "Jura", "Open Sans", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --card-width: 1240px;
  --gutter: clamp(8px, 1.5vw, 20px);
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  font: 400 15px/1.7 var(--font-body);
  color: var(--text);
  background: #6f8fb8;
  -webkit-font-smoothing: antialiased;
}

/* Градиент на весь экран, неподвижный при прокрутке */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--gradient);
}

@media (max-width: 480px) {
  body::before {
    background: var(--gradient-phone);
  }
}

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

[hidden] {
  display: none !important;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover {
  color: #000;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

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

.icon {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Контурные иконки в стиле исходного шаблона */
.line-icon {
  display: block;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: .75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-icon .dot {
  fill: currentColor;
  stroke: none;
}

/* ---------- Шапка ---------- */

.masthead {
  padding: 0 var(--gutter);
  color: #fff;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--card-width);
  min-height: 75px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1vw, 16px);
}

.wordmark {
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: #fff;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: #fff;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: .92;
}

.topbar__link:hover,
.topbar__link[aria-current="page"] {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: .45em;
}

.hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px);
  text-align: center;
}

.hero__title {
  max-width: 980px;
  margin: 0 auto;
  /* разрядка как в исходном дизайне; padding-left уравновешивает пробел после последней буквы */
  padding-left: .55em;
  font-family: var(--font-alt);
  font-size: clamp(24px, 2.2vw + 14px, 46px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .55em;
  text-transform: uppercase;
}

.masthead--compact .hero__title {
  padding-left: .4em;
  font-size: clamp(20px, 1.4vw + 13px, 34px);
  letter-spacing: .4em;
}

.hero__lead {
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 14px;
    letter-spacing: .25em;
  }

  .topbar__link {
    font-size: 11px;
    letter-spacing: .12em;
  }

  .hero__title {
    padding-left: .3em;
    letter-spacing: .3em;
  }

  .masthead--compact .hero__title {
    padding-left: .2em;
    letter-spacing: .2em;
  }
}

/* ---------- Карточки ---------- */

.page {
  padding: 0 var(--gutter);
}

.card {
  max-width: var(--card-width);
  margin: 0 auto 20px;
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 64px);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 32px -18px rgba(20, 10, 50, .35);
}

.card--narrow {
  max-width: 560px;
}

.section-title {
  margin: 0 0 36px;
  padding-left: .5em;
  font-family: var(--font-alt);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .5em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Вкладки услуг ---------- */

.tabs {
  display: none;
}

.js .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
}

.tabs__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 210px;
  padding: 10px 6px 14px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: #a6a6a6;
  cursor: pointer;
  transition: color .2s;
}

.tabs__label {
  position: relative;
  padding-bottom: 8px;
  padding-left: .35em;
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabs__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width .2s;
}

.tabs__tab:hover,
.tabs__tab:hover .tabs__label,
.tabs__tab[aria-selected="true"],
.tabs__tab[aria-selected="true"] .tabs__label {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"] .tabs__label::after {
  width: 32px;
}

@media (max-width: 600px) {
  .js .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .tabs__tab {
    width: auto;
  }

  .tabs__label {
    padding-left: .15em;
    letter-spacing: .15em;
  }
}

.js .tabs__panel:not([data-active]),
.js .tabs__panel-title {
  display: none;
}

.tabs__panel {
  max-width: 820px;
  margin: 0 auto;
}

.tabs__panel + .tabs__panel {
  margin-top: 32px;
}

.js .tabs__panel + .tabs__panel {
  margin-top: 0;
}

.tabs__panel-title {
  margin: 0 0 12px;
  font-family: var(--font-alt);
  font-size: 16px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}

.tabs__panel p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.8;
}

.tabs__panel p:first-of-type {
  color: var(--ink);
}

/* ---------- Форма заказа ---------- */

.order {
  max-width: 820px;
  margin: 44px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.order-form {
  max-width: 620px;
  margin: 0 auto;
}

.field {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder {
  color: #8c8c8c;
}

.input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.choice-list {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s;
}

.choice + .choice {
  border-top: 1px solid var(--line);
}

.choice:hover {
  background: #fafafa;
}

.choice:has(input:checked) {
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--ink);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.choice input,
.check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--dark);
}

/* Обводку фокуса переносим на строку целиком только там, где браузер понимает :has() */
@supports selector(:has(*)) {
  .choice input:focus-visible {
    outline: none;
  }
}

.choice__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.choice__name {
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.choice__hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.choice__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-alt);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.choice__price small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.total__label {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}

.total__value {
  font-family: var(--font-alt);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 28px 12px calc(28px + .3em);
  border: 2px solid transparent;
  border-radius: 3px;
  background: rgba(34, 34, 34, .92);
  color: #fff;
  font: 700 13px/1.2 var(--font-alt);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}

.button:hover {
  background: #000;
  color: #fff;
}

.button:focus-visible {
  outline-offset: 3px;
}

.button--inline {
  width: auto;
}

.pay-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.field__error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.form-alert {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border: 1px solid #f1c7c2;
  border-radius: 4px;
  background: #fdf0ee;
  color: #922b21;
  font-size: 14px;
}

.support {
  margin-top: 44px;
  text-align: center;
}

.support p {
  margin: 0;
}

.support__title {
  margin-bottom: 6px !important;
  padding-left: .3em;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Преимущества ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
}

.features__item .line-icon {
  margin-bottom: 14px;
}

.features__title {
  padding-left: .2em;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.features__text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

/* ---------- Контакты ---------- */

.contact-table {
  max-width: 640px;
  margin: 0 auto;
}

.contact-table > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-table > div:first-child {
  border-top: 1px solid var(--line);
}

.contact-table dt {
  font-size: 13px;
  color: var(--muted);
}

.contact-table dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .contact-table > div {
    grid-template-columns: 1fr;
  }
}

/* ---------- Вход ---------- */

.password {
  position: relative;
}

.password .input {
  padding-right: 100px;
}

.password__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transform: translateY(-50%);
}

.password__toggle:hover {
  background: var(--soft);
}

.auth__form .button {
  margin-top: 4px;
}

.auth__alt {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.notice {
  text-align: center;
}

.notice p {
  margin: 0 0 24px;
  font-size: 16px;
}

/* ---------- Документы ---------- */

.doc-layout {
  display: grid;
  gap: 28px;
}

.doc-toc {
  display: none;
  font-size: 14px;
}

@media (min-width: 1040px) {
  .doc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .doc-toc {
    position: sticky;
    top: 24px;
    display: block;
  }

  .doc-toc-mobile {
    display: none;
  }
}

.doc-toc__title {
  margin: 0 0 12px;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}

.doc-toc ul {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.doc-toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-toc a[aria-current="true"] {
  border-left-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.doc-toc-mobile {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}

.doc-toc-mobile summary {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.doc-toc-mobile ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}

.doc-toc-mobile li {
  margin: .35em 0;
}

.doc {
  max-width: 76ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: #444;
}

.doc-toc-mobile + .doc {
  margin-top: 28px;
}

.doc > :first-child {
  margin-top: 0;
}

.doc h2 {
  margin: 2.2em 0 .8em;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.doc p {
  margin: 0 0 .9em;
}

.doc ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.doc li {
  margin: .35em 0;
}

.requisites {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 24px;
  margin: 0;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

@media (max-width: 560px) {
  .requisites {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .requisites dd {
    margin-bottom: 10px;
  }
}

/* ---------- Подвал ---------- */

.site-footer {
  padding: 28px var(--gutter) 40px;
  color: rgba(255, 255, 255, .85);
  text-align: center;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.site-footer__docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.site-footer__docs a {
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.site-footer__docs a:hover,
.site-footer__docs a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .5em;
}

.site-footer__payments {
  width: 220px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #fff;
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
