@font-face {
  font-family: "MTS Wide";
  src: url("/fonts/MTSWide-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MTS Wide";
  src: url("/fonts/MTSWide-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "MTS Text";
  src: url("/fonts/MTSText-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MTS Text";
  src: url("/fonts/MTSText-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "MTS Text";
  src: url("/fonts/MTSText-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "MTS Text";
  color: #1d2023;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --red: #ff0032;
  --deep-red: #e6002e;
  --ink: #1d2023;
  --muted: #626c77;
  --light-gray: #f2f3f7;
  --light-gray-hover: #e8eaf0;
  --line: #e2e5eb;
  /* Единые скругления: крупные блоки, поля и кнопки, плашки внутри карточек, мелкие значки. */
  --r-card: 24px;
  --r-control: 16px;
  --r-chip: 12px;
  --r-small: 8px;
}

* { box-sizing: border-box; }
:where(
  h1, h2, h3, h4, h5, h6
) {
  font-family: "MTS Wide";
  font-weight: 500;
}
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.city-picker-trigger, .city-selection-panel, .city-confirmation-actions,
.city-search-input, .city-option { font-family: "MTS Text"; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header { height: 64px; flex: 0 0 64px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(29, 32, 35, .06); position: sticky; top: 0; z-index: 15; box-shadow: 0 5px 16px rgba(29, 32, 35, .08); transition: transform .22s ease; will-change: transform; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner, .brand, .header-phone { display: flex; align-items: center; }
.header-inner { height: 100%; justify-content: space-between; }
.header-location, .header-contact { display: flex; align-items: center; }
.header-location { gap: 18px; }
.header-contact { gap: 18px; }
.city-picker-wrap { position: relative; }
.brand { gap: 10px; }
.header-logo { display: block; width: 204px; height: auto; }
.city-picker-trigger { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-control); padding: 12px 14px; color: var(--ink); background: white; cursor: pointer; font-size: 14px; font-weight: 500; }
.city-picker-trigger:hover { border-color: #c3c9d1; color: var(--red); }
.city-picker-label { font-weight: 500; }
.city-pin { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 16px; height: 16px; }
.city-pin img { display: block; width: 100%; height: 100%; object-fit: contain; }
.city-chevron { display: inline-grid; flex: 0 0 12px; width: 12px; height: 12px; place-items: center; }
.city-chevron::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.brand-mark { width: 37px; height: 37px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.brand-mark span { width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; position: relative; }
.brand-mark span::after { content: ""; position: absolute; width: 6px; height: 6px; background: white; border-radius: 50%; top: 3px; left: 3px; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -1px; }
.brand-divider { height: 29px; width: 1px; background: var(--line); margin-inline: 3px; }
.brand-caption { font-size: 10px; line-height: 1.35; color: var(--muted); }
.header-phone { flex-direction: column; align-items: flex-start; gap: 2px; white-space: nowrap; }
.phone-label { color: var(--muted); font-family: "MTS Text"; font-size: 12px; font-weight: 400; line-height: 1.2; }
.header-phone strong { font-family: "MTS Wide"; color: var(--ink); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1.2; transition: color .2s; }
.header-phone:hover { color: var(--ink); }
.header-phone:hover strong { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-control); background: var(--light-gray); color: var(--ink); font-family: "MTS Text"; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.header-action-primary { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; white-space: nowrap; line-height: 1.2; }
.header-action-primary { background: var(--red); color: white; }
.header-action-primary:hover { background: var(--deep-red); }
.header-action-primary:hover { transform: translateY(-2px); }
.header-action-support:hover { background: var(--light-gray-hover); }
.phone-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--red); }

.city-modal[hidden] { display: none; }
.city-modal.city-confirmation[hidden] { display: none; }
.city-modal { position: absolute; top: calc(100% + 10px); left: 0; z-index: 25; width: min(340px, calc(100vw - 32px)); opacity: 1; transform: translateY(0) scale(1); transform-origin: top left; transition: opacity .16s ease, transform .16s ease; }
.city-modal.is-closing { pointer-events: none; }
.city-confirm-name-group, .city-confirmation-prompt img { transform-origin: top left; }
/* Блок летит из кнопки целиком, а текст внутри переносится по дефису и пробелу вместе со знаком вопроса. */
.city-confirm-name-group { position: relative; display: inline-block; }
/* Копия названия шрифтом кнопки — нужна только на время анимации (см. morphCityName). */
.city-confirm-ghost { position: absolute; top: 0; left: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1; opacity: 0; pointer-events: none; }
.city-modal-panel { position: relative; overflow: hidden; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: white; box-shadow: 0 18px 42px rgba(29, 32, 35, .18); }
.city-modal-panel h2 { padding-right: 18px; }
.city-modal-description { margin: 12px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.city-modal.city-confirmation { position: absolute; top: 0; left: 0; z-index: 30; width: min(410px, calc(100vw - 40px)); max-width: calc(100vw - 40px); padding: 0; border-radius: var(--r-card); background: transparent; box-shadow: 0 12px 28px rgba(29, 32, 35, .14); transform-origin: top left; }
.city-confirmation .city-modal-panel { width: 100%; min-height: 112px; padding: 20px 16px 16px; border: 0; border-radius: var(--r-card); background: #fff; box-shadow: none; }
.city-confirmation-prompt { display: flex; align-items: center; gap: 9px; min-height: 18px; padding-left: 10px; }
.city-confirmation-prompt img { display: block; flex: 0 0 14px; width: 14px; height: 14px; object-fit: contain; filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(6036%) hue-rotate(337deg) brightness(101%) contrast(105%); }
.city-confirmation-prompt h2 { min-width: 0; margin: 0; color: var(--ink); font-family: "MTS Wide"; font-size: 15px; font-weight: 500; letter-spacing: normal; line-height: 1.4; overflow-wrap: anywhere; }
.city-confirmation-actions { display: flex; align-items: center; gap: 13px; margin-top: 15px; }
.city-confirmation-actions button { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-chip); cursor: pointer; }
.city-confirmation .city-modal-panel:focus { outline: none; }
.city-confirmation-actions button:focus-visible { outline: 3px solid rgba(255, 0, 50, .28); outline-offset: 2px; }
.city-confirm-yes { background: var(--red); color: #fff; }
.city-confirm-change { background: var(--light-gray); color: var(--muted); }
.city-confirm-change:hover { background: var(--light-gray-hover); }
.city-selection-modal[hidden] { display: none; }
.city-selection-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow: auto; padding: 24px; }
.city-selection-backdrop { position: absolute; inset: 0; border: 0; background: rgba(29, 32, 35, .62); cursor: default; animation: modal-fade-in .3s ease-out both; }
/* Выезд как у окна заявки: мягкое замедление в конце, без рывка. */
.city-selection-panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(880px, 100%); height: min(780px, 88vh); overflow: hidden; padding: 24px 32px 32px; border-radius: var(--r-card); background: white; box-shadow: 0 24px 80px rgba(0,0,0,.24); animation: modal-rise-in .42s cubic-bezier(.32, .72, 0, 1) both; }
.city-selection-panel:focus { outline: none; }
.city-selection-modal.is-closing { pointer-events: none; }
.city-selection-modal.is-closing .city-selection-backdrop { animation: modal-fade-out .2s ease-in both; }
.city-selection-modal.is-closing .city-selection-panel { animation: modal-sink-out .2s ease-in both; }
.city-selection-panel h2 { margin: 0; padding: 0 48px 0 0; font-family: "MTS Wide"; font-size: 25px; font-weight: 500; letter-spacing: normal; line-height: 1.3; }
.city-selection-panel > .eyebrow,
.city-region-heading { font-weight: 500; }
.city-selection-panel > h2 { font-weight: 500; }
.city-modal-close { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--light-gray); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.city-search { display: flex; flex: 0 0 58px; align-items: center; gap: 12px; height: 58px; margin: 38px 22px 0; padding: 0 22px; border-radius: var(--r-control); background: var(--light-gray); }
.city-search-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid #929ba5; border-radius: 50%; }
.city-search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #929ba5; content: ""; transform: rotate(45deg); transform-origin: left center; }
.city-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.city-search input::placeholder { color: var(--muted); opacity: 1; }
.city-search:focus-within { box-shadow: 0 0 0 2px #d7dbe2; }
.city-list { display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 34px 8vw; min-height: 0; margin-top: 62px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.city-region { display: grid; align-content: start; gap: 0; }
.city-current-option { grid-column: 1 / -1; justify-self: start; width: auto; min-height: 26px; margin-bottom: 4px; padding: 0; }
.city-region-heading { margin: 0 0 8px; color: var(--ink); font-family: "MTS Wide"; font-size: 30px; font-weight: 500; line-height: 1.05; }
.city-region:first-child .city-region-heading { margin-top: 0; }
.city-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 43px; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--ink); text-align: left; font-size: 17px; font-weight: 500; cursor: pointer; }
.city-option.city-current-option { grid-column: 1 / -1; width: fit-content; min-height: 26px; margin-bottom: 4px; }
.city-option.city-current-option .city-option-check { display: none; }
.city-option:hover, .city-option.is-selected { color: var(--red); background: var(--light-gray); }
.city-current-option.is-selected { color: var(--ink); background: transparent; }
.city-option-name { min-width: 0; }
.city-option-status { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 500; }
.city-option-no-tariffs:hover .city-option-status, .city-option-no-tariffs.is-selected .city-option-status { color: var(--muted); }
.city-option-check { color: var(--red); font-size: 15px; }
.city-list-status { grid-column: 1 / -1; margin: 0; padding: 14px 0; color: var(--muted); font-size: 15px; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-sink-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.98); } }
.action-modal[hidden] { display: none; }
.action-modal.is-closing { pointer-events: none; }
.action-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.action-modal-backdrop { position: absolute; inset: 0; border: 0; border-radius: 0; background: rgba(29, 32, 35, .45); cursor: pointer; animation: modal-fade-in .22s ease-out both; }
.action-modal-panel { position: relative; z-index: 1; width: min(460px, 100%); max-height: min(760px, 90vh); overflow: auto; padding: 28px 24px 24px; border-radius: var(--r-card); background: white; box-shadow: 0 24px 80px rgba(0,0,0,.24); animation: modal-rise-in .28s cubic-bezier(.32, .72, 0, 1) both; }
.action-modal.is-closing .action-modal-backdrop { animation: modal-fade-out .18s ease-in both; }
.action-modal.is-closing .action-modal-panel { animation: modal-sink-out .18s ease-in both; }
.action-modal-description { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.action-modal-panel h2 { margin: 0 0 18px; padding-right: 48px; color: var(--ink); font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.action-modal-panel.connect-modal-panel h2 { margin-bottom: 6px; }
.action-modal-close svg, .city-modal-close svg { display: block; width: 14px; height: 14px; }
.action-modal-close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.action-modal-open { overflow: hidden; }
.modal-lead-form { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.modal-lead-form .form-message { font-size: 13px; }
.modal-lead-form .lead-address-input,
.modal-lead-form input[name="phone"],
.modal-lead-form input[name="name"] { font-family: "MTS Text"; font-size: 13px; font-weight: 400; letter-spacing: normal; line-height: normal; }
.modal-lead-form .hero-contact-fields input[name="phone"],
.modal-lead-form .hero-contact-fields input[name="name"] { border-radius: var(--r-control); }
.modal-lead-form .lead-address-input { padding: 0 14px; }
.modal-lead-form label { margin-bottom: 0; }
.tariff-sheet-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-control); }
.tariff-sheet-summary[hidden] { display: none; }
.tariff-sheet-summary svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--red); }
.tariff-sheet-summary-text { display: grid; flex: 1; min-width: 0; gap: 2px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.3; }
.tariff-sheet-summary-text strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.tariff-sheet-change { flex: 0 0 auto; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--red); font-size: 14px; cursor: pointer; }
@media (min-width: 601px) {
  .modal-lead-form .hero-contact-fields input[name="phone"], .modal-lead-form .hero-contact-fields input[name="name"], .modal-lead-form .lead-address-input { height: 50px; font-size: 15px; }
}
.address-autocomplete { position: relative; z-index: 1; }
.address-autocomplete:focus-within { z-index: 5; }
.address-suggestions[hidden] { display: none; }
.address-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 6; display: grid; gap: 2px; max-height: min(280px, 40vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; box-shadow: 0 16px 38px rgba(29, 32, 35,.14); animation: suggestion-rise-in .14s ease-out; }
.address-suggestion-option { width: 100%; min-height: 40px; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; line-height: 1.4; cursor: pointer; transition: background .14s ease, color .14s ease; }
.address-suggestion-option:hover, .address-suggestion-option.is-active { background: var(--light-gray); color: var(--ink); }
.address-suggestion-option:focus-visible { outline: 2px solid rgba(255,0,50,.3); outline-offset: -2px; }
/* Свой слой: кнопка (z-index 7) и стрелка (8) не должны перекрывать подсказки адреса в соседнем поле. */
.select-dropdown { position: relative; z-index: 1; min-width: 0; }
.select-dropdown.is-open { z-index: 6; }
.select-dropdown > select.select-native { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.select-trigger { position: relative; z-index: 7; display: block; width: 100%; height: 58px; padding: 0 44px 0 22px; border: 1px solid transparent; border-radius: var(--r-control); background: #fff; color: var(--ink); font-family: "MTS Text"; font-size: 15px; font-weight: 400; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.select-dropdown::after { content: ""; position: absolute; top: 29px; right: 18px; width: 14px; height: 14px; margin-top: -7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%2368717f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; z-index: 8; pointer-events: none; transition: transform .2s ease; }
.select-dropdown.is-open::after { transform: rotate(180deg); }
.select-trigger:hover { border-color: var(--line); }
.select-dropdown.is-open .select-trigger { border-color: transparent; background: transparent; }
.select-trigger:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.select-dropdown { --select-height: 58px; }
.select-options { position: absolute; top: 0; left: 0; right: 0; z-index: 9; display: grid; gap: 2px; margin: 0; padding: 6px; border-radius: var(--r-control); background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 18px 40px rgba(29, 32, 35,.18); list-style: none; animation: select-expand .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes select-expand { from { clip-path: inset(0 0 calc(100% - var(--select-height)) 0 round var(--r-control)); } to { clip-path: inset(0 0 0 0 round var(--r-control)); } }
.select-options[hidden] { display: none; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: calc(var(--select-height) - 12px); padding: 10px 16px; border-radius: 10px; color: var(--muted); font-family: "MTS Text"; font-size: 15px; line-height: 1.3; cursor: pointer; transition: background .14s ease, color .14s ease; }
.select-option.is-active { background: var(--light-gray); color: var(--ink); }
.select-option[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.select-option[aria-selected="true"]::after { content: ""; flex: 0 0 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23ff0032' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.4 5.8 10 11 4.2'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes suggestion-rise-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.modal-contact-fields { max-height: none; overflow: visible; opacity: 1; transform: none; }
.address-suggestion-message { min-height: 0; margin: 0; color: var(--red); font-size: 10px; line-height: 1.4; }
.address-suggestion-message:empty { display: none; }
/* Итог проверки адреса по списку подключённых домов. */
.address-coverage { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-chip); background: var(--light-gray); color: var(--ink); font-size: 14px; line-height: 1.4; }
.address-coverage[hidden] { display: none; }
.address-coverage::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--muted) center / 12px 12px no-repeat; }
.address-coverage.is-available::before { background-color: #1f9d55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5'/%3E%3C/svg%3E"); }
.address-coverage.is-unavailable::before, .address-coverage.is-incomplete::before, .address-coverage.is-unknown::before { background-color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3v3.5M6 9h.01'/%3E%3C/svg%3E"); }
.address-coverage.is-loading::before { border: 2px solid var(--line); border-top-color: var(--red); background: none; animation: coverage-spin .8s linear infinite; }
@keyframes coverage-spin { to { transform: rotate(360deg); } }
/* На синей панели проверки адреса плашка полупрозрачная и белая. */
/* «Ищем адрес в Казани · Другой город» над полем адреса. */
.address-city-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.address-city-note[hidden] { display: none; }
.address-city-note strong { color: var(--ink); font-weight: 500; }
.address-city-change { padding: 0; border: 0; background: none; color: var(--red); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.connection-check-panel .address-city-note, .connection-check-panel .address-city-note strong, .connection-check-panel .address-city-change { color: #fff; }
.connection-check-panel .address-coverage { background: rgba(255, 255, 255, .18); color: #fff; }
.connection-check-panel .address-coverage.is-available { background: rgba(255, 255, 255, .26); }
.support-modal-panel > p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.support-modal-panel .eyebrow { margin-bottom: 8px; }
.support-modal-panel { width: min(560px, 100%); }
.support-downloads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0 0; padding: 12px; border-radius: var(--r-card); background: var(--light-gray); }
.support-phone { color: var(--ink); font-weight: 700; white-space: nowrap; transition: color .2s; }
.support-phone:hover { color: var(--red); }
.app-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.app-stores li { display: flex; min-width: 0; }
.app-store-link { display: grid; place-items: center; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: var(--r-chip); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.app-store-link img { display: block; width: auto; max-width: 100%; height: 30px; object-fit: contain; }
.app-store-link:hover { box-shadow: 0 6px 18px rgba(29, 32, 35,.1); }
.app-store-link:hover { transform: translateY(-1px); }
.app-store-link:focus-visible { outline: 3px solid rgba(255,0,50,.35); outline-offset: 2px; }

.hero { overflow: hidden; background: linear-gradient(180deg, rgb(89, 104, 196) 0%, rgb(118, 131, 209) 50%, rgb(150, 160, 222) 72%, #fff 100%); color: #fff; min-height: 490px; position: relative; }
.hero-grid { min-height: 365px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 84px); padding-block: 48px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.72); }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 6vw, 78px); letter-spacing: -.03em; line-height: 1.04; margin: 25px 0 21px; font-weight: 500; }
h1 span { color: #ffb5b7; }
.hero-subtitle { display: grid; width: 100%; }
.hero-subtitle > span { color: #fff; }
.hero-subtitle-current, .hero-subtitle-reserve { grid-area: 1 / 1; transition: opacity .42s cubic-bezier(.22, .61, .36, 1), transform .42s cubic-bezier(.22, .61, .36, 1); }
.hero-subtitle-current.is-leaving { opacity: 0; transform: translateY(-5px); }
.hero-subtitle-reserve { visibility: hidden; pointer-events: none; }
.hero-description { max-width: 440px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.8; margin-bottom: 29px; }
.hero-highlights { display: none; }
.address-card { order: -1; padding: 32px; border-radius: var(--r-card); background: #fff; color: var(--ink); box-shadow: 0 22px 50px rgba(100, 0, 5, .2); transition: box-shadow .22s ease; }
.address-card-icon { width: 38px; height: 38px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: #fff0f0; }
.address-card-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.address-card-kicker { margin-bottom: 8px; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.address-card h2 { margin: 0 0 20px; font-size: 27px; letter-spacing: -.02em; line-height: 1.15; text-transform: uppercase; }
.address-card h2 span:first-child { color: var(--ink); }
.address-card-copy { display: none; }
.address-check-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 192px) 192px; align-items: stretch; gap: 11px; margin: 0; }
.address-check-form .quick-address-field { grid-column: 1 / -1; }
.address-check-form label { display: block; min-width: 0; }
.address-check-form input:not([type="checkbox"]), .address-check-form select { height: 58px; width: 100%; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-control); outline: none; color: var(--ink); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.address-check-form select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%2368717f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; font-family: "MTS Text"; font-weight: 400; }
.address-check-form input:not([type="checkbox"]):focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.address-check-form select:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.address-check-form input::placeholder { color: var(--muted); opacity: 1; }
.address-check-form label.is-phone-invalid input,
.address-check-form label.is-address-invalid input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,0,50,.22); }
.address-check-form label.is-phone-invalid.is-shaking,
.address-check-form label.is-address-invalid.is-shaking { animation: quick-phone-shake .42s ease; }
.address-check-form label.is-phone-valid input { border-color: #56b77b; box-shadow: 0 0 0 3px rgba(55,168,99,.22); }
@keyframes quick-phone-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.address-check-form .button { grid-column: 3; grid-row: 2; width: 100%; min-width: 0; min-height: 58px; margin: 0; border-radius: var(--r-control); justify-content: center; }
.personal-data-consent-group { display: block; }
.personal-data-consent-group .personal-data-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); font-family: "MTS Text"; font-size: 13px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.personal-data-consent-group .personal-data-consent > span { display: block; margin: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.personal-data-consent input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; margin: 0; padding: 0; border: 1.5px solid #b0b7c0; border-radius: 6px; background: #fff center / 12px 12px no-repeat; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.personal-data-consent input[type="checkbox"]:hover { border-color: var(--red); }
.personal-data-consent input[type="checkbox"].is-consent-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 0, 50, .22); animation: phone-field-shake .5s ease; }
.personal-data-consent input[type="checkbox"]:checked { border-color: var(--red); background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5'/%3E%3C/svg%3E"); }
.personal-data-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.personal-data-consent a:hover { text-decoration-thickness: 2px; }
.personal-data-policy-note { margin: 4px 0 0 30px; color: var(--muted); font-family: "MTS Text"; font-size: 12px; font-weight: 400; line-height: 1.4; }
.personal-data-policy-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.personal-data-policy-note a:hover { text-decoration-thickness: 2px; }
.address-check-form .personal-data-consent-group { grid-column: 1 / -1; }
.connection-check-panel .personal-data-consent-group { padding: 4px 10px; }
.connection-check-panel .personal-data-consent-group .personal-data-consent,
.connection-check-panel .personal-data-consent a,
.connection-check-panel .personal-data-policy-note { color: #fff; }
.personal-data-consent input:focus-visible { outline: 3px solid rgba(255, 0, 50, .28); outline-offset: 2px; }
.address-check-message { display: none; margin: 12px 0 0; font-size: 10px; line-height: 1.6; }
.address-check-message.is-visible { display: block; }
.address-check-message.is-success { color: #247447; }
.address-check-message.is-error { color: var(--red); }
.address-check-form button:disabled { cursor: not-allowed; opacity: .72; }
.address-card-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button { display: inline-flex; align-items: center; justify-content: space-between; border: 0; border-radius: var(--r-control); min-height: 52px; padding: 0 21px; gap: 26px; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
/* Единый стиль текста кнопок: по гайду MTS Wide только для заголовков блоков, в кнопках MTS Text Medium. */
.button, .tariff-connect-button, .city-confirmation-actions button,
.footer-support-button, .legal-home-button { font-family: "MTS Text"; font-size: 16px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.button-light { background: #fff; color: var(--red); }
.button-light:hover { background: #fff1f1; }
.button span { font-size: 17px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.68); margin-top: 17px; font-size: 10px; }
.note-check { border: 1px solid rgba(255,255,255,.5); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.hero-art { height: 400px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 390px; height: 220px; }
.orbit-two { width: 310px; height: 175px; }
.router { position: relative; width: 276px; height: 152px; margin-top: 80px; border-radius: 32px 32px 24px 24px; background: linear-gradient(155deg,#fff 0%,#f5ecec 70%,#d8cdcd 100%); transform: perspective(420px) rotateX(10deg) rotateZ(-7deg); box-shadow: 2px 34px 50px rgba(87,0,5,.3); }
.router-top { position: absolute; left: 0; right: 0; height: 43px; top: -25px; border-radius: 50%; background: linear-gradient(170deg,#fff,var(--line)); }
.router-light { position: absolute; left: 50%; top: 30px; width: 44px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: var(--red); box-shadow: 0 0 13px var(--red); }
.router-front { display: flex; gap: 13px; justify-content: center; padding-top: 56px; }
.router-front i { width: 4px; height: 4px; background: #c7bfc0; border-radius: 50%; }
.router-leg { position: absolute; bottom: -15px; width: 43px; height: 18px; background: #c9c0c1; }
.router-leg-left { left: 39px; transform: skew(-30deg); }
.router-leg-right { right: 39px; transform: skew(30deg); }
.speed-badge { position: absolute; z-index: 1; top: 47px; right: 13px; width: 112px; height: 112px; background: #fff; color: var(--red); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg); box-shadow: 0 16px 30px rgba(101,0,4,.16); }
.speed-badge span { font-size: 10px; font-weight: 700; }
.speed-badge strong { font-size: 34px; line-height: 1.05; letter-spacing: -.07em; }
.speed-badge small { font-size: 9px; }
.signal { position: absolute; border: 2px solid transparent; border-top-color: rgba(255,255,255,.45); border-radius: 50%; transform: rotate(10deg); }
.signal-one { width: 48px; height: 25px; top: 91px; left: 135px; }
.signal-two { width: 73px; height: 38px; top: 81px; left: 122px; }
.signal-three { width: 100px; height: 50px; top: 70px; left: 109px; }
.art-caption { position: absolute; right: 10px; bottom: 3px; font-size: 10px; line-height: 1.6; color: rgba(255,255,255,.7); text-align: right; }
.hero-bottom { min-height: 60px; display: flex; align-items: center; justify-content: flex-end; font-size: 10px; color: var(--muted); }
.hero-scroll-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-family: "MTS Text"; font-weight: 500; letter-spacing: .02em; line-height: 1; transition: color .2s ease; }
/* У MTS Wide нет начертания жирнее 500, поэтому толщину добавляет обводка в цвет текста.
   text-box обрезает пустые поля шрифта, и текст центрируется со стрелкой по заглавным буквам. */
.hero-scroll-text { -webkit-text-stroke: .45px currentColor; text-box: trim-both cap alphabetic; }
.hero-scroll-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255, 0, 50, .35); border-radius: 50%; color: var(--red); animation: hero-scroll-nudge 2.4s ease-in-out infinite; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.hero-scroll-link:hover { color: var(--red); }
.hero-scroll-link:hover .hero-scroll-arrow { border-color: var(--red); background: var(--red); color: #fff; animation-play-state: paused; }
.hero-scroll-link:focus-visible { outline: 3px solid rgba(255, 0, 50, .28); outline-offset: 4px; border-radius: 6px; }
.hero-scroll-arrow svg { display: block; width: 10px; height: 10px; }
@keyframes hero-scroll-nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }

.section { padding: 80px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.eyebrow-red { color: var(--red); }
h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; line-height: 1.12; margin: 16px 0 0; }
.section-heading > p { margin-bottom: 4px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.tariff-city-context { margin: 8px 0 0; color: var(--ink); font-family: "MTS Wide"; font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
/* Скрытые подсказки у краёв карточек не должны расширять страницу. */
.tariffs-section { overflow-x: clip; background: #fff; }
.tariffs-section .section-heading { margin-bottom: 30px; }
.tariffs-section .section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.3; }
.tariffs-section .tariff-city-context { margin: 6px 0 0; color: var(--ink); font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.12; }
.tariff-city-preposition:not(:empty) { margin-right: .26em; }
.tariff-city-name { color: var(--red); }
.tariff-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tariff-categories[hidden] { display: none; }
.tariff-categories .tariff-category { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--light-gray); color: var(--ink); font-family: "MTS Text"; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tariff-categories .tariff-category:hover { background: var(--light-gray-hover); }
.tariff-categories .tariff-category:focus-visible { outline: 3px solid rgba(255, 0, 50, .3); outline-offset: 2px; }
.tariff-categories .tariff-category.is-active { background: var(--red); color: #fff; }
.tariff-grid > .tariff-disclaimer { grid-column: 1 / -1; }
.tariff-grid { display: grid; grid-auto-rows: 1fr; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 22px; }
.tariff-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: 0 8px 24px rgba(36, 54, 74, .08); transition: box-shadow .2s ease; }
.tariff-card:hover { box-shadow: 0 13px 30px rgba(36, 54, 74, .13); }
.tariff-card-content { display: grid; align-content: start; gap: 0; }
.tariff-name { margin: 0 0 12px; color: var(--ink); font-family: "MTS Text"; font-size: clamp(24px, 2vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
.tariff-speed-label-unit { display: none; }
.tariff-speed-label { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tariff-speeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(134px, 1fr)); gap: 6px; margin: 0 0 14px; }
.tariff-speed { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 8px 5px 10px; border-radius: var(--r-chip); background: var(--light-gray); color: var(--muted); font-family: "MTS Text"; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease; }
.tariff-speed:hover { background: var(--light-gray-hover); }
.tariff-speed input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; border: 2px solid #8d969f; border-radius: 50%; background: #fff; appearance: none; cursor: pointer; transition: border .15s ease; }
.tariff-speed input:checked { border: 5px solid var(--red); }
.tariff-speed input:focus-visible { outline: 2px solid rgba(255, 0, 50, .4); outline-offset: 2px; }
.tariff-speed:has(input:checked) { color: var(--ink); }
.tariff-features { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.tariff-features li { display: inline-flex; align-items: center; gap: 6px; }
.tariff-feature-icon { display: grid; width: 24px; height: 24px; place-items: center; color: #0070e5; }
.tariff-feature-icon svg { display: block; width: 22px; height: 22px; }
.tariff-features strong { color: var(--ink); font-family: "MTS Text"; font-size: 17px; font-weight: 500; white-space: nowrap; }
.tariff-infinity { display: inline-block; width: 1.4em; height: .74em; vertical-align: -.04em; }
.tariff-infinity svg { display: block; width: 100%; height: 100%; }
.tariff-included { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tariff-included li { display: flex; align-items: center; gap: 10px; }
.tariff-included img { display: block; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; }
.tariff-included strong { color: var(--ink); font-family: "MTS Text"; font-size: 17px; font-weight: 500; line-height: 1.25; }
.tariff-included li[hidden] { display: none; }
/* Пиктограмма в кружке того же размера, что логотип KION, чтобы строки стояли ровно. */
.tariff-included-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--light-gray); color: var(--ink); }
.tariff-included-icon svg { display: block; width: 18px; height: 18px; }
.tariff-included-more { justify-self: start; margin: -6px 0 14px; padding: 4px 0; border: 0; background: none; color: var(--red); font: 500 15px/1.3 "MTS Text", sans-serif; cursor: pointer; }
.tariff-included-more:hover { color: var(--deep-red); }
.tariff-included-more:focus-visible { outline: 2px solid rgba(255, 0, 50, .4); outline-offset: 2px; border-radius: 4px; }
.tariff-notes { display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tariff-notes li { display: flex; align-items: center; }
/* Значок нарисован картинкой: буква из шрифта не встаёт ровно по центру круга. */
.tariff-hint { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; margin-left: 5px; padding: 0; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='none' stroke='%23626c77' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='4.9' r='1' fill='%23626c77'/%3E%3Crect x='7.2' y='6.9' width='1.6' height='4.9' rx='.8' fill='%23626c77'/%3E%3C/svg%3E") center / 100% 100% no-repeat; cursor: help; }
.tariff-hint::after { content: attr(data-hint); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 3; width: max-content; max-width: 240px; padding: 9px 12px; border-radius: var(--r-chip); background: #1d2023; color: #fff; font: 400 13px/1.4 "MTS Text", sans-serif; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.tariff-hint:hover::after, .tariff-hint:focus-visible::after, .tariff-hint:focus::after { opacity: 1; transform: translate(-50%, 0); }
.tariff-card-footer { display: grid; justify-items: start; gap: 8px; margin: auto 0 0; }
.tariff-promotion { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.tariff-promotion-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 10px; border-radius: var(--r-small); background: #0070e5; color: #fff; font-family: "MTS Text"; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tariff-promotion-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tariff-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.tariff-price { color: var(--ink); font-family: "MTS Text"; font-size: clamp(24px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.tariff-old-price { color: #8d969f; font-family: "MTS Text"; font-size: 17px; white-space: nowrap; }
.tariff-connect-button { justify-self: stretch; min-height: 48px; padding: 0 30px; border: 0; border-radius: var(--r-control); background: var(--red); color: #fff; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.tariff-card .tariff-connect-button { font-size: 17px; }
.tariff-card .tariff-connect-button:hover { transform: translateY(-1px); background: var(--deep-red); }
.tariff-card .tariff-connect-button:focus-visible { outline: 3px solid rgba(255, 0, 50, .3); outline-offset: 3px; }
.tariff-featured { border-color: var(--line); box-shadow: 0 10px 28px rgba(36, 54, 74, .08); }
.popular-label { display: none; }
.tariff-bottom { display: none; }
.speed { display: none; }
.tariff-bottom button { cursor: pointer; }
.tariff-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 16px 0 0; }
.tariffs-section { padding-top: 64px; }

/* Бегущая строка с преимуществами над тарифами. Лента из двух одинаковых списков сдвигается на ширину одного и замыкается.
   Со скриптом ленту двигает app.js (плавно тормозит при наведении), CSS-анимация остаётся запасной. */
.benefits-marquee { position: relative; z-index: 1; overflow: hidden; margin-bottom: -26px; padding-top: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .12) 3%, rgba(0, 0, 0, .45) 7%, rgba(0, 0, 0, .8) 11%, var(--ink) 15%, var(--ink) 85%, rgba(0, 0, 0, .8) 89%, rgba(0, 0, 0, .45) 93%, rgba(0, 0, 0, .12) 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .12) 3%, rgba(0, 0, 0, .45) 7%, rgba(0, 0, 0, .8) 11%, var(--ink) 15%, var(--ink) 85%, rgba(0, 0, 0, .8) 89%, rgba(0, 0, 0, .45) 93%, rgba(0, 0, 0, .12) 97%, transparent 100%); }
.benefits-marquee-track { display: flex; width: max-content; animation: benefits-marquee 90s linear infinite; will-change: transform; }
.benefits-marquee.is-scripted .benefits-marquee-track { animation: none; }
/* Поля сверху и снизу — запас под тень и увеличение плашки при наведении, иначе их срежет overflow.
   Лишнее нижнее поле съедает отрицательный отступ у .benefits-marquee, и тень ложится поверх следующего блока. */
.benefits-marquee-list { display: flex; flex: 0 0 auto; gap: 14px; margin: 0; padding: 22px 14px 48px 0; list-style: none; }
.benefits-marquee-list > li { display: flex; }
.marquee-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 26px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; color: var(--ink); font-family: "MTS Text"; font-size: 17px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px rgba(36, 54, 74, .07); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.marquee-chip-icon { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: var(--r-chip); background: #fff0f2; color: var(--red); transition: background .3s ease; }
.marquee-chip-icon svg { display: block; width: 24px; height: 24px; }
.marquee-chip-icon img { display: block; width: 30px; height: 30px; border-radius: 50%; }
.marquee-chip:focus-visible { outline: 3px solid rgba(255, 0, 50, .3); outline-offset: 2px; }
@keyframes benefits-marquee { to { transform: translateX(-50%); } }
@media (hover: hover) {
  .marquee-chip:hover { border-color: #ffd6de; box-shadow: 0 12px 28px rgba(36, 54, 74, .12); transform: translateY(-2px) scale(1.04); }
  .marquee-chip:hover .marquee-chip-icon { background: #ffe3e8; }
}
/* Карточка, к которой привела плашка, коротко подсвечивается. */
.benefit-card { scroll-margin-top: 100px; }
.benefit-card.is-highlighted { animation: benefit-highlight 1.8s ease; }
@keyframes benefit-highlight {
  0%, 35% { box-shadow: 0 0 0 3px rgba(255, 0, 50, .35), 0 14px 34px rgba(36, 54, 74, .12); }
  100% { box-shadow: 0 0 0 3px rgba(255, 0, 50, 0), 0 8px 24px rgba(36, 54, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .benefits-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .benefits-marquee-track { animation: none; }
  .benefits-marquee-list[aria-hidden="true"] { display: none; }
}

/* «Почему МТС»: плитка 4 колонки, широкие карточки на две, dense закрывает дыры при двух колонках. */
.benefits-section { padding: 0 0 80px; background: #fff; }
.benefits-title { margin: 0 0 32px; color: var(--ink); }
.benefits-title span { color: var(--red); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin: 0; padding: 0; list-style: none; }
.benefit-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 28px; border: 1px solid transparent; border-radius: var(--r-card); background: var(--light-gray); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
/* Широкие карточки устроены как узкие (значок сверху), а текст крупнее, чтобы занимать ширину без пустоты посередине. */
.benefit-card-wide { grid-column: span 2; }
.benefit-card-wide .benefit-text h3 { font-size: 24px; }
.benefit-card-wide .benefit-text p { max-width: 460px; font-size: 17px; }
/* Логотипы KION и гейминга одной высоты; поля сверху и снизу добивают их до высоты плашки с иконкой, чтобы заголовки в ряду стояли ровно. */
.benefit-logo { display: block; align-self: flex-start; width: auto; height: 40px; margin-block: 20px; border-radius: var(--r-small); }
.benefit-icon { display: grid; flex: 0 0 auto; place-items: center; width: 80px; height: 80px; border-radius: var(--r-card); background: #fff; color: var(--red); }
.benefit-icon svg { display: block; width: 36px; height: 36px; }
.benefit-text h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
.benefit-text p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.benefit-card-accent { background: linear-gradient(120deg, rgb(90, 100, 190) 0%, rgb(160, 168, 228) 100%) border-box; }
.benefit-card-accent .benefit-text h3 { color: #fff; font-size: 28px; }
.benefit-card-accent .benefit-icon { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #fff; }
.benefit-card-accent .benefit-text p { color: rgba(255, 255, 255, .88); }
@media (hover: hover) {
  .benefit-card:hover { border-color: var(--line); background: #fff; box-shadow: 0 8px 24px rgba(36, 54, 74, .08); }
  .benefit-card-accent:hover { border-color: transparent; background: linear-gradient(120deg, rgb(90, 100, 190) 0%, rgb(160, 168, 228) 100%) border-box; box-shadow: 0 16px 40px rgba(61, 74, 136, .24); }
}
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.faq-section { padding: 82px 0; background: #fff; color: var(--ink); }
.faq-section h2 { margin: 0 0 26px; font-size: clamp(34px, 4vw, 46px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-right: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s ease, border-color .2s ease; }
.faq-item[open]:not(.is-collapsing) summary::after { border-color: var(--red); transform: rotate(225deg) translate(-2px, -1px); }
.faq-item summary:hover { color: var(--red); }
.faq-item summary:focus-visible { outline: 3px solid rgba(255, 0, 50, .22); outline-offset: 2px; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-item[open]:not(.is-collapsing) .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer p { max-width: 900px; margin: 0; padding: 0 40px 22px 2px; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow { animation: none; }
  .faq-answer, .faq-item summary::after { transition: none; }
}

/* Выше соседних блоков: иначе белый фон следующего блока срезает тень панели. */
.connection-section { position: relative; z-index: 1; padding: 48px 0; background: #fff; }
#connection, #faq { scroll-margin-top: 100px; }

/* Вопросы карточками; на широком экране заголовок с кнопкой стоит слева. */
.faq-intro-text { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.faq-intro .faq-intro-button { justify-content: center; width: auto; margin: 0; }
.faq-section { padding: 80px 0; }
.faq-section h2 { margin-bottom: 16px; }
.faq-intro { margin-bottom: 32px; }
.faq-list { display: grid; gap: 10px; border-top: 0; }
.faq-item { border: 1px solid transparent; border-radius: var(--r-card); background: var(--light-gray); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.faq-item:hover { background: var(--light-gray-hover); }
.faq-item[open]:not(.is-collapsing) { border-color: var(--line); background: #fff; box-shadow: 0 8px 24px rgba(36, 54, 74, .08); }
.faq-item summary { min-height: 76px; gap: 24px; padding: 18px 20px 18px 28px; border-radius: var(--r-card); font-family: "MTS Text"; font-size: 18px; font-weight: 500; line-height: 1.35; }
.faq-item summary:hover { color: var(--ink); }
.faq-item summary::after { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; border: 0; border-radius: 50%; background-color: #fff; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-position: center; background-repeat: no-repeat; background-size: 14px 2px, 2px 14px; transform: none; transition: transform .28s ease, background-color .25s ease; }
.faq-item[open]:not(.is-collapsing) summary::after { border: 0; background-color: var(--red); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); transform: rotate(45deg); }
.faq-answer p { max-width: none; padding: 0 84px 14px 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-answer-inner p:last-child { padding-bottom: 26px; }
@media (min-width: 1000px) {
  .faq-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; gap: 72px; }
  .faq-intro { position: sticky; top: 100px; margin-bottom: 0; }
}
#tariffs { scroll-margin-top: 0; }
.connection-section > .container { width: min(1160px, calc(100% - 64px)); }
.connection-check-panel { padding: 40px; border-radius: var(--r-card); background: linear-gradient(90deg, rgb(90, 100, 190) 0%, rgb(200, 200, 240) 100%); box-shadow: 0 20px 55px rgba(61, 74, 136, .16); transition: box-shadow .22s ease; }
.connection-copy { max-width: none; margin: 0 0 24px; text-align: left; }
.connection-copy h2 { margin: 0 0 8px; color: #fff; font-family: "MTS Wide"; font-size: clamp(27px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.connection-copy > p { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }
.connection-assurance { margin: 12px 0 0; color: #fff; font-size: 10px; line-height: 1.5; }
.connection-assurance a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.form-legal a:hover { color: var(--red); }
@media (hover: hover) {
  .address-card:hover { box-shadow: 0 28px 62px rgba(100, 0, 5, .34); }
  .connection-check-panel:hover { box-shadow: 0 27px 68px rgba(61, 74, 136, .32); }
}
.lead-form { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: 0 12px 38px rgba(29, 32, 35,.06); }
.hero-lead-form { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.hero-lead-form .button-red { margin-top: 2px; }
.hero-lead-form .personal-data-consent-group { margin: 0; }
.hero-contact-fields { display: grid; gap: 13px; }
.hero-contact-fields { grid-template-rows: 1fr; max-height: 180px; overflow: visible; opacity: 1; transform: translateY(0); transition: max-height .35s ease, opacity .25s ease, transform .35s ease; }
.hero-contact-fields.is-collapsed { grid-template-rows: 0fr; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hero-contact-fields > label { min-height: 0; }
.hero-contact-fields > .lead-name-field { max-height: 0; margin-top: -13px; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: max-height .3s ease, margin .3s ease, padding .3s ease, opacity .2s ease, transform .3s ease; }
/* Поле скрывается через overflow, поэтому вокруг него нужен запас: иначе край срезается при дробном масштабе. */
.hero-contact-fields > .lead-name-field.is-expanded { max-height: 66px; margin: -4px; padding: 4px; opacity: 1; transform: translateY(0); }
.lead-form label { display: block; min-width: 0; margin-bottom: 0; }
.lead-form label > span { display: block; color: var(--muted); font-weight: 700; font-size: 9px; margin: 0 0 7px 1px; }
.lead-form input, .lead-form select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--r-control); outline: 0; background: #fff; padding: 0 12px; color: var(--ink); font-size: 11px; }
.lead-form input::placeholder { color: #b0b7c0; }
.lead-form input:focus, .lead-form select:focus { border-color: var(--line); box-shadow: none; }
.hero-contact-fields input[name="phone"],
.hero-contact-fields input[name="name"] { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-control); font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.hero-contact-fields input[name="phone"]::placeholder,
.hero-contact-fields input[name="name"]::placeholder { color: #b0b7c0; opacity: 1; }
.hero-contact-fields input[name="phone"]:focus,
.hero-contact-fields input[name="name"]:focus { border-color: var(--line); box-shadow: none; }
.hero-contact-fields label.is-phone-valid input[name="phone"] { border-color: #56b77b; box-shadow: 0 0 0 3px rgba(55, 168, 99, .22); }
.hero-contact-fields label.is-phone-invalid input[name="phone"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,0,50,.22); }
.hero-contact-fields label.is-phone-invalid { animation: phone-field-shake .5s ease; }
.hero-submit-button { justify-content: center; }
/* Кнопка только выглядит выключенной: нажатие нужно, чтобы подсветить галочку согласия. */
.button-red.is-awaiting-consent, .button-red.is-awaiting-consent:hover, .button-red.is-awaiting-consent:active { background: #dfe2e7; color: #8d969f; transform: none; cursor: default; }
@keyframes phone-field-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.button-red { width: 100%; background: var(--red); color: #fff; margin-top: 4px; transition: transform .2s, background .2s, color .2s; }
.connection-section .address-check-message { margin: 14px 0 0; color: #fff; font-size: 12px; line-height: 1.5; }
.connection-section .address-check-message:empty { display: none; }
.connection-section .address-check-message.is-visible { display: block; }
.connection-section .address-check-message.is-error { color: #fff; }
.connection-section .address-check-message.is-success { color: #fff; }
.button-red:hover { background: var(--deep-red); }
.form-message { display: none; margin: 12px 0 0; font-size: 11px; line-height: 1.5; }
.form-message.is-visible { display: block; }
.form-message.is-error { color: var(--red); }
.form-message.is-success { color: #247447; }
.form-legal { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 12px 0 0; }

.site-footer { background: var(--light-gray); color: var(--ink); padding: 28px 0 50px; }
.footer-container { display: grid; gap: 46px; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(400px, 1.35fr) minmax(340px, 1.1fr); align-items: start; gap: 44px; }
.footer-support { display: grid; justify-items: start; gap: 13px; }
.footer-support-button { display: grid; place-items: center; width: min(100%, 373px); min-height: 56px; border-radius: var(--r-control); background: #fff; color: var(--ink); transition: color .2s ease, box-shadow .2s ease; }
.footer-support-button:hover { box-shadow: 0 5px 16px rgba(29, 32, 35, .08); }
.footer-legal-links { display: grid; gap: 17px; padding-top: 4px; }
.footer-legal-links a { color: var(--muted); font-size: 19px; line-height: 1.45; transition: color .2s ease; }
.footer-legal-links a:hover { color: var(--red); }
.footer-bottom { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 24px; border-top: 1px solid var(--line); padding-top: 38px; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { display: block; width: 215px; height: auto; }
.footer-disclaimer { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-disclaimer a { color: var(--red); transition: color .2s ease; }
.footer-disclaimer a:hover { color: var(--deep-red); }

/* Три колонки подвала с кнопками приложений помещаются только с этой ширины. */
@media (max-width: 1140px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-apps { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .tariff-grid { grid-auto-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.legal-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--light-gray); }
.legal-main { flex: 1; padding-top: 52px; padding-bottom: 64px; }
.legal-home-button { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; color: var(--muted); transition: border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.legal-home-button:hover { border-color: var(--red); color: var(--red); box-shadow: 0 4px 14px rgba(255, 0, 50, .08); }
.legal-home-button span { font-size: 16px; line-height: 1; }
.legal-main h1 { max-width: 820px; margin: 0 0 28px; color: var(--ink); font-size: clamp(30px, 5vw, 48px); line-height: 1.16; }
.legal-document-content { max-width: 820px; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; color: var(--muted); font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-document-content a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal-document-content a:hover { color: var(--deep-red); }
.legal-page .site-main { display: none; }
.legal-page .site-footer { margin-top: auto; }

/* Телефон с кнопками в шапку здесь уже не помещается. */
@media (max-width: 840px) {
  .header-phone { display: none; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 40px, 620px); }
  .connection-section > .container { width: min(620px, calc(100% - 40px)); }
  .connection-check-panel { padding: 32px; }
  .address-check-form { grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) minmax(110px, 192px); }
  .header-logo { width: 148px; }
  .header-location { gap: 12px; }
  .header-contact { gap: 12px; }
  .city-picker-trigger { padding: 9px 10px; font-size: 11px; }
  .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions { gap: 6px; }
  .header-action { padding-inline: 12px; font-size: 13px; }
  .header-phone strong { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 650px; }
  .address-card { order: 0; width: 100%; justify-self: stretch; }
  .tariff-card { min-height: 0; }
}

@media (max-width: 600px) {
  :root { --r-card: 20px; }
  .app-store-link { min-height: 56px; padding: 10px; }
  .app-store-link img { height: 26px; }
  .container { width: calc(100% - 40px); }
  .site-header { height: 64px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 19px; }
  .brand-caption { font-size: 9px; }
  .header-inner { gap: 8px; }
  .header-location { gap: 6px; min-width: 0; }
  .header-contact { flex: 1; justify-content: flex-end; min-width: 0; }
  .header-logo { width: clamp(130px, 42vw, 170px); }
  .header-phone { display: none; }
  .city-picker-trigger { margin-left: 0; margin-right: 0; gap: 4px; padding: 8px 7px; font-size: 11px; }
  .city-picker-label { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .city-pin { display: none; }
  .phone-icon { display: none; }
  .header-actions { margin-left: 0; }
  .header-action { min-height: 42px; padding: 0 5px; font-size: 10px; }
  .header-action-support { display: none; }
  .hero { min-height: auto; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: auto; gap: 20px; padding-block: 24px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(36px, 11vw, 46px); margin: 0 0 4px; }
  .hero-description { font-size: 12px; max-width: 360px; }
  .hero-highlights { font-size: 10px; }
  .hero-bottom { min-height: 53px; font-size: 8px; }
  .hero-bottom a { font-size: 13px; }
  .hero-scroll-arrow { width: 20px; height: 20px; }
  .section { padding: 48px 0; }
  .tariffs-section { padding-top: 44px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading > p { margin: 14px 0 0; font-size: 10px; }
  h2 { font-size: 30px; }
  .tariff-card { min-height: 0; padding: 20px; }
  /* Тарифы на телефоне спрятаны в шторку, поэтому блок стоит сразу под первым экраном и сам держит отступ сверху. */
  /* Тарифы на телефоне спрятаны в шторку, поэтому блок стоит сразу под первым экраном. Карточки по две в ряд. */
  .benefits-marquee { margin-bottom: -22px; padding-top: 4px; }
  .benefits-marquee-track { animation-duration: 70s; }
  .benefits-marquee-list { gap: 10px; padding: 18px 10px 40px 0; }
  .marquee-chip { gap: 12px; min-height: 62px; padding: 10px 20px 10px 10px; font-size: 15px; }
  .marquee-chip-icon { flex-basis: 42px; width: 42px; height: 42px; }
  .marquee-chip-icon svg { width: 22px; height: 22px; }
  .marquee-chip-icon img { width: 26px; height: 26px; }
  .benefits-section { padding: 24px 0 40px; }
  .benefits-title { margin-bottom: 16px; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .benefit-card, .benefit-card-wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .benefit-logo { height: 26px; margin-block: 11px; border-radius: 6px; }
  .benefit-icon { width: 48px; height: 48px; border-radius: var(--r-chip); }
  .benefit-icon svg { width: 26px; height: 26px; }
  .benefit-text h3, .benefit-card-wide .benefit-text h3, .benefit-card-accent .benefit-text h3 { margin-bottom: 4px; font-size: 15px; overflow-wrap: break-word; }
  .benefit-text p, .benefit-card-wide .benefit-text p { font-size: 13px; line-height: 1.4; }
  .faq-section { padding: 48px 0; }
  .faq-intro { margin-bottom: 20px; }
  .faq-intro-text { margin-bottom: 16px; font-size: 15px; }
  .faq-intro .faq-intro-button { width: 100%; }
  .faq-list { gap: 8px; }
  .faq-section h2 { margin-bottom: 10px; font-size: 30px; }
  .faq-item summary { min-height: 64px; gap: 12px; padding: 12px 12px 12px 18px; font-size: 16px; }
  .faq-item summary::after { flex-basis: 36px; width: 36px; height: 36px; }
  .faq-answer p { padding: 0 18px 12px; font-size: 15px; line-height: 1.55; }
  .faq-answer-inner p:last-child { padding-bottom: 20px; }
  .connection-section > .container { width: calc(100% - 40px); }
  .connection-check-panel { padding: 24px 20px; }
  .connection-copy { margin-bottom: 16px; }
  .connection-copy h2 { font-size: clamp(22px, 7vw, 28px); }
  .connection-copy > p { font-size: 14px; }
  .connection-section { padding: 32px 0; }
  .lead-form { padding: 18px; }
  .hero-lead-form { padding: 0; }
  .address-check-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .address-check-form input:not([type="checkbox"]), .address-check-form select { height: 46px; padding-inline: 14px; font-size: 13px; }
  .address-check-form select { padding-right: 32px; background-position: right 10px center; }
  .select-trigger { height: 46px; padding: 0 34px 0 14px; font-size: 15px; }
  .select-dropdown::after { top: 23px; right: 12px; }
  .select-dropdown { --select-height: 46px; }
  .select-option { padding-inline: 8px; }
  .select-option { font-size: 15px; }
  .address-check-form .button { grid-column: 1 / -1; grid-row: auto; }
  .address-check-form .button { min-height: 46px; }
  .address-check-form .button { width: 100%; }
  .connection-check-panel .personal-data-consent-group { margin-top: 2px; }
  #tariffs { scroll-margin-top: -8px; }
  .city-modal:not(.city-confirmation) { width: min(340px, calc(100vw - 32px)); }
  .city-modal.city-confirmation { position: fixed; top: 14px; right: 20px; left: auto; width: max-content; max-width: calc(100vw - 40px); }
  .city-confirmation .city-modal-panel { min-height: 0; padding: 20px 16px 16px; }
  .city-confirmation-prompt { padding-left: 4px; }
  .city-confirmation .city-modal-panel h2 { padding-right: 0; }
  .city-confirmation-prompt h2 { font-size: 15px; }
  .city-confirmation-actions { gap: 10px; margin-top: 15px; }
  .city-confirmation-actions button { min-height: 40px; padding: 0 12px; }
  .city-search { flex-basis: 52px; height: 52px; margin: 28px 6px 0; padding: 0 16px; }
  .city-list { grid-template-columns: 1fr; gap: 28px; margin-top: 42px; }
  .city-current-option { grid-column: 1; margin-bottom: 0; }
  .city-region-heading { font-size: 25px; }
  .city-selection-modal { padding: 16px; }
  .city-selection-panel { width: min(100%, 560px); height: 90vh; max-height: 90vh; padding: 24px 18px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-legal-links a { font-size: 16px; }
  .footer-apps { grid-column: 1 / -1; }
  .site-footer { padding: 28px 0 32px; }
  .footer-container { gap: 30px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-support { gap: 12px; }
  .footer-support-button { width: 100%; }
  .footer-legal-links { gap: 10px; }
  .footer-legal-links a { font-size: 14px; }
  .footer-apps { grid-column: auto; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .footer-brand img { width: 190px; }
  .footer-disclaimer { font-size: 13px; }
  .legal-main { padding-top: 30px; padding-bottom: 42px; }
  .legal-home-button { margin-bottom: 19px; }
  .legal-main h1 { margin-bottom: 22px; }
  .legal-document-content { min-height: 220px; padding: 20px; font-size: 14px; }
}

@media (max-width: 380px) {
  .site-header .container { width: calc(100% - 24px); }
  .city-modal.city-confirmation { right: 12px; max-width: calc(100vw - 24px); }
  .city-picker-trigger { padding-inline: 4px; }
  .city-picker-label { max-width: 54px; }
  .header-contact { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .tariff-card-super { animation: none; box-shadow: 0 8px 24px rgba(255, 0, 50, .24); }
}


.cookie-consent { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.cookie-consent-panel { position: absolute; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 1680px; margin-inline: auto; display: flex; align-items: center; gap: 24px; padding: 16px 16px 16px 32px; border-radius: 32px; background: #fff; box-shadow: 0 12px 40px rgba(29, 32, 35, .16); pointer-events: auto; transform: translateY(calc(100% + 40px)); transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.cookie-consent.is-visible .cookie-consent-panel { transform: translateY(0); }
.cookie-consent-text { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-family: "MTS Text"; font-size: 17px; line-height: 1.4; }
.cookie-consent-text a { color: #0077db; text-decoration: none; transition: color .2s ease; }
.cookie-consent-text a:hover { color: var(--red); }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: 16px; }
.cookie-consent-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: var(--r-control); font-family: "MTS Wide"; font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s ease; }
.cookie-consent-more { background: var(--light-gray); color: var(--ink); }
.cookie-consent-more:hover { background: var(--light-gray-hover); }
.cookie-consent-accept { background: var(--red); color: #fff; }
.cookie-consent-accept:hover { background: var(--deep-red); }
.cookie-consent-button:focus-visible { outline: 3px solid rgba(255, 0, 50, .28); outline-offset: 2px; }
@media (max-width: 720px) {
  .cookie-consent-panel { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px 16px; border-radius: var(--r-card); }
  .cookie-consent-text { font-size: 15px; }
  .cookie-consent-actions { gap: 8px; }
  .cookie-consent-button { flex: 1; min-height: 48px; padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  /* Плашка висит над нижней панелью (10 + 52 + 10px), а не на ней, чтобы кнопка «Тарифы» была видна, даже если плашку не закрыли.
     Слой ниже шторок (29): открытая шторка тарифов, меню или поддержки ложится поверх плашки. */
  .cookie-consent { z-index: 20; }
  .cookie-consent-panel { bottom: calc(80px + env(safe-area-inset-bottom)); transition: transform .42s cubic-bezier(.2, .8, .2, 1), bottom .28s ease; }
  /* Панель свернулась при прокрутке — плашка опускается к ручке. */
  body:has(.mobile-dock.is-collapsed) .cookie-consent-panel { bottom: calc(34px + env(safe-area-inset-bottom)); }
}

.mobile-dock, .mobile-sheet { display: none; }

@media (max-width: 600px) {
  /* Safari приближает страницу при фокусе на поле со шрифтом меньше 16px. */
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }

  /* Шапка в две строки: город над логотипом, номер справа от него. Подключить, тарифы и меню живут в нижней панели. */
  .site-header { height: 92px; flex: 0 0 92px; }
  .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; gap: 2px 8px; }
  .header-location { display: contents; }
  .brand { grid-column: 1; grid-row: 2; }
  .city-picker-wrap { grid-column: 1 / -1; grid-row: 1; justify-self: start; min-width: 0; max-width: 100%; }
  /* На телефоне город — не коробка с рамкой, а подпись над логотипом: булавка, город, стрелка. */
  .city-picker-trigger { max-width: 100%; gap: 5px; margin-left: -2px; padding: 6px 2px; border: 0; border-radius: 8px; background: none; font-size: 13px; line-height: 1.2; }
  /* Город стоит своей строкой во всю ширину шапки — места хватает, название не обрезаем. */
  .city-picker-label { flex: 0 0 auto; max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .city-picker-trigger .city-pin { display: inline-flex; width: 14px; height: 14px; }
  .city-picker-trigger .city-chevron { flex-basis: 10px; width: 10px; height: 10px; }
  .city-picker-trigger .city-chevron::before { width: 5px; height: 5px; margin-top: -3px; }
  .city-picker-trigger:focus-visible { outline: 2px solid rgba(255,0,50,.3); outline-offset: 2px; }
  .city-modal.city-confirmation { position: absolute; top: 0; right: auto; left: 0; }
  .header-contact { display: flex; grid-column: 2; grid-row: 2; justify-self: end; flex: none; }
  .header-actions { display: none; }
  .header-phone { display: flex; align-items: flex-start; }
  .header-phone strong { font-size: 15px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Первый экран по высоте содержимого: если растягивать его на весь экран, под формой остаётся пустой градиент. */
  .hero { min-height: 0; }
  .hero-grid { gap: 18px; padding-block: 24px 8px; }
  .hero-bottom, .tariffs-section { display: none; }
  .address-card { padding: 22px 18px; }
  .address-card h2 { font-size: 26px; overflow-wrap: break-word; }

  .mobile-dock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 14; display: block; transition: transform .28s ease; }
  .mobile-dock-bar { display: flex; gap: 10px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 20px rgba(29, 32, 35, .1); transition: visibility .28s; }
  .mobile-dock-round { display: grid; flex: 0 0 52px; height: 52px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
  .mobile-dock-round svg { width: 24px; height: 24px; }
  .mobile-dock-tariffs { flex: 1; justify-content: center; width: auto; margin: 0; }
  .mobile-dock-handle { position: absolute; bottom: 100%; left: 50%; display: grid; width: 72px; height: 26px; padding: 0; place-items: center; border: 0; border-radius: var(--r-chip) var(--r-chip) 0 0; background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 12px rgba(29, 32, 35, .12); cursor: pointer; visibility: hidden; transform: translateX(-50%); }
  .mobile-dock-handle span { width: 32px; height: 4px; border-radius: 2px; background: #c3c9d1; }
  .mobile-dock.is-collapsed { transform: translateY(calc(100% - env(safe-area-inset-bottom))); }
  .mobile-dock.is-collapsed .mobile-dock-bar { visibility: hidden; }
  .mobile-dock.is-collapsed .mobile-dock-handle { visibility: visible; }

  .mobile-sheet { position: fixed; inset: 0; z-index: 29; display: block; padding: 0; }
  .mobile-sheet[hidden] { display: none; }
  .mobile-sheet-backdrop { position: absolute; inset: 0; animation: none; padding: 0; border: 0; border-radius: 0; background: rgba(29, 32, 35, .45); opacity: 0; cursor: pointer; transition: opacity .48s ease; }
  .mobile-sheet.is-open .mobile-sheet-backdrop { opacity: 1; }
  .mobile-sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; display: flex; width: auto; animation: none; box-shadow: none; max-height: 92vh; max-height: 92dvh; flex-direction: column; padding: 0 0 calc(10px + env(safe-area-inset-bottom)); border-radius: var(--r-card) var(--r-card) 0 0; background: #fff; transform: translateY(100%); transition: transform .28s ease; }
  .mobile-sheet.is-open .mobile-sheet-panel { transform: translateY(0); }
  .mobile-sheet-panel.is-dragging { transition: none; }
  .mobile-sheet-grip { position: relative; flex: 0 0 26px; height: 26px; touch-action: none; cursor: grab; }
  .mobile-sheet-grip::before { content: ""; position: absolute; top: 11px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #c3c9d1; }
  .mobile-sheet-panel .action-modal-close { top: 10px; right: 12px; width: 40px; height: 40px; }
  .mobile-sheet-panel h2 { margin: 0; padding: 4px 64px 12px 20px; touch-action: none; color: var(--ink); font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
  .mobile-sheet .support-modal-panel { overflow-y: auto; }
  .mobile-sheet .support-modal-panel > .eyebrow, .mobile-sheet .support-modal-panel > p, .mobile-sheet .support-downloads { margin-inline: 20px; }
  .mobile-sheet .support-modal-panel > p { font-size: 14px; line-height: 1.5; }
  .mobile-sheet .support-downloads { margin-bottom: 6px; }
  .mobile-sheet-step { display: flex; min-height: 0; flex: 1; flex-direction: column; }
  .mobile-sheet-step[hidden] { display: none; }

  /* Шторка тарифов вырастает из нижней панели: кнопки панели лежат поверх неё, пока разъезжаются. */
  .mobile-dock.is-morphing { z-index: 30; pointer-events: none; }
  .mobile-dock.is-morphing .mobile-dock-bar { background: transparent; box-shadow: none; }
  .mobile-dock .is-morph-source { visibility: hidden; }
  .mobile-dock-pill { position: absolute; display: grid; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 26px; background: #fff; color: var(--ink); pointer-events: none; }
  .mobile-dock-pill svg { width: 24px; height: 24px; }
  /* Смахивание: шторка уезжает за панель, поэтому панель лежит сверху и не просвечивает. */
  .mobile-dock.is-sheet-drag { z-index: 30; pointer-events: none; }
  .mobile-dock.is-sheet-drag .mobile-dock-bar { background: #fff; box-shadow: none; }
  .mobile-sheet-panel.is-morphing { overflow: visible; border-radius: 0; transform: none; transition: none; }
  .mobile-sheet-panel.is-morphing::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: var(--morph-extra, 0); background: #fff; }
  .mobile-sheet-panel.is-morphing .tariff-sheet-form { overflow: visible; }
  .mobile-sheet-step.is-leaving { position: absolute; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); left: 0; flex: none; height: var(--leaving-height); pointer-events: none; }
  .mobile-sheet-title-ghost { position: absolute; right: 0; left: 0; pointer-events: none; }
  .morph-button { position: relative; white-space: nowrap; }
  .button .morph-button-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: inherit; pointer-events: none; }

  #tariff-sheet-tariffs .tariff-categories { flex: 0 0 auto; margin: 0; padding: 0 20px 6px; }
  .tariff-grid > .tariff-disclaimer { margin: 0; padding: 12px 20px; }
  .tariff-carousel { min-height: 0; flex: 1; overflow: hidden; }
  .tariff-carousel.is-scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .tariff-carousel-stage { position: relative; }
  .tariff-grid { display: grid; grid-auto-rows: auto; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding: 6px 0 12px; overflow: hidden; touch-action: none; }
  .tariff-carousel.is-scrollable .tariff-grid { touch-action: pan-y; }
  .tariff-grid > .tariff-card { grid-area: 1 / 1; width: calc(100% - 60px); transform: translateX(calc(var(--tariff-offset, 0) * (100% + 12px))); }
  .tariff-grid > .tariff-card.is-active { border-color: var(--red); }
  .tariff-card .tariff-connect-button { display: none; }
  .tariff-hint::after { left: auto; right: -40px; max-width: 200px; transform: translateY(4px); }
  .tariff-hint:hover::after, .tariff-hint:focus-visible::after, .tariff-hint:focus::after { transform: translateY(0); }
  .tariff-dots { display: flex; flex: 0 0 auto; justify-content: center; gap: 7px; padding: 4px 0 12px; }
  .tariff-dots:empty { display: none; }
  .tariff-dots span { width: 7px; height: 7px; border-radius: 50%; background: #cfd5dd; transition: background .2s ease, transform .2s ease; }
  .tariff-dots span.is-active { background: var(--red); transform: scale(1.25); }
  .tariff-sheet-connect { flex: 0 0 auto; justify-content: center; width: auto; margin: 0 20px; }

  .tariff-sheet-form { overflow-y: auto; padding: 2px 20px 0; -webkit-overflow-scrolling: touch; }
  .tariff-sheet-form .lead-form { padding: 0; }

  .mobile-menu-list { display: grid; padding: 0 20px 6px; }
  .mobile-menu-list a, .mobile-menu-list button { display: flex; min-height: 54px; align-items: center; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); font-family: "MTS Text"; font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; }
  .mobile-menu-list > :last-child { border-bottom: 0; color: var(--red); }
}

/* Невысокий экран: карточка должна целиком помещаться в шторку, прокрутки вверх-вниз у ленты нет. */
@media (max-width: 600px) and (max-height: 900px) {
  .tariff-grid .tariff-card { padding: 16px; }
  .tariff-grid .tariff-name { margin-bottom: 8px; font-size: 22px; }
  .tariff-grid .tariff-speed-label { margin-bottom: 4px; font-size: 14px; }
  .tariff-grid .tariff-speeds { margin-bottom: 10px; }
  .tariff-grid .tariff-speed { min-height: 32px; }
  .tariff-grid .tariff-features { gap: 4px 14px; margin-bottom: 10px; }
  .tariff-grid .tariff-included { gap: 6px; margin-bottom: 10px; }
  .tariff-grid .tariff-included img { width: 26px; height: 26px; flex-basis: 26px; }
  .tariff-grid .tariff-notes { margin-bottom: 10px; font-size: 14px; line-height: 1.35; }
  .tariff-grid .tariff-card-footer { gap: 6px; }
}

@media (max-width: 600px) and (max-height: 700px), (max-width: 360px) {
  .tariff-speed-unit { display: none; }
  .tariff-speed-label-unit { display: inline; }
  .tariff-grid .tariff-speeds { display: flex; flex-wrap: nowrap; }
}

@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .tariff-grid.is-hinting > .tariff-card:not(:only-child) { animation: tariff-nudge 3.2s ease-in-out infinite; }
  @keyframes tariff-nudge {
    0%, 62%, 100% { translate: 0; }
    72% { translate: -12px; }
    82% { translate: 4px; }
    90% { translate: -3px; }
  }
}

/* На сенсорном экране :hover держится после касания, и кнопка остаётся тёмной, пока не нажать в другом месте. */
@media (hover: none) {
  .button:hover, .header-action-primary:hover, .app-store-link:hover, .tariff-card .tariff-connect-button:hover { transform: none; }
  .button-red:hover { background: var(--red); }
  .button-red:active { background: var(--deep-red); }
  .tariff-card .tariff-connect-button:hover { background: var(--red); }
  .tariff-card:hover { box-shadow: 0 8px 24px rgba(36, 54, 74, .08); }
  .tariff-speed:hover { background: var(--light-gray); }
  .tariff-categories .tariff-category:not(.is-active):hover { background: var(--light-gray); }
  .city-picker-trigger:hover { border-color: var(--line); color: var(--ink); }
  .city-confirm-change:hover { background: var(--light-gray); }
  .faq-item summary:hover { color: var(--ink); }
  .faq-item:hover { background: var(--light-gray); }
}

/* Страница города /internet/{id}: первая строка заголовка длиннее «Связь для дома.», поэтому шрифт мельче. */
.hero-copy .hero-title-city { font-size: clamp(40px, 4.6vw, 62px); overflow-wrap: break-word; }
.city-about-section { padding: 48px 0 0; background: #fff; }
.city-about { padding: 32px 40px; border-radius: var(--r-card); background: var(--light-gray); }
.city-about h2 { margin: 0 0 12px; color: var(--ink); font-family: "MTS Wide"; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.city-about p { max-width: 900px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Ссылки на страницы городов на главной. Свёрнутый блок обрезается по высоте, ссылки остаются в HTML. */
.city-directory-section { padding: 0 0 80px; background: #fff; color: var(--ink); }
.city-directory-section h2 { margin: 0 0 24px; font-family: "MTS Wide"; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.city-directory { columns: 4 220px; column-gap: 32px; }
.city-directory.is-collapsed { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.city-directory-group { break-inside: avoid; margin: 0 0 20px; }
.city-directory-group h3 { margin: 0 0 6px; color: var(--ink); font-family: "MTS Text"; font-size: 14px; font-weight: 700; line-height: 1.4; }
.city-directory-group ul { margin: 0; padding: 0; list-style: none; }
.city-directory-group li { margin: 0; }
.city-directory-group a { display: inline-block; padding: 2px 0; color: var(--muted); font-size: 14px; line-height: 1.5; transition: color .2s ease; }
.city-directory-group a:hover { color: var(--red); }
.city-directory-group a:focus-visible, .city-directory-toggle:focus-visible { outline: 3px solid rgba(255, 0, 50, .22); outline-offset: 2px; }
.city-directory-toggle { margin-top: 12px; padding: 12px 22px; border: 0; border-radius: var(--r-control); background: var(--light-gray); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s ease; }
.city-directory-toggle:hover { background: var(--light-gray-hover); }

@media (max-width: 600px) {
  .hero-copy .hero-title-city { font-size: clamp(30px, 8.6vw, 40px); }
  .city-about-section { padding-top: 32px; }
  .city-about { padding: 24px 20px; }
  .city-about p { font-size: 14px; }
  .city-directory-section { padding-bottom: 48px; }
  .city-directory { columns: 2 140px; column-gap: 20px; }
  .city-directory.is-collapsed { max-height: 300px; }
}
