.etrn-guide,
.etrn-guide * {
    box-sizing: border-box;
}

.etrn-guide {
    --etrn-accent: #fa6405;    
    --etrn-accent-soft: #fff3eb;
    --etrn-text: #202020;
    --etrn-muted: #666666;
    --etrn-line: #e8e8e8;
    --etrn-surface: #f7f7f7;
    color: var(--etrn-text);
    padding: 0 0 80px;
}

.etrn-guide__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.etrn-guide__section-kicker {
    margin: 0 0 10px;
    color: var(--etrn-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.etrn-guide__infographic {
    margin: 0 0 44px;
}

.etrn-guide__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-guide__image-link::after {
    position: absolute;
    inset: 0;
    border: 1px solid var(--etrn-line);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.etrn-guide__image-link:focus-visible {
    outline: 3px solid rgba(250, 100, 5, 0.35);
    outline-offset: 4px;
}

.etrn-guide__image {
    display: block;
    width: 100%;
    height: auto;
}

.etrn-guide__image-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.etrn-guide__caption {
    flex: 1 1 auto;
    margin: 0;
    color: var(--etrn-muted);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.etrn-guide__download-row {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    align-items: center;
    margin: 0;
}

.etrn-guide__download {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--etrn-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;    
}

.etrn-guide__download:hover {
    background: var(--etrn-accent);
    color: #ffffff;
    text-decoration: none;    
}

.etrn-guide__download:focus-visible {
    outline: 3px solid rgba(250, 100, 5, 0.35);
    outline-offset: 3px;
}

.etrn-guide__download svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.etrn-guide__lead {
    width: 100%;
    margin: 0 0 72px;
    padding: 32px 36px;
    border: 2px solid var(--etrn-accent);
    border-radius: 20px;
    background: var(--etrn-accent-soft);
    font-size: 18px;
    line-height: 1.65;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-guide__lead p {
    margin: 0 0 12px;
}

.etrn-guide__lead p:last-child {
    margin-bottom: 0;
}

.etrn-guide__greeting {
    color: var(--etrn-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.etrn-guide__section {
    margin: 0 0 80px;
}

.etrn-guide__section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.etrn-guide__section-heading h2 {
    margin: 0;
    color: var(--etrn-text);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.etrn-guide__section-heading > p:last-child:not(.etrn-guide__section-kicker) {
    margin: 14px 0 0;
    color: var(--etrn-muted);
    font-size: 18px;
    line-height: 1.6;
}

.etrn-steps {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.etrn-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding: 30px 32px;    
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-step__number {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: var(--etrn-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.etrn-step__content h3,
.etrn-inspection h3,
.etrn-warning h3 {
    margin: 2px 0 14px;
    color: var(--etrn-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.etrn-step__content p,
.etrn-inspection p,
.etrn-warning p {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.65;
}

.etrn-step__content > :last-child,
.etrn-inspection__card > :last-child,
.etrn-warning > :last-child {
    margin-bottom: 0;
}

.etrn-list,
.etrn-action-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.55;
}

.etrn-list li::marker,
.etrn-action-list li::marker {
    color: var(--etrn-accent);
    font-weight: 700;
}

.etrn-list--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.etrn-inspection {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.etrn-inspection__card,
.etrn-warning {
    padding: 32px;
    border-radius: 18px;
}

.etrn-inspection__card {    
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-warning {
    border: 2px solid var(--etrn-accent);
    background: var(--etrn-accent-soft);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-warning p:last-child {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(250, 100, 5, 0.22);
    color: var(--etrn-accent);
}

.etrn-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.etrn-checklist li {
    min-width: 0;
}

.etrn-checklist__item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 22px 24px;    
    border-radius: 14px;
    background: #ffffff;
    color: var(--etrn-text);
    cursor: pointer;
    font-size: 17px;
    line-height: 1.5;
    transition: outline  0.2s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-checklist__item:hover {       
    outline: 2px solid var(--etrn-accent);
}

.etrn-guide__modal {
    width: min(96vw, 1760px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.etrn-guide__modal:not([open]) {
    display: none;
}

.etrn-guide__modal::backdrop {
    background: rgba(20, 20, 20, 0.76);
    backdrop-filter: blur(2px);
}

.etrn-guide__modal-content {
    position: relative;
    padding: 48px 16px 16px;
}

.etrn-guide__modal-close {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--etrn-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--etrn-text);
    cursor: pointer;
}

.etrn-guide__modal-close:focus-visible {
    outline: 3px solid rgba(250, 100, 5, 0.32);
    outline-offset: 2px;
}

.etrn-guide__modal-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.etrn-guide__modal-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94vh - 64px);
    margin: 0 auto;
}

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

.etrn-checklist__box {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid var(--etrn-accent);
    border-radius: 5px;
    background: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.etrn-checklist__input:checked + .etrn-checklist__box {
    border-color: var(--etrn-accent);
    background: var(--etrn-accent);
}

.etrn-checklist__input:checked + .etrn-checklist__box::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.etrn-checklist__input:focus-visible + .etrn-checklist__box {
    outline: 3px solid rgba(250, 100, 5, 0.32);
    outline-offset: 3px;
}

.etrn-guide__closing {
    position: relative;
    overflow: hidden;
    padding: 36px 40px;    
    border-radius: 20px;
    background: #fff;
    color: var(--etrn-text);
    font-size: 19px;
    line-height: 1.6;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.etrn-guide__closing::after {
    position: absolute;
    top: -58px;
    right: -46px;
    width: 190px;
    height: 190px;
    border: 38px solid rgba(250, 100, 5, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.etrn-guide__closing p {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 0 10px;
}

.etrn-guide__closing p:last-child {
    margin-bottom: 0;
    color: var(--etrn-muted);
}

.etrn-guide__closing strong {
    color: var(--etrn-text);
}

@media (max-width: 900px) {
    .etrn-inspection {
        grid-template-columns: 1fr;
    }

    .etrn-checklist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .etrn-guide {
        padding: 20px 0 52px;
    }

    .etrn-guide__section-kicker {
        font-size: 12px;
    }

    .etrn-guide__image-link {
        border-radius: 12px;
    }

    .etrn-guide__infographic {
        margin-bottom: 36px;
    }

    .etrn-guide__image-meta {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .etrn-guide__download-row {
        display: block;
        text-align: center;
    }

    .etrn-guide__download {
        width: 100%;
    }

    .etrn-guide__modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }

    .etrn-guide__modal-content {
        padding: 44px 8px 8px;
    }

    .etrn-guide__modal-image {
        max-height: calc(100vh - 68px);
    }

    .etrn-guide__lead {
        margin-bottom: 52px;
        padding: 24px 22px;
        font-size: 16px;
    }

    .etrn-guide__greeting {
        font-size: 21px;
    }

    .etrn-guide__section {
        margin-bottom: 56px;
    }

    .etrn-guide__section-heading {
        margin-bottom: 22px;
    }

    .etrn-step {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 22px 18px;
        border-radius: 14px;
    }

    .etrn-step__number {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .etrn-step__content h3,
    .etrn-inspection h3,
    .etrn-warning h3 {
        margin-top: 0;
        font-size: 19px;
    }

    .etrn-step__content p,
    .etrn-inspection p,
    .etrn-warning p,
    .etrn-list,
    .etrn-action-list,
    .etrn-checklist__item {
        font-size: 16px;
    }

    .etrn-list--compact {
        grid-template-columns: 1fr;
    }

    .etrn-inspection__card,
    .etrn-warning {
        padding: 24px 22px;
    }

    .etrn-checklist__item {
        min-height: 0;
        padding: 18px;
    }

    .etrn-guide__closing {
        padding: 28px 24px;
        font-size: 17px;
    }
}

@media print {
    .etrn-guide {
        padding: 0;
    }

    .etrn-guide__container {
        width: 100%;
        padding: 0;
    }

    .etrn-guide__caption,
    .etrn-guide__download-row {
        display: none;
    }

    .etrn-step,
    .etrn-inspection__card,
    .etrn-warning,
    .etrn-checklist__item,
    .etrn-guide__closing {
        break-inside: avoid;
    }
}
