/* Единая шкала шрифтов для 2K; файл подключается от 2400 px. */
:root {
  --nn26-font-scale: 1.2;
}

/* Размеры для широких экранов задаются в общей теме. */
body > main {
  --nn26-wide-gap: 24px;
  --nn26-wide-card-padding: 30px;
  --nn26-title-gap: 30px;
  width: min(1776px, calc(100% - 64px));
  max-width: none;
}

.privacy-dialog {
  width: min(1776px, calc(100% - 64px));
}

body main > header {
  padding-block: 20px;
  gap: var(--nn26-wide-gap);
}

header .logo {
  width: 224px;
}

header .primary-nav {
  gap: 20px;
}

.primary-nav .mega-panel {
  width: 304px;
}

header > :is(.header-why, .account) {
  min-height: 46px;
}

/* Главная: левый слайд и заявка используют отдельные размеры. */
.hero-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  margin-top: 10px;
}

body main .hero-layout .hero {
  min-height: max(620px, var(--address-hero-height, 0px));
}

.hero-layout .hero-address-row {
  min-height: 54px;
}

.hero-layout .application {
  padding: 36px;
}

.hero-layout .application form > label > input:not([type="checkbox"]) {
  min-height: 48px;
}

.review-showcase {
  min-height: 114px;
}

.content {
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 44px;
}

/* Панорама на широких экранах показывает нижнюю часть без увеличения исходника. */
.about {
  min-height: 520px;
  padding-bottom: 240px;
}

.about.is-panorama-ready {
  --district-panorama: url('../images/district-panorama-detail-2172.webp');
}

.about::before {
  background-size: 100% auto;
  background-position: center bottom;
}

body main .nn26-fullstory-text:not(:has(table)) {
  max-width: 100ch;
}

/* Сетки и карточки сохраняют пропорции без увеличения всего документа. */
body main :is(.home-plans, .news-grid, .support-guide-grid, .payment-method-grid, .equipment-grid, .nn26-tv-grid) {
  gap: var(--nn26-wide-gap);
}

body main :is(.home-plan, .support-guide-card, .payment-method) {
  padding: var(--nn26-wide-card-padding);
}

.home-pricing .segmented button,
.home-pricing .home-plan .button {
  min-height: 52px;
}

body main .advantages-stories,
body main .advantages-bottom {
  max-width: 1510px;
}

body main .advantages-story {
  --story-bleed: 320px;
  --story-gap: 56px;
}

body main .advantages-story:not(:first-child) {
  padding-block: 30px;
}

body main .advantages-story-art img {
  max-width: 650px;
}

body main .advantages-story--team .advantages-story-art img {
  max-width: 560px;
}

body main .company-hero-copy {
  max-width: 760px;
}

body main > footer {
  padding-block: 44px;
}

/* Формы расширяются вместе со шрифтами, чтобы сохранялись переносы Full HD. */
body :is(#application-modal, #tariff-application-modal, #promotion-modal, #tv-request, #callback-modal) {
  --connection-top: 55.2px;
  --connection-side: 38.4px;
  --connection-bottom: 52.8px;
  --connection-gap: 20.4px;
  --connection-field-height: 60px;
  --connection-field-margin: 8.4px;
  --connection-intro-gap: 19.2px;
  --connection-eyebrow-top: 24px;
  width: min(648px, calc(100% - 64px));
}

body :is(#application-modal, #tariff-application-modal, #promotion-modal, #tv-request, #callback-modal) form > button[type="submit"] {
  min-height: 57.6px;
}

body .review-modal {
  width: min(648px, calc(100% - 64px));
}

body .nn26-form-notice {
  width: min(384px, calc(100% - 32px));
}
