.tech {
    display: grid;
    gap: 16px;
}

.tech > .service-info__lead,
.tech > .service-info__grid {
    margin: 0;
}

.tech [data-only] {
    display: none;
}

.tech[data-type="frame"] [data-only~="frame"],
.tech[data-type="barn"] [data-only~="barn"],
.tech[data-type="dacha"] [data-only~="dacha"] {
    display: inline;
}

.tech strong[data-t] {
    color: #e95000;
    font-weight: 700;
    transition: background-color .3s;
}

.tech strong[data-t].is-flash {
    background: rgba(255, 89, 0, .16);
}

/* type switcher */
.tech-types__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tech-types__tab {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    text-align: left;
    font: inherit;
    color: #333;
    border: 1px solid rgba(41, 41, 41, .18);
    border-radius: 14px;
    background: #f7f6f3;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.tech-types__tab strong {
    color: #212121;
    font-size: 18px;
    font-weight: 750;
}

.tech-types__tab span {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.tech-types__tab:hover {
    border-color: rgba(255, 89, 0, .5);
}

.tech-types__tab.is-active {
    border-color: #ff5900;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 89, 0, .18);
}

.tech-types__tab.is-active strong {
    color: #ff5900;
}

.tech-types__note {
    margin: 14px 0 0 !important;
    font-size: 14px !important;
}

.tech-types__note a {
    margin-left: 6px;
    color: #e95000;
    font-weight: 600;
    text-decoration: none;
}

/* house scheme */
.tech-scheme__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
}

.tech-house {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.tech-house__part {
    transition: opacity .25s;
}

.tech-house.has-focus .tech-house__part {
    opacity: .35;
}

.tech-house.has-focus .tech-house__part.is-active {
    opacity: 1;
}

.tech-pin {
    cursor: pointer;
}

.tech-pin circle {
    fill: #ff5900;
    stroke: #fff;
    stroke-width: 4;
    transition: transform .2s;
    transform-box: fill-box;
    transform-origin: center;
}

.tech-pin text {
    fill: #fff;
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
    pointer-events: none;
}

.tech-pin:hover circle,
.tech-pin.is-active circle {
    transform: scale(1.18);
    fill: #212121;
}

.tech-scheme__list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-scheme__list a,
.tech-nodes__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(41, 41, 41, .12);
    border-radius: 12px;
    background: #f7f6f3;
    transition: border-color .2s, background-color .2s, color .2s;
}

.tech-scheme__list b,
.tech-nodes__nav b,
.tech-node h2 span {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    background: #ff5900;
}

.tech-scheme__list a.is-active,
.tech-nodes__nav a.is-active {
    color: #e95000;
    border-color: rgba(255, 89, 0, .55);
    background: #fff;
}

@media (hover: hover) {
    .tech-scheme__list a:hover,
    .tech-nodes__nav a:hover {
        color: #e95000;
        border-color: rgba(255, 89, 0, .55);
        background: #fff;
    }
}

/* nodes */
.tech-nodes {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    scroll-margin-top: 90px;
}

.tech-nodes__nav {
    position: sticky;
    top: 90px;
    display: grid;
    align-self: start;
    gap: 6px;
}

.tech-node + .tech-node {
    margin-top: 32px;
}

.tech.is-js .tech-node {
    display: none;
    margin-top: 0;
}

.tech.is-js .tech-node.is-active {
    display: block;
    animation: tech-in .25s ease;
}

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

.tech-node h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-node h2 span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
    border-radius: 10px;
}

.tech-node > p {
    max-width: 760px;
}

.tech-node__extra {
    margin-top: 16px !important;
    padding: 14px 16px;
    font-size: 15px !important;
    border-left: 3px solid #ff5900;
    border-radius: 0 12px 12px 0;
    background: #f7f6f3;
}

/* layer diagram */
.tech-stack {
    display: flex;
    margin: 20px 0 6px;
    overflow: hidden;
    border: 1px solid rgba(41, 41, 41, .2);
    border-radius: 12px;
}

.tech-stack--h {
    height: 150px;
}

.tech-stack--v {
    flex-direction: column;
    max-width: 520px;
}

.tech-stack i {
    position: relative;
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
}

.tech-stack--h i {
    flex: var(--w, 20) 0 0;
    min-width: 22px;
}

.tech-stack--v i {
    min-height: 24px;
}

.tech-stack em {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #212121;
    transform: translate(-50%, -50%);
}

.tech-stack--v em {
    left: auto;
    right: 10px;
    transform: translateY(-50%);
}

.tech-stack i:hover em,
.tech-stack i.is-hl em {
    background: #ff5900;
}

.l-wood { background: repeating-linear-gradient(90deg, #c8945c 0 6px, #bb8850 6px 7px); }
.tech-stack--v .l-wood { background: repeating-linear-gradient(0deg, #c8945c 0 6px, #bb8850 6px 7px); }
.l-board { background: #ecd3ac; }
.l-batten { background: repeating-linear-gradient(90deg, #c99a63 0 22px, #f7f6f3 22px 60px); }
.l-beam { background: #9c6b3c; }
.l-air { background: repeating-linear-gradient(0deg, #c99a63 0 18px, #fbfaf7 18px 52px); }
.tech-stack--v .l-air { background: repeating-linear-gradient(90deg, #c99a63 0 18px, #fbfaf7 18px 70px); }
.l-membrane { background: #7cb8a0; }
.l-vapor { background: #4f8fd6; }
.l-ins { background: repeating-linear-gradient(45deg, #f3d27a 0 8px, #e2b851 8px 11px); }
.l-metal { background: repeating-linear-gradient(90deg, #8e98a3 0 10px, #6f7a86 10px 14px); }
.l-mesh { background: repeating-linear-gradient(90deg, #9aa3ad 0 2px, transparent 2px 6px), #e8eaed; }
.l-roll { background: #3a3a3a; }
.l-block { background: repeating-linear-gradient(90deg, #b9bcc0 0 70px, #8e9297 70px 72px); }
.l-gravel { background: radial-gradient(circle at 30% 40%, #a59d8c 1.5px, transparent 2px) 0 0 / 9px 9px, #d8d3c8; }

.tech-stack__legend {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tech-layers {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: tl;
}

.tech-layers li {
    position: relative;
    padding: 12px 14px 12px 48px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid rgba(41, 41, 41, .12);
    border-radius: 12px;
    background: #fff;
    counter-increment: tl;
    transition: border-color .2s, background-color .2s;
}

.tech-layers li::before {
    position: absolute;
    top: 12px;
    left: 14px;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    content: counter(tl);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    background: #212121;
}

.tech-layers--plain li::before {
    content: "✓";
    border-radius: 7px;
    background: #ff5900;
}

.tech-layers li.is-hl {
    border-color: rgba(255, 89, 0, .55);
    background: #fff8f3;
}

.tech-layers li.is-hl::before {
    background: #ff5900;
}

.tech-layers b {
    display: block;
    color: #212121;
    font-weight: 700;
}

.tech-nodes__pager {
    display: none;
}

.tech.is-js .tech-nodes__pager {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.tech-nodes__pager button {
    padding: 11px 18px;
    color: #333;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(41, 41, 41, .2);
    border-radius: 12px;
    background: #f7f6f3;
    cursor: pointer;
}

.tech-nodes__pager button:hover {
    color: #e95000;
    border-color: #ff5900;
}

.tech-nodes__pager button[disabled] {
    opacity: .35;
    cursor: default;
}

/* why */
.tech-why__grid,
.tech-options__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

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

.tech-options__grid > div:first-child {
    grid-column: span 2;
}

.tech-why__item,
.tech-options__grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(41, 41, 41, .12);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #f7f6f3 100%);
}

.tech-why__item b,
.tech-options__grid b {
    color: #212121;
    font-size: 17px;
    font-weight: 750;
}

.tech-why__item span,
.tech-options__grid span {
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.tech-why__item b::before {
    display: block;
    width: 28px;
    height: 4px;
    margin-bottom: 12px;
    content: "";
    border-radius: 2px;
    background: #ff5900;
}

.tech-sets .service-info-card > p {
    margin-bottom: 16px;
}

.tech-sets .service-info-card--dark .service-info-list li {
    color: rgba(255, 255, 255, .86);
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}

.tech-options__note {
    margin-top: 16px !important;
    font-size: 14px !important;
    color: #777 !important;
}

/* construction photos */
.tech-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.tech-photos > b {
    grid-column: 1 / -1;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tech-photos--one {
    max-width: calc(50% - 6px);
}

.tech-photos--one > a {
    grid-column: 1 / -1;
}

.tech-photos a {
    display: block;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.tech-photos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity .2s;
}

.tech-photos a:hover img {
    opacity: .88;
}

.tech-photos span {
    display: block;
    margin-top: 7px;
}

/* faq */
.tech-faq details {
    border-top: 1px solid rgba(41, 41, 41, .12);
}

.tech-faq details:last-child {
    border-bottom: 1px solid rgba(41, 41, 41, .12);
}

.tech-faq summary {
    position: relative;
    padding: 16px 40px 16px 0;
    color: #212121;
    font-size: 17px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.tech-faq summary::-webkit-details-marker {
    display: none;
}

.tech-faq summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    content: "+";
    color: #ff5900;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.tech-faq details[open] summary::after {
    content: "−";
}

.tech-faq details p {
    padding-bottom: 16px;
}

.tech-faq a {
    color: #e95000;
}

/* cta */
.tech-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tech-cta h2 {
    margin-bottom: 10px !important;
}

.tech-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: 440px;
}

.tech-cta__btn {
    padding: 14px 20px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.tech-cta__btn--main {
    border-color: #ff5900;
    background: #ff5900;
}

.tech-cta__btn:hover {
    border-color: #ff792f;
}

.tech-cta__link {
    flex-basis: 100%;
    color: #ff8a4d;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .tech-scheme__grid {
        grid-template-columns: 1fr;
    }

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

    .tech-options__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .tech-nodes__nav {
        position: sticky;
        top: 56px;
        z-index: 5;
        display: flex;
        gap: 6px;
        margin: -4px -4px 16px;
        padding: 4px;
        overflow-x: auto;
        background: #fff;
        scrollbar-width: none;
    }

    .tech-nodes__nav::-webkit-scrollbar {
        display: none;
    }

    .tech-nodes__nav a {
        flex: 0 0 auto;
        padding: 8px 12px 8px 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .tech-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .tech-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-cta__actions {
        justify-content: flex-start;
        max-width: none;
    }

    .tech-cta__link {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .tech {
        gap: 10px;
    }

    .tech-types__tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tech-types__tab {
        padding: 12px 14px;
        gap: 3px;
    }

    .tech-types__tab strong {
        font-size: 16px;
    }

    .tech-types__tab span {
        font-size: 13px;
    }

    .tech-types__note {
        font-size: 13px !important;
    }

    .tech-types__note a {
        display: inline;
        margin-left: 0;
    }

    .tech-scheme .service-info-card__label + h2 {
        margin-bottom: 8px;
    }

    .tech-house {
        margin: 0 -8px;
        width: calc(100% + 16px);
    }

    .tech-pin circle {
        r: 27px;
    }

    .tech-pin text {
        font-size: 26px;
    }

    .tech-scheme__list {
        display: none;
    }

    .tech-nodes__nav {
        top: 52px;
    }

    .tech-node h2 {
        font-size: 21px;
    }

    .tech-node h2 span {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .tech-stack--h {
        height: 110px;
    }

    .tech-stack em {
        width: 19px;
        height: 19px;
        font-size: 10px;
    }

    .tech-stack--v {
        max-width: none;
    }

    .tech-layers li {
        padding: 10px 11px 10px 42px;
        font-size: 13.5px;
    }

    .tech-layers li::before {
        top: 10px;
        left: 11px;
    }

    .tech-node__extra {
        font-size: 13.5px !important;
    }

    .tech-why__grid,
    .tech-options__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tech-options__grid > div:first-child {
        grid-column: auto;
    }

    .tech-why__item,
    .tech-options__grid > div {
        padding: 14px;
    }

    .tech-why__item b,
    .tech-options__grid b {
        font-size: 15px;
    }

    .tech-why__item b::before {
        margin-bottom: 8px;
    }

    .tech-why__item span,
    .tech-options__grid span {
        font-size: 13px;
    }


    .tech-photos {
        gap: 8px;
        margin-top: 16px;
    }

    .tech-photos--one {
        max-width: none;
    }

    .tech-photos a {
        font-size: 12px;
    }

    .tech-photos img {
        border-radius: 10px;
    }

    .tech-faq summary {
        padding: 14px 32px 14px 0;
        font-size: 15px;
    }

    .tech-cta__btn {
        flex: 1 1 100%;
    }
}
