:root {
    --ink: #506b87;
    --iris: #6767bb;
    --copper: #dc714a;
    --aqua: #269eaa;
    --white: #fff;
    --mist: #edf1ff;
    --glacier: #e5f8fb;
    --edge: #b4d9e7;
    --pale-orange: #fff1ea;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--iris);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--copper);
}

a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 4px;
}

p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.73;
}

h1, h2, h3 {
    margin: 0;
    color: var(--iris);
    line-height: 1.16;
    letter-spacing: -.023em;
}

h1 {
    font-size: 40px;
    line-height: 1.12;
    margin-bottom: 21px;
    overflow-wrap: anywhere;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

.frame {
    width: min(100% - 70px, 1180px);
    margin-inline: auto;
}

.top {
    background: var(--white);
    border-top: 6px solid var(--copper);
    border-bottom: 1px solid var(--edge);
}

.top__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-block: 15px;
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    white-space: nowrap;
}

.identity__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 57px;
    background: var(--iris);
    color: var(--white);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.04em;
    border-radius: 5px 15px 5px 5px;
    border-bottom: 6px solid var(--copper);
}

.identity__town {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
    color: var(--iris);
}

.navigation {
    display: flex;
    gap: 7px;
    align-items: center;
}

.navigation a {
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    color: var(--ink);
    padding: 9px 16px;
    border-bottom: 3px solid transparent;
}

.navigation a:hover, .navigation a[aria-current="page"] {
    color: var(--iris);
    border-color: var(--copper);
}

.navigation-small {
    display: none;
    position: relative;
}

.navigation-small summary {
    cursor: pointer;
    border: 2px solid var(--iris);
    color: var(--iris);
    padding: 7px 14px;
    font-weight: 750;
    border-radius: 5px;
    list-style: none;
}

.navigation-small summary::-webkit-details-marker {
    display: none;
}

.navigation-small nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 182px;
    padding: 7px;
    background: var(--white);
    border: 2px solid var(--iris);
    box-shadow: 0 8px 20px #7387a933;
}

.navigation-small nav a {
    display: block;
    padding: 9px 11px;
    text-decoration: none;
    font-weight: 750;
}

.intro {
    background: var(--mist);
    border-bottom: 5px solid var(--iris);
    padding: 22px 0 40px;
}

.intro__ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #c4c9ec;
    margin-bottom: 28px;
    font-size: 12px;
    color: var(--iris);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 850;
}

.intro__ribbon span:first-child::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--copper);
    transform: rotate(45deg);
    margin-right: 10px;
}

.intro__body {
    display: grid;
    grid-template-columns: minmax(0, 1.56fr) minmax(280px, .85fr);
    align-items: center;
    gap: clamp(25px, 4.3vw, 65px);
}

.intro__words p:last-of-type {
    margin-bottom: 23px;
}

.button-pair {
    display: flex;
    gap: 11px;
    align-items: stretch;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 19px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.button:active {
    transform: translateY(1px);
}

.button--phone {
    color: var(--white);
    background: var(--copper);
    border-color: var(--copper);
}

.button--phone:hover {
    color: var(--white);
    background: #bb5c37;
    border-color: #bb5c37;
}

.button--submit {
    color: var(--iris);
    background: var(--white);
    border-color: var(--iris);
}

.button--submit:hover {
    background: var(--iris);
    color: var(--white);
}

.diagram {
    width: 100%;
    background: var(--white);
    border: 2px solid #adb5e0;
    box-shadow: 11px 10px 0 #d4ddf4;
    padding: 17px 21px 14px;
    transform: rotate(.6deg);
}

.diagram__scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mist);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    color: var(--aqua);
}

.diagram__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    border-top: 2px solid var(--mist);
    font-size: 12px;
    font-weight: 800;
    color: var(--iris);
}

.diagram__ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 5px solid var(--copper);
    box-shadow: 0 0 0 3px #f8d1c5;
    flex: none;
}

.outline {
    position: relative;
    margin: 21px auto;
    width: min(210px, 100%);
    height: 227px;
    border: 7px solid var(--iris);
    border-radius: 8px 8px 5px 5px;
    background: #f4faff;
    box-shadow: inset 0 -11px 0 #d9ebf3;
}

.outline__control {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 43px;
    padding: 0 12px;
    border-bottom: 5px solid var(--iris);
    background: #e0edf8;
}

.outline__dial {
    display: block;
    position: relative;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--aqua);
}

.outline__dial::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 8px;
    left: 6px;
    top: -1px;
    transform: rotate(35deg);
    background: var(--copper);
}

.outline__screen {
    display: block;
    margin-left: auto;
    width: 55px;
    height: 16px;
    background: #b3e5ed;
    border: 3px solid var(--aqua);
}

.outline__light {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--copper);
}

.outline__inside {
    position: absolute;
    inset: 54px 13px 19px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.outline__core {
    width: 139px;
    height: 139px;
    border: 14px solid var(--aqua);
    border-radius: 50%;
    background: radial-gradient(circle at 41% 35%, #f9ffff 0 10%, #b9e8f6 11% 43%, #77a9dc 44% 100%);
    box-shadow: 0 0 0 4px #c8dced, inset 0 0 0 6px #c9e7ee;
}

.outline__base {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 6px;
    border-top: 3px solid #b5d8e8;
}

.outline--dishwasher .outline__inside {
    border: 5px solid var(--aqua);
    border-radius: 3px;
    background: repeating-linear-gradient(0deg, #f0faff 0 26px, #c7e3ef 26px 31px);
}

.outline--dishwasher .outline__core {
    position: absolute;
    width: 73%;
    height: 23px;
    top: 21px;
    border: 4px solid var(--iris);
    border-radius: 1px;
    background: repeating-linear-gradient(90deg, #c2dce9 0 10px, var(--iris) 11px 14px);
    box-shadow: none;
}

.outline--dishwasher .outline__bar {
    position: absolute;
    width: 73%;
    height: 23px;
    bottom: 25px;
    border: 4px solid var(--iris);
    background: repeating-linear-gradient(90deg, #c2dce9 0 10px, var(--iris) 11px 14px);
}

.outline--dishwasher .outline__bar--second {
    width: 90%;
    height: 5px;
    bottom: 11px;
    border: 0;
    background: var(--copper);
}

.outline--fridge {
    width: 176px;
    height: 251px;
    border-radius: 12px;
}

.outline--fridge .outline__control {
    display: none;
}

.outline--fridge .outline__inside {
    inset: 8px 0 13px;
    display: block;
}

.outline--fridge .outline__core {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 79px;
    border: 0;
    border-bottom: 7px solid var(--iris);
    border-radius: 0;
    box-shadow: none;
    background: #dfedf9;
}

.outline--fridge .outline__core::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 24px;
    width: 6px;
    height: 34px;
    background: var(--copper);
    border-radius: 5px;
}

.outline--fridge .outline__bar {
    position: absolute;
    width: 6px;
    height: 58px;
    right: 14px;
    top: 117px;
    background: var(--copper);
    border-radius: 5px;
}

.outline--fridge .outline__bar--second {
    left: 8px;
    right: 8px;
    top: 100px;
    width: auto;
    height: 2px;
    background: #c3d9e9;
}

.outline--oven .outline__inside {
    border: 9px solid var(--aqua);
    border-radius: 5px;
    background: #b8dbe9;
    box-shadow: inset 0 -12px 0 #79a7ce;
}

.outline--oven .outline__core {
    width: 110px;
    height: 83px;
    border: 7px solid #7aa8cc;
    border-radius: 3px;
    box-shadow: none;
    background: linear-gradient(90deg, transparent 47%, #eff9fc 48% 52%, transparent 53%);
}

.outline--oven .outline__bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 5px;
    background: var(--copper);
}

.outline--oven .outline__bar--second {
    bottom: auto;
    top: 11px;
    background: var(--white);
}

.segment {
    border-bottom: 1px solid var(--edge);
    padding: 37px 0 39px;
}

.segment--tinted {
    background: var(--mist);
}

.segment--local {
    background: var(--glacier);
}

.segment__lead {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.segment__bar {
    width: 9px;
    height: 49px;
    flex: none;
    background: var(--copper);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 0 4px var(--pale-orange);
    margin-top: 2px;
}

.segment__label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 850;
    text-transform: uppercase;
    color: var(--copper);
}

.segment__writing {
    width: 100%;
    padding-left: 27px;
    border-left: 1px solid var(--edge);
}

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

.segment--local .segment__bar {
    background: var(--aqua);
    box-shadow: 0 0 0 4px #d6f1f3;
}

.segment--local .segment__label {
    color: var(--aqua);
}

.segment__writing strong {
    color: var(--iris);
}

.appointment {
    padding: 31px 0;
    background: var(--iris);
    color: var(--white);
}

.appointment__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.appointment__copy {
    max-width: 670px;
}

.appointment h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.appointment p {
    margin: 0;
}

.appointment .button-pair {
    flex: none;
}

.appointment .button--phone {
    border-color: var(--white);
}

.bottom {
    background: #e8f1f9;
    padding: 28px 0 32px;
}

.bottom__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bottom p {
    margin: 10px 0 0;
}

.bottom__links {
    display: flex;
    gap: 9px 19px;
    flex-wrap: wrap;
}

.bottom__links a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bottom__links a:last-child {
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 1080px) {
    .intro__body {
        grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr);
        gap: 26px;
    }

    .appointment__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 810px) {
    .frame {
        width: min(100% - 44px, 1180px);
    }

    .intro__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 29px;
    }

    .diagram {
        width: min(100%, 370px);
        margin-inline: auto;
    }

    .intro {
        padding-bottom: 35px;
    }

    .bottom__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 660px) {
    .navigation {
        display: none;
    }

    .navigation-small {
        display: block;
    }

    .segment {
        padding-block: 30px;
    }

    .segment__lead {
        gap: 12px;
    }

    .segment__writing {
        padding-left: 15px;
    }

    .intro__ribbon {
        margin-bottom: 23px;
    }
}

@media (max-width: 430px) {
    .frame {
        width: min(100% - 30px, 1180px);
    }

    .identity__symbol {
        width: 45px;
        height: 35px;
        font-size: 15px;
    }

    .identity__town {
        font-size: 20px;
    }

    .top__row {
        padding-block: 12px;
    }

    .button-pair {
        width: 100%;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .appointment .button-pair {
        flex: auto;
    }

    .intro__ribbon {
        font-size: 11px;
    }
}
