.sg-page {
    --sg-accent: #c99743;
    --sg-accent-dark: #7d5b25;
    --sg-brand: #154a66;
    --sg-brand-hover: #0f3b52;
    --sg-ink: #252b33;
    --sg-muted: #202123;
    --sg-line: #ead8b5;
    --sg-soft: #fff1d8;
    --sg-white: #fff;
    color: var(--sg-ink);
    background: var(--sg-white);
    font-size: 16px;
    line-height: 1.65;
}

.sg-page,
.sg-page * {
    box-sizing: border-box;
}

.sg-page p,
.sg-page ul,
.sg-page ol {
    margin-top: 0;
}

.sg-page a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sg-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

main .sg-page section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 0;
}

main .sg-page section > .sg-container {
    position: relative;
    z-index: 1;
}

.sg-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(0deg, #fff 0%, #fffaf0 44%, #fff1d8 100%);
}

main .sg-page .sg-hero {
    padding: 58px 0;
}

.sg-hero::after,
main .sg-page .sg-section::after {
    position: absolute;
    right: -190px;
    bottom: -190px;
    width: 470px;
    height: 470px;
    background: url('/remont-rolstaven/images/remont-rolstaven-decor-roll.webp?v=20260804-3d-square') center / contain no-repeat;
    content: "";
    mix-blend-mode: multiply;
    opacity: .14;
    pointer-events: none;
    transform: rotate(-8deg);
    transform-origin: center;
}

.sg-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 1fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.sg-breadcrumbs {
    margin-bottom: 22px;
    font-size: .88rem;
}

.sg-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.sg-breadcrumbs li + li::before {
    margin-right: 8px;
    color: #9aa6b2;
    content: "/";
}

.sg-breadcrumbs a {
    color: #53606d;
    text-decoration: underline;
    text-decoration-color: #aab5bf;
    text-underline-offset: 3px;
}

.sg-breadcrumbs a:hover {
    color: var(--sg-accent-dark);
}

.sg-eyebrow,
.sg-kicker {
    margin-bottom: 13px;
    color: var(--sg-accent-dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sg-hero h1 {
    max-width: 690px;
    padding: 0;
    margin: 0 0 20px;
    color: var(--sg-ink);
    font-size: clamp(2.55rem, 4.1vw, 4.45rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
    text-align: left;
}

.sg-hero-lead {
    max-width: 650px;
    margin-bottom: 24px;
    color: #4c5865;
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.55;
}

.sg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.sg-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.sg-button-primary {
    color: var(--sg-white);
    background: var(--sg-brand);
    box-shadow: 0 10px 25px rgba(27, 94, 127, .24);
}

.sg-button-primary:hover,
.sg-button-primary:focus-visible {
    color: var(--sg-white);
    background: var(--sg-brand-hover);
    box-shadow: 0 12px 30px rgba(21, 74, 102, .3);
    transform: translateY(-1px);
}

.sg-button-secondary {
    color: var(--sg-brand);
    border-color: var(--sg-brand);
    background: rgba(255, 255, 255, .75);
}

.sg-button-secondary:hover,
.sg-button-secondary:focus-visible {
    color: var(--sg-white);
    border-color: var(--sg-brand-hover);
    background: var(--sg-brand-hover);
}

.sg-button:focus-visible,
.sg-page summary:focus-visible,
.sg-page a:focus-visible {
    outline: 3px solid rgba(21, 74, 102, .32);
    outline-offset: 3px;
}

.sg-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin-bottom: 14px;
    list-style: none;
}

.sg-facts li {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(166, 185, 197, .58);
    border-radius: 9px;
    background: rgba(255, 255, 255, .62);
}

.sg-facts strong,
.sg-facts span {
    display: block;
}

.sg-facts strong {
    color: var(--sg-ink);
    font-size: 1.3rem;
    line-height: 1.3;
}

.sg-facts span {
    margin-top: 3px;
    color: var(--sg-muted);
    font-size: 1.1rem;
    line-height: 1.35;
}

.sg-hero-note {
    padding-left: 14px;
    margin-bottom: 0;
    border-left: 3px solid var(--sg-accent);
    color: #5e6874;
    font-size: .88rem;
}

.sg-hero-media {
    position: relative;
}

.sg-hero-media::before {
    position: absolute;
    top: 22px;
    right: -22px;
    bottom: -22px;
    left: 22px;
    border: 2px solid rgba(201, 151, 67, .55);
    border-radius: 22px;
    content: "";
}

.sg-hero-media picture::after {
    position: absolute;
    right: -90px;
    bottom: -90px;
    z-index: 2;
    width: 270px;
    height: 270px;
    background: url('/remont-rolstaven/images/remont-rolstaven-decor-roll.webp?v=20260804-3d-square') center / contain no-repeat;
    content: "";
    mix-blend-mode: multiply;
    opacity: .2;
    pointer-events: none;
    transform: rotate(-8deg);
}

.sg-hero-media picture,
.sg-hero-media img {
    display: block;
    width: 100%;
}

.sg-hero-media picture {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(37, 43, 51, .18);
}

.sg-hero-media img {
    position: relative;
    height: auto;
    aspect-ratio: 5 / 4;
    border-radius: 18px;
    object-fit: cover;
}

.sg-section-muted {
    background: linear-gradient(0deg, #fff 0%, #fffaf0 46%, #fff1d8 100%);
}

.sg-heading {
    max-width: 800px;
    margin: 0 auto 44px;
    text-align: center;
}

.sg-heading-left {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.sg-heading h2,
.sg-order-copy h2 {
    margin: 0 0 18px;
    color: var(--sg-ink);
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.sg-heading > p:last-child,
.sg-order-copy > p {
    margin-bottom: 0;
    color: var(--sg-muted);
    font-size: 1.05rem;
}

.sg-card-grid {
    display: grid;
    gap: 20px;
}

.sg-card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-card {
    position: relative;
    min-height: 220px;
    padding: 30px 26px;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    background: var(--sg-white);
    box-shadow: 0 12px 30px rgba(36, 76, 101, .11);
}

.sg-card::after {
    position: absolute;
    right: -95px;
    bottom: -95px;
    width: 220px;
    height: 220px;
    background: url('/remont-rolstaven/images/remont-rolstaven-decor-roll.webp?v=20260804-3d-square') center / contain no-repeat;
    content: "";
    mix-blend-mode: multiply;
    opacity: .12;
    pointer-events: none;
    transform: rotate(-8deg);
}

.sg-card h3,
.sg-work-card h3,
.sg-process h3 {
    position: relative;
    z-index: 1;
    height: auto;
    margin: 0 0 10px;
    color: var(--sg-ink);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.sg-card p,
.sg-work-card p,
.sg-process p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: var(--sg-muted);
    font-size: .95rem;
}

.sg-warning {
    max-width: 980px;
    padding: 22px 24px;
    margin: 30px auto 0;
    border: 1px solid #ead8b5;
    border-left: 5px solid var(--sg-accent);
    border-radius: 10px;
    color: #5e4929;
    background: #fff8eb;
    box-shadow: 0 8px 22px rgba(36, 76, 101, .08);
}

.sg-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sg-work-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
    background: var(--sg-white);
    box-shadow: 0 9px 24px rgba(36, 76, 101, .08);
}

.sg-work-card > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 10px;
    color: var(--sg-white);
    background: var(--sg-accent-dark);
    font-size: .85rem;
    font-weight: 700;
}

.sg-price-layout,
.sg-types-layout,
.sg-order-layout,
.sg-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}

.sg-price-layout .sg-heading,
.sg-types-layout .sg-heading,
.sg-faq-layout .sg-heading {
    margin-bottom: 0;
}

.sg-price-box {
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    background: var(--sg-white);
    box-shadow: 0 18px 48px rgba(42, 64, 78, .1);
}

.sg-price-row {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 25px 28px;
    border-bottom: 1px solid var(--sg-line);
}

.sg-price-row span {
    max-width: 350px;
    font-weight: 600;
    line-height: 1.45;
}

.sg-price-row strong {
    flex: 0 0 auto;
    color: var(--sg-accent-dark);
    font-size: 1.27rem;
}

.sg-price-note {
    padding: 21px 28px;
    margin-bottom: 0;
    color: #5e4929;
    background: #fff6e5;
    font-size: .92rem;
    font-weight: 600;
}

.sg-price-catalog {
    grid-column: 1 / -1;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    background: var(--sg-white);
    box-shadow: 0 18px 48px rgba(42, 64, 78, .1);
}

.sg-price-catalog-heading {
    max-width: 820px;
    margin-bottom: 24px;
}

.sg-price-catalog-heading h3 {
    margin: 0 0 10px;
    color: var(--sg-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.sg-price-catalog-heading p {
    margin-bottom: 0;
    color: var(--sg-muted);
}

.sg-price-accordion {
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
    background: var(--sg-white);
}

.sg-price-category + .sg-price-category {
    border-top: 1px solid var(--sg-line);
}

.sg-price-category summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px;
    gap: 14px;
    align-items: center;
    padding: 19px 22px;
    color: var(--sg-ink);
    background: var(--sg-white);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
}

.sg-price-category summary::-webkit-details-marker {
    display: none;
}

.sg-price-category summary::after {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--sg-accent-dark);
    border-bottom: 2px solid var(--sg-accent-dark);
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.sg-price-category[open] summary {
    background: #fff6e5;
}

.sg-price-category[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.sg-price-category summary small {
    color: var(--sg-muted);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.sg-price-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--sg-line);
}

.sg-service-price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sg-white);
}

.sg-service-price-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sg-service-price-table th,
.sg-service-price-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sg-line);
    text-align: left;
    vertical-align: middle;
}

.sg-service-price-table th {
    color: var(--sg-ink);
    background: #fffcf7;
    font-size: .9rem;
    font-weight: 700;
}

.sg-service-price-table th:last-child,
.sg-service-price-table td:last-child {
    width: 190px;
    color: var(--sg-accent-dark);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.sg-service-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.sg-service-price-table tbody tr:nth-child(even) {
    background: #fffdfa;
}

.sg-page .sg-price-accordion + .sg-price-disclaimer {
    padding-left: 14px;
    margin: 1.55em 0 0;
    border-left: 3px solid var(--sg-accent);
    color: var(--sg-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.sg-transport-box {
    grid-column: 1 / -1;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    background: var(--sg-white);
    box-shadow: 0 18px 48px rgba(42, 64, 78, .1);
}

.sg-transport-heading {
    max-width: 820px;
    margin-bottom: 24px;
}

.sg-transport-heading h3 {
    margin: 0 0 10px;
    color: var(--sg-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.sg-transport-heading p,
.sg-transport-note {
    color: var(--sg-muted);
}

.sg-transport-heading p {
    margin-bottom: 0;
}

.sg-transport-table-wrap {
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
}

.sg-transport-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sg-white);
}

.sg-transport-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sg-transport-table th,
.sg-transport-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sg-line);
    text-align: left;
    vertical-align: middle;
}

.sg-transport-table th {
    color: var(--sg-ink);
    background: #fff6e5;
    font-size: .93rem;
    font-weight: 700;
}

.sg-transport-table th:last-child,
.sg-transport-table td:last-child {
    width: 220px;
    text-align: right;
    white-space: nowrap;
}

.sg-transport-table tbody tr:last-child td {
    border-bottom: 0;
}

.sg-transport-table tbody tr:nth-child(even) {
    background: #fffcf7;
}

.sg-transport-table td strong {
    color: var(--sg-accent-dark);
}

.sg-page .sg-transport-table-wrap + .sg-transport-note {
    padding-left: 14px;
    margin: 1.55em 0 0;
    border-left: 3px solid var(--sg-accent);
    font-size: .9rem;
    line-height: 1.55;
}

.sg-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    counter-reset: process;
}

.sg-process li {
    padding: 26px 22px;
    border-top: 4px solid var(--sg-accent);
    border-radius: 0 0 12px 12px;
    background: var(--sg-white);
    box-shadow: 0 10px 32px rgba(42, 64, 78, .07);
}

.sg-process li > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid #ead8b5;
    border-radius: 50%;
    color: var(--sg-accent-dark);
    background: #fff6e5;
    font-weight: 700;
}

.sg-type-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.sg-type-list li {
    position: relative;
    padding: 17px 16px 17px 45px;
    border: 1px solid var(--sg-line);
    border-radius: 10px;
    background: var(--sg-white);
    box-shadow: 0 8px 22px rgba(36, 76, 101, .075);
    font-weight: 600;
    line-height: 1.35;
}

.sg-type-list li::before {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 14px;
    height: 8px;
    border-bottom: 3px solid var(--sg-accent-dark);
    border-left: 3px solid var(--sg-accent-dark);
    content: "";
    transform: translateY(-65%) rotate(-45deg);
}

.sg-types-note {
    padding-left: 16px;
    border-left: 3px solid var(--sg-accent);
    font-size: .93rem !important;
}

.sg-benefits {
    color: var(--sg-ink);
    background: linear-gradient(0deg, #fff 0%, #fffaf0 44%, #fff1d8 100%);
}

.sg-benefits .sg-kicker {
    color: var(--sg-accent-dark);
}

.sg-benefits .sg-heading h2 {
    color: var(--sg-ink);
}

.sg-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.sg-benefit-grid li {
    padding: 23px;
    border: 1px solid var(--sg-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 26px rgba(36, 76, 101, .09);
}

.sg-benefit-grid strong,
.sg-benefit-grid span {
    display: block;
}

.sg-benefit-grid strong {
    margin-bottom: 5px;
    color: var(--sg-accent-dark);
    font-size: 1.05rem;
}

.sg-benefit-grid span {
    color: var(--sg-muted);
    font-size: .9rem;
}

main .sg-page .sg-order-section {
    position: relative;
    background: var(--sg-white);
}

.sg-order-layout {
    grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr);
}

.sg-order-copy,
.sg-order-copy h2,
.sg-order-copy > p {
    color: var(--sg-ink);
}

.sg-order-copy .sg-kicker {
    color: var(--sg-accent-dark);
}

.sg-order-phone {
    display: inline-block;
    margin: 28px 0 15px;
    color: var(--sg-accent-dark);
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.sg-order-phone:hover {
    color: var(--sg-brand);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.sg-order-small {
    font-size: .9rem !important;
}

.sg-order-small a {
    color: var(--sg-accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sg-service-details {
    display: grid;
    gap: 12px;
    padding: 20px;
    margin: 4px 0 18px;
    border: 1px solid rgba(201, 151, 67, .48);
    border-radius: 12px;
    background: #fffaf0;
    font-style: normal;
}

.sg-service-detail {
    display: grid;
    gap: 2px;
}

.sg-service-detail strong,
.sg-service-detail span {
    display: block;
}

.sg-service-detail strong {
    color: var(--sg-accent-dark);
    font-size: .88rem;
    line-height: 1.35;
}

.sg-service-detail span {
    color: var(--sg-ink);
    font-size: .96rem;
    line-height: 1.45;
}

.sg-form-wrap {
    padding: 28px;
    border-radius: 16px;
    color: var(--sg-ink);
    background: var(--sg-white);
    border: 1px solid rgba(201, 151, 67, .48);
    box-shadow: 0 20px 48px rgba(36, 76, 101, .14);
}

.sg-form-wrap .order-form,
.sg-form-wrap form {
    width: 100%;
    max-width: none;
}

.sg-form-wrap input,
.sg-form-wrap textarea,
.sg-form-wrap select {
    max-width: 100%;
}

.sg-form-wrap .sg-agreement-field {
    margin-top: 18px;
}

.sg-form-wrap .agreement-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sg-form-wrap .agreement-checkbox {
    display: grid;
    place-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    margin: 2px 0 0;
    border: 1px solid var(--sg-accent-dark);
    border-radius: 4px;
    color: var(--sg-white);
    background: var(--sg-white);
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sg-form-wrap .agreement-checkbox::before {
    width: 6px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.sg-form-wrap .agreement-checkbox:checked {
    border-color: var(--sg-accent-dark);
    background: var(--sg-accent-dark);
}

.sg-form-wrap .agreement-checkbox:checked::before {
    transform: rotate(45deg) scale(1);
}

.sg-form-wrap .agreement-checkbox:hover {
    border-color: var(--sg-brand);
}

.sg-form-wrap .agreement-checkbox:focus-visible {
    outline: 3px solid rgba(42, 136, 223, .25);
    outline-offset: 2px;
}

.sg-form-wrap .agreement-label {
    margin: 0;
    color: var(--sg-muted);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.45;
}

.sg-form-wrap .agreement-label a {
    color: var(--sg-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sg-form-wrap .agreement-label a:hover {
    color: var(--sg-accent-dark);
}

.sg-form-wrap .sg-agreement-field.error .agreement-checkbox {
    border-color: #d84b4b;
}

.sg-form-wrap .sg-agreement-field > span.error {
    display: block;
    margin-top: 7px;
    color: #c52f2f;
    font-size: .82rem;
    line-height: 1.35;
}

.sg-faq-layout {
    align-items: start;
}

main .sg-page .sg-faq-section {
    background: linear-gradient(0deg, #fff 0%, #fffaf0 44%, #fff1d8 100%);
}

.sg-faq-list {
    border-top: 1px solid var(--sg-line);
}

.sg-faq-list details {
    border-bottom: 1px solid var(--sg-line);
}

.sg-faq-list summary {
    position: relative;
    padding: 22px 52px 22px 0;
    color: var(--sg-ink);
    cursor: pointer;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
}

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

.sg-faq-list summary::before,
.sg-faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 2px;
    background: var(--sg-accent-dark);
    content: "";
    transition: transform .2s ease;
}

.sg-faq-list summary::after {
    transform: rotate(90deg);
}

.sg-faq-list details[open] summary::after {
    transform: rotate(0);
}

.sg-faq-list details > div {
    padding: 0 52px 22px 0;
}

.sg-faq-list details p {
    margin-bottom: 0;
    color: var(--sg-muted);
}



/* Адаптивные фотографии выполненных работ */
.sg-work-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.sg-work-photo,
.sg-process-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    background: var(--sg-white);
    box-shadow: 0 14px 36px rgba(36, 76, 101, .11);
}

.sg-work-photo picture,
.sg-work-photo img,
.sg-process-photo picture,
.sg-process-photo img {
    display: block;
    width: 100%;
}

.sg-work-photo picture {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.sg-work-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sg-work-photo figcaption,
.sg-process-photo figcaption {
    padding: 16px 18px 18px;
    color: var(--sg-ink);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.4;
}

.sg-process-photo {
    margin-top: 36px;
}

.sg-process-photo img {
    height: auto;
}

/* Бренды рольставен и автоматики: геометрия идентична секционным воротам и шлагбаумам */
.sg-brands-section {
    background: #fff;
}

.sg-brand-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sg-brand-list li {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
    color: var(--sg-ink);
    background: var(--sg-white);
    box-shadow: 0 8px 22px rgba(36, 76, 101, .07);
    font-size: 1.02rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
}

.sg-brand-logo {
    display: flex;
    width: 100%;
    max-width: 178px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.sg-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sg-brand-name {
    display: block;
    line-height: 1.2;
}

.sg-page .sg-brand-list + .sg-brand-note {
    max-width: 880px;
    display: block;
    padding-left: 14px;
    margin: 34px 0 0;
    border-left: 3px solid var(--sg-accent);
    color: var(--sg-muted);
    font-size: .9rem;
    line-height: 1.55;
}

/* Отложенный рендеринг нижних секций страницы */
@supports (content-visibility: auto) {
    main .sg-page .sg-section {
        content-visibility: auto;
        contain-intrinsic-size: auto 800px;
    }
}

@media (max-width: 820px) {
    @supports (content-visibility: auto) {
        main .sg-page .sg-section {
            contain-intrinsic-size: auto 1100px;
        }
    }
}

@media (max-width: 1020px) {
    .sg-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
        gap: 36px;
    }

    .sg-facts {
        grid-template-columns: 1fr;
    }

    .sg-card-grid-three,
    .sg-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .sg-work-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sg-brand-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-brand-list li {
        min-height: 96px;
    }

    .sg-brand-logo {
        max-width: 160px;
        height: 32px;
    }

    .sg-container {
        width: min(100% - 32px, 720px);
    }

    .sg-hero::after,
    main .sg-page .sg-section::after {
        right: -160px;
        bottom: -160px;
        width: 390px;
        height: 390px;
        opacity: .12;
    }

    main .sg-page section {
        padding: 68px 0;
    }

    .sg-hero-grid,
    .sg-price-layout,
    .sg-types-layout,
    .sg-order-layout,
    .sg-faq-layout {
        grid-template-columns: 1fr;
    }

    .sg-hero-grid {
        gap: 42px;
    }

    .sg-hero-media {
        width: min(100%, 650px);
        margin-inline: auto;
    }

    .sg-hero-media::before {
        right: -12px;
        bottom: -12px;
        left: 12px;
    }

    .sg-hero-media picture::after {
        right: -78px;
        bottom: -78px;
        width: 225px;
        height: 225px;
        opacity: .17;
    }

    .sg-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-price-layout,
    .sg-types-layout,
    .sg-order-layout,
    .sg-faq-layout {
        gap: 36px;
    }

    .sg-work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sg-brand-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .sg-brand-list li {
        min-height: 86px;
        gap: 8px;
        padding: 10px;
        font-size: .92rem;
    }

    .sg-brand-logo {
        max-width: 126px;
        height: 28px;
    }

    .sg-container {
        width: min(100% - 24px, 540px);
    }

    main .sg-page section {
        padding: 52px 0;
    }

    main .sg-page .sg-hero {
        padding-top: 28px;
    }

    .sg-hero::after,
    main .sg-page .sg-section::after {
        right: -125px;
        bottom: -125px;
        width: 300px;
        height: 300px;
        opacity: .11;
    }

    .sg-hero-media picture::after {
        right: -60px;
        bottom: -60px;
        width: 175px;
        height: 175px;
        opacity: .15;
    }

    .sg-card::after {
        right: -75px;
        bottom: -75px;
        width: 175px;
        height: 175px;
        opacity: .1;
    }

    .sg-breadcrumbs {
        margin-bottom: 22px;
        font-size: .78rem;
    }

    .sg-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(2.15rem, 11vw, 3rem);
        line-height: 1.08;
    }

    .sg-hero-lead {
        margin-bottom: 24px;
        font-size: 1rem;
    }

    .sg-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 26px;
    }

    .sg-button {
        width: 100%;
    }

    .sg-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sg-facts li {
        display: flex;
        gap: 8px;
        align-items: baseline;
        justify-content: space-between;
    }

    .sg-facts span {
        margin-top: 0;
        text-align: right;
    }

    .sg-hero-media img {
        aspect-ratio: 6 / 5;
        border-radius: 12px;
    }

    .sg-hero-media picture {
        border-radius: 12px;
    }

    .sg-heading {
        margin-bottom: 30px;
    }

    .sg-heading h2,
    .sg-order-copy h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .sg-heading > p:last-child,
    .sg-order-copy > p {
        font-size: .98rem;
    }

    .sg-card-grid-three,
    .sg-benefit-grid,
    .sg-process,
    .sg-type-list,
    .sg-work-gallery {
        grid-template-columns: 1fr;
    }

    .sg-card {
        min-height: 0;
        padding: 24px 21px;
    }

    .sg-warning {
        padding: 19px 18px;
    }

    .sg-work-gallery,
    .sg-process-photo {
        margin-top: 28px;
    }

    .sg-work-photo figcaption,
    .sg-process-photo figcaption {
        padding: 14px 16px 16px;
        font-size: .93rem;
    }

    .sg-work-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
    }

    .sg-work-card > span {
        width: 40px;
        height: 40px;
    }

    .sg-price-row {
        display: block;
        padding: 21px;
    }

    .sg-price-row strong {
        display: block;
        margin-top: 8px;
    }

    .sg-price-note {
        padding: 19px 21px;
    }

    .sg-price-catalog {
        padding: 22px 16px;
    }

    .sg-price-category summary {
        grid-template-columns: minmax(0, 1fr) 20px;
        gap: 10px;
        padding: 17px 15px;
    }

    .sg-price-category summary small {
        display: none;
    }

    .sg-service-price-table th,
    .sg-service-price-table td {
        padding: 12px 10px;
        font-size: .9rem;
    }

    .sg-service-price-table th:last-child,
    .sg-service-price-table td:last-child {
        width: auto;
    }

    .sg-transport-box {
        padding: 22px 16px;
    }

    .sg-transport-table th,
    .sg-transport-table td {
        padding: 12px 10px;
        font-size: .9rem;
    }

    .sg-transport-table th:last-child,
    .sg-transport-table td:last-child {
        width: auto;
    }

    .sg-service-details {
        padding: 17px 16px;
    }

    .sg-form-wrap {
        padding: 20px 16px;
    }

    .sg-faq-list summary {
        padding-right: 42px;
    }

    .sg-faq-list details > div {
        padding-right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-page *,
    .sg-page *::before,
    .sg-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* WCAG 2.1 AA: sufficient contrast for white footer text and links. */
body > footer {
    background-color: #2474b8;
}
