:root {
    --blue: #174d80;
    --dark: #12314f;
    --orange: #df672a;
    --line: #dce4eb;
    --muted: #5c6f80;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: #243544;
    background: #f4f7fa;
    font:
        16px/1.6 system-ui,
        -apple-system,
        Arial,
        sans-serif;
}
a {
    color: var(--blue);
    text-underline-offset: 3px;
}
a:hover {
    color: #a94719;
}
img,
video {
    max-width: 100%;
    height: auto;
}
button,
input,
textarea {
    font: inherit;
}
.wrap {
    max-width: 1320px;
    margin: auto;
    padding: 0 28px;
}
.preview {
    background: #fff2d8;
    text-align: center;
    font-size: 13px;
    padding: 6px;
}
.header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 26px;
    padding-bottom: 26px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--dark);
}
.brand img {
    width: 210px;
    object-fit: contain;
}
.brand span {
    font-size: 13px;
    color: var(--muted);
}
.phones {
    margin-left: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
    font-size: 15px;
    white-space: nowrap;
}
.phones a {
    text-decoration: none;
    font-weight: 650;
}
.button {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    background: var(--orange);
    color: white;
    padding: 12px 20px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.button:hover {
    background: #bd4f19;
    color: white;
}
.topnav {
    background: var(--dark);
    color: white;
}
.topnav .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.topnav a {
    color: white;
    text-decoration: none;
    padding: 16px 18px;
    display: block;
}
.topnav a:hover {
    background: #24557e;
}
.topnav .factory {
    margin-left: auto;
    color: #ffcc93;
}
.layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 48px;
}
aside details {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
summary {
    padding: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #edf3f8;
}
aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
aside li > a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    border-top: 1px solid #eef2f5;
}
aside li li a {
    padding-left: 25px;
    font-size: 13px;
    color: #506477;
}
aside a[aria-current] {
    background: #e5eff8;
    color: #103e69;
    font-weight: 700;
}
.promotion {
    padding: 18px;
    background: #fff5e9;
    border-radius: 8px;
    font-size: 13px;
}
.promotion h3 {
    font-size: 17px;
}
main {
    min-width: 0;
    background: white;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
h1 {
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.2;
    color: var(--dark);
    margin: 0 0 24px;
}
h2 {
    color: var(--dark);
    font-size: 25px;
    line-height: 1.3;
}
h3 {
    line-height: 1.35;
}
.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}
.prose {
    overflow-wrap: anywhere;
}
.prose table {
    max-width: 100% !important;
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 14px;
}
.prose td,
.prose th {
    padding: 9px;
    border: 1px solid var(--line);
}
.prose img {
    object-fit: contain;
}
.prose p {
    margin: 0 0 16px;
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}
.intro {
    background: #eef5fa;
    border-left: 4px solid var(--blue);
    padding: 22px;
    margin-bottom: 26px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.gallery figure {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.gallery img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}
.gallery figcaption {
    font-size: 13px;
    color: var(--muted);
    padding-top: 8px;
}
.gallery-section {
    margin-top: 35px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.form-section {
    max-width: 620px;
    margin: 24px 0;
}
form label {
    display: block;
    margin-bottom: 16px;
}
input:not([type="checkbox"]):not([type="hidden"]),
textarea {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #a7b8c6;
    border-radius: 6px;
    margin-top: 5px;
    background: #fff;
}
input:focus,
textarea:focus {
    outline: 2px solid #4382b7;
    outline-offset: 2px;
}
.consent {
    font-size: 14px;
}
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.notice,
.error {
    padding: 16px;
    border-radius: 6px;
    background: #e5f4e9;
}
.error {
    background: #ffe7e2;
    color: #8a281c;
}
footer {
    background: var(--dark);
    color: #fff;
    padding: 25px 0;
}
footer a {
    color: #fff;
}
footer table td {
    border: none !important;
    vertical-align: top;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
}
.skip {
    position: absolute;
    left: -10000px;
}
.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    padding: 15px;
    z-index: 10;
}
@media (max-width: 1050px) {
    .brand span {
        display: none;
    }
    .header {
        gap: 18px;
    }
    .phones {
        grid-template-columns: 1fr;
        font-size: 13px;
    }
    .topnav a {
        padding: 12px;
    }
    .layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 20px;
    }
    main {
        padding: 24px;
    }
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .header {
        flex-wrap: wrap;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .brand img {
        width: 160px;
    }
    .phones {
        margin-left: auto;
    }
    .header > .button {
        width: 100%;
        text-align: center;
    }
    .topnav a {
        padding: 10px;
        font-size: 14px;
    }
    .topnav .factory {
        margin-left: 0;
    }
    .layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding-top: 18px;
    }
    aside {
        order: 2;
    }
    main {
        padding: 20px 16px;
        order: 1;
    }
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .gallery figure {
        padding: 7px;
    }
    .gallery img {
        height: 110px;
    }
    .prose table {
        font-size: 12px;
    }
    .prose td {
        padding: 5px;
    }
    .intro {
        padding: 14px;
    }
    footer table,
    footer tbody,
    footer tr,
    footer td {
        display: block !important;
        width: 100% !important;
    }
    footer td {
        margin-bottom: 18px;
    }
}
