/* ============================================================
   «Мастер согласования» (/soglasovanie-zaryadnoy-stancii-v-zhk)
   Своя подача: мастер прямо на первом экране, плитки-ответы с иконками,
   «кабельная» линия прогресса, результат с чек-листом и текстом заявления.
   Классы — в зоне .aw-shell. Шапка, подвал и модалки — из main.css.
   ============================================================ */

.aw-shell {
    color: #FFF;
    background: #0E1A2E;
    overflow-x: clip;
}

.aw-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.aw-eyebrow {
    margin-bottom: 14px;
    color: #FFF;
    font-family: MOSCOW2024, sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.aw-section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.aw-section-title {
    color: #FFF;
    font-family: Oswald, sans-serif;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 500;
    line-height: 110%;
    text-transform: uppercase;
}

.aw-section-title span {
    color: #00B2FF;
}

.aw-section-lead {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.55;
}

.aw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 50px;
    font-family: Oswald, sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.aw-btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.aw-btn--primary {
    border: 1px solid #00B2FF;
    background: #00B2FF;
    color: #0E1A2E;
}

.aw-btn--primary:hover {
    border-color: #B2E0FF;
    background: #B2E0FF;
}

.aw-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(14, 26, 46, 0.5);
    color: #FFF;
}

.aw-btn--ghost:hover {
    border-color: #00B2FF;
    color: #B2E0FF;
}

.aw-link-btn {
    padding: 6px 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    cursor: pointer;
}

.aw-link-btn:hover {
    color: #00B2FF;
}

/* ===== Hero + мастер ===== */

.aw-hero {
    position: relative;
    padding: 130px 30px 90px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(0, 178, 255, 0.14), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(0, 178, 255, 0.08), transparent 60%),
        #0E1A2E;
}

.aw-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
}

.aw-hero__intro {
    position: sticky;
    top: 110px;
}

.aw-crumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.aw-crumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.aw-crumbs a:hover {
    color: #00B2FF;
}

.aw-title {
    color: #FFF;
    font-family: Oswald, sans-serif;
    font-size: clamp(36px, 4.4vw, 60px);
    font-weight: 500;
    line-height: 105%;
    text-transform: uppercase;
}

.aw-title span {
    display: block;
    color: #00B2FF;
}

.aw-lead {
    margin-top: 22px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.55;
}

.aw-gets {
    display: grid;
    gap: 14px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.aw-gets li {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #FFF;
    font-size: 16px;
}

.aw-gets li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 178, 255, 0.5);
    border-radius: 50%;
    color: #00B2FF;
    font-family: Oswald, sans-serif;
    font-size: 15px;
}

/* Карточка мастера */

.aw-wizard {
    position: relative;
    padding: 30px 32px 22px;
    border: 1px solid rgba(0, 178, 255, 0.35);
    border-radius: 20px;
    background: linear-gradient(180deg, #172741 0%, #12203A 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    scroll-margin-top: 100px;
}

.aw-wizard__top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.aw-wizard__counter {
    flex: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: Oswald, sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
}

.aw-wizard__counter span:first-child {
    color: #00B2FF;
}

/* Прогресс — «кабель»: пунктир по фону, сплошная линия по мере ответов */
.aw-progress {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, rgba(0, 178, 255, 0.28) 0 10px, transparent 10px 16px);
    overflow: hidden;
}

.aw-progress span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #00B2FF, #B2E0FF);
    box-shadow: 0 0 12px rgba(0, 178, 255, 0.8);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-step__title {
    margin-bottom: 22px;
    color: #FFF;
    font-family: Oswald, sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    outline: none;
}

.aw-step {
    animation: aw-in 0.35s ease both;
}

@keyframes aw-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.aw-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.aw-tiles--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aw-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 170px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: #FFF;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.aw-tile:hover,
.aw-tile:focus-visible {
    border-color: #00B2FF;
    background: rgba(0, 178, 255, 0.08);
    transform: translateY(-2px);
    outline: none;
}

.aw-tile.is-selected {
    border-color: #00B2FF;
    background: rgba(0, 178, 255, 0.16);
}

.aw-tile__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    color: #00B2FF;
}

.aw-tile__icon svg {
    width: 100%;
    height: 100%;
}

.aw-tile__label {
    font-family: Oswald, sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.aw-tile__hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.4;
}

.aw-wizard__nav {
    display: flex;
    justify-content: space-between;
    min-height: 36px;
    margin-top: 16px;
}

.aw-noscript {
    color: rgba(255, 255, 255, 0.7);
}

/* Результат */

.aw-result {
    animation: aw-in 0.35s ease both;
}

.aw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 20px;
    padding: 0;
    list-style: none;
}

.aw-chips li {
    padding: 6px 12px;
    border: 1px solid rgba(0, 178, 255, 0.4);
    border-radius: 30px;
    color: #B2E0FF;
    font-size: 13px;
}

.aw-term {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-left: 3px solid #00B2FF;
    border-radius: 0 12px 12px 0;
    background: rgba(0, 178, 255, 0.1);
}

.aw-term span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aw-term strong {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.aw-block {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aw-block summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: #FFF;
    font-family: Oswald, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.aw-block summary::-webkit-details-marker {
    display: none;
}

.aw-block summary::after {
    content: '+';
    color: #00B2FF;
    font-size: 24px;
    line-height: 1;
}

.aw-block[open] summary::after {
    content: '–';
}

.aw-block summary span {
    margin-left: auto;
    margin-right: 14px;
    color: #00B2FF;
    font-size: 15px;
}

.aw-block > p,
.aw-notes,
.aw-checklist,
.aw-mini-stages {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.55;
}

.aw-notes {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.aw-notes li {
    position: relative;
    padding-left: 22px;
}

.aw-notes li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00B2FF;
}

.aw-checklist {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.aw-checklist label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.aw-checklist input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #00B2FF;
}

.aw-checklist input:checked + span {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.aw-mini-stages {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 0 0 0 4px;
    list-style: none;
}

.aw-mini-stages::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 15px;
    border-left: 2px dashed rgba(0, 178, 255, 0.45);
}

.aw-mini-stages li {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 14px;
    align-items: center;
}

.aw-mini-stage__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00B2FF;
    color: #0E1A2E;
    font-family: Oswald, sans-serif;
    font-size: 13px;
}

.aw-mini-stage__term {
    color: #B2E0FF;
    font-size: 13px;
    text-align: right;
}

.aw-letter {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: #0B1527;
    color: rgba(255, 255, 255, 0.88);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}

.aw-letter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.aw-letter__hint {
    margin: 12px 0 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.5;
}

.aw-result__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aw-result__more {
    color: #B2E0FF;
    font-size: 15px;
    text-decoration: none;
}

.aw-result__more:hover {
    color: #00B2FF;
}

/* ===== Индексируемый маршрут ===== */

.aw-route,
.aw-oss,
.aw-faq,
.aw-final {
    padding: 96px 30px;
}

.aw-route {
    background: #0B1527;
}

.aw-stages {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aw-stages::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 27px;
    border-left: 2px dashed rgba(0, 178, 255, 0.45);
}

.aw-stage {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-stage:last-child {
    border-bottom: 0;
}

.aw-stage__num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid #00B2FF;
    border-radius: 50%;
    background: #0B1527;
    color: #00B2FF;
    font-family: Oswald, sans-serif;
    font-size: 20px;
}

.aw-stage__title {
    color: #FFF;
    font-family: Oswald, sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.aw-stage__text {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
}

.aw-stage__term {
    color: #B2E0FF;
    font-size: 15px;
    text-align: right;
}

/* ===== Собрание ===== */

.aw-oss__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.aw-oss__list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.aw-oss__list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.aw-oss__list dt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.45;
}

.aw-oss__list dd {
    flex: none;
    margin: 0;
    color: #00B2FF;
    font-family: Oswald, sans-serif;
    font-size: 16px;
    text-align: right;
    text-transform: uppercase;
    max-width: 45%;
}

/* ===== FAQ ===== */

.aw-faq {
    background: #0B1527;
}

.aw-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
}

.aw-more {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.aw-more a {
    color: #B2E0FF;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
}

.aw-more a:hover {
    color: #00B2FF;
}

.aw-faq__list details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aw-faq__list summary {
    padding: 20px 36px 20px 0;
    position: relative;
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.aw-faq__list summary::-webkit-details-marker {
    display: none;
}

.aw-faq__list summary::after {
    content: '+';
    position: absolute;
    top: 16px;
    right: 4px;
    color: #00B2FF;
    font-size: 26px;
}

.aw-faq__list details[open] summary::after {
    content: '–';
}

.aw-faq__list p {
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Финал ===== */

.aw-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 40px;
    align-items: center;
    padding: 48px;
    border: 1px solid rgba(0, 178, 255, 0.35);
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(0, 178, 255, 0.16), rgba(0, 178, 255, 0.02));
}

.aw-final__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Адаптив ===== */

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

    .aw-hero__intro {
        position: static;
    }

    .aw-stage {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .aw-stage__term {
        grid-column: 2;
        text-align: left;
    }

    .aw-oss__grid,
    .aw-faq__grid,
    .aw-final__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .aw-hero {
        padding: 100px 16px 56px;
    }

    .aw-route,
    .aw-oss,
    .aw-faq,
    .aw-final {
        padding: 64px 16px;
    }

    .aw-wizard {
        padding: 22px 18px 16px;
        border-radius: 16px;
    }

    .aw-tiles,
    .aw-tiles--4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .aw-tile {
        min-height: 0;
        padding: 16px 14px;
    }

    .aw-tile__icon {
        width: 36px;
        height: 36px;
    }

    .aw-tile__label {
        font-size: 17px;
    }

    /* На телефоне мастер должен быть виден сразу: прячем список «что получите», укорачиваем hero */
    .aw-gets {
        display: none;
    }

    .aw-crumbs {
        margin-bottom: 16px;
    }

    .aw-lead {
        margin-top: 14px;
        font-size: 16px;
    }

    .aw-stages::before {
        left: 21px;
    }

    .aw-stage {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
    }

    .aw-stage__num {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .aw-stage__title {
        font-size: 19px;
    }

    .aw-final__inner {
        padding: 28px 20px;
    }

    .aw-oss__list div {
        flex-direction: column;
        gap: 6px;
    }

    .aw-oss__list dd {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .aw-tiles--3 .aw-tile:last-child {
        grid-column: 1 / -1;
    }

    .aw-mini-stages li {
        grid-template-columns: 24px 1fr;
    }

    .aw-mini-stage__term {
        grid-column: 2;
        text-align: left;
    }

    .aw-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aw-step,
    .aw-result {
        animation: none;
    }

    .aw-progress span,
    .aw-tile {
        transition: none;
    }
}
