:root {
    --ink: #285469;
    --ink-soft: #4e7181;
    --sea: #147f99;
    --sea-deep: #236579;
    --sea-line: #9bd0da;
    --coral: #cc5976;
    --paper: #ffffff;
    --mist: #f0fafc;
    --mist-deep: #dceff3;
    --line: #d1e5e9;
    --ring: #ed718c;
    --wrap: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.19;
}

h1 {
    font-size: 40px;
    font-weight: 760;
}

h2 {
    font-size: 28px;
    font-weight: 730;
    margin-bottom: 19px;
}

h3 {
    font-size: 20px;
    font-weight: 740;
    margin-bottom: 12px;
}

.wrap {
    width: min(calc(100% - 60px), var(--wrap));
    margin-inline: auto;
}

.site-header {
    border-top: 6px solid var(--coral);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-top: 17px;
    padding-bottom: 17px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.brand b {
    font-weight: 800;
}

.brand:hover {
    color: var(--ink);
}

.brand-icon {
    display: inline-block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 3px solid var(--sea);
    border-radius: 8px;
    position: relative;
    background: linear-gradient(180deg, var(--mist) 0 31%, var(--paper) 31%);
}

.brand-icon::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 7px;
    bottom: 3px;
    border: 3px solid var(--sea);
    border-radius: 50%;
}

.brand-icon span:first-child,
.brand-icon span:last-child {
    position: absolute;
    width: 5px;
    height: 5px;
    top: 3px;
    border-radius: 50%;
    background: var(--coral);
}

.brand-icon span:first-child {
    left: 6px;
}

.brand-icon span:last-child {
    left: 15px;
    background: var(--sea);
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: center;
    justify-content: flex-end;
}

.primary-nav a,
.footer-nav a {
    font-size: 15px;
    font-weight: 670;
}

.primary-nav a:hover,
.footer-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: 7px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 750;
}

.header-phone {
    min-width: 163px;
    flex: 0 0 auto;
    padding: 10px 13px;
    border: 1.5px solid var(--sea);
    border-radius: 5px;
    background: var(--mist);
    color: var(--sea-deep);
    letter-spacing: 0.01em;
}

.header-phone:hover {
    color: var(--paper);
    background: var(--sea);
}

.hero {
    overflow: hidden;
}

.hero-main {
    background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 65%, var(--mist) 65%, var(--mist) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 355px;
    align-items: center;
    gap: clamp(30px, 4vw, 62px);
    padding-top: 51px;
    padding-bottom: 55px;
}

.overline {
    display: block;
    margin: 0 0 12px;
    color: var(--sea);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.overline span {
    color: var(--coral);
    padding-inline: 7px;
}

.hero-copy h1,
.repair-heading h1,
.offer-headline h1 {
    margin-bottom: 20px;
}

.hero-copy p:not(.overline):not(.intro-localities),
.repair-heading p:not(.overline):not(.intro-localities),
.offer-headline p:not(.overline):not(.intro-localities) {
    max-width: 710px;
}

.intro-localities {
    color: var(--sea-deep);
    margin: 19px 0 0;
    font-size: 16px;
    line-height: 1.65;
}

.intro-localities strong {
    font-weight: 760;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 5px;
    border: 1.5px solid transparent;
    font-size: 15px;
    font-weight: 760;
    white-space: nowrap;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.button:active,
.phone-link:active {
    transform: translateY(1px);
}

.button-primary {
    background: var(--sea);
    color: var(--paper);
}

.button-primary:hover {
    background: var(--sea-deep);
    color: var(--paper);
}

.button-secondary {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.button-secondary:hover {
    border-color: var(--sea);
    background: var(--mist);
}

.service-blueprint {
    width: 100%;
    max-width: 355px;
    justify-self: end;
    background: #e0f2f5;
    border: 1px solid #aed5dd;
    box-shadow: 12px 12px 0 #d1e9ed;
    padding: 19px;
    position: relative;
}

.service-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(20, 127, 153, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(20, 127, 153, 0.07) 1px, transparent 1px);
    background-size: 21px 21px;
}

.blueprint-top,
.blueprint-bottom {
    display: flex;
    justify-content: space-between;
    position: relative;
    color: var(--sea-deep);
    font-family: Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.blueprint-bottom {
    border-top: 1px solid var(--sea-line);
    padding-top: 10px;
}

.machine-outline {
    width: min(240px, 89%);
    height: 282px;
    margin: 27px auto 23px;
    position: relative;
    border: 4px solid var(--sea);
    background: #ecf8fa;
    border-radius: 16px 16px 8px 8px;
    box-shadow: inset 0 -12px 0 rgba(20, 127, 153, 0.08);
}

.machine-control {
    height: 45px;
    border-bottom: 3px solid var(--sea);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.control-ring {
    width: 18px;
    height: 18px;
    border: 3px solid var(--sea);
    border-radius: 50%;
}

.control-line {
    width: 55px;
    height: 6px;
    margin-right: auto;
    border-radius: 4px;
    background: var(--sea-line);
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
}

.control-dot:last-child {
    margin-right: 10px;
    background: var(--sea);
}

.machine-drum {
    position: relative;
    width: 170px;
    height: 170px;
    border: 8px solid var(--sea);
    border-radius: 50%;
    margin: 21px auto 0;
    background: #d0e9ee;
    box-shadow: inset 0 0 0 7px #f3fbfc;
}

.drum-core {
    position: absolute;
    inset: 24px;
    border: 3px solid var(--sea-line);
    border-radius: 50%;
}

.drum-core::before,
.drum-core::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 66px;
    top: 47px;
    left: 17px;
    transform: rotate(48deg);
    background: var(--sea-line);
}

.drum-core::after {
    transform: rotate(-48deg);
}

.drum-point {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--coral);
}

.point-one { top: 8px; left: 76px; }
.point-two { top: 104px; left: 19px; }
.point-three { top: 101px; right: 19px; }

.machine-base {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -9px;
    display: flex;
    justify-content: space-between;
}

.machine-base span {
    height: 5px;
    width: 23px;
    background: var(--sea);
}

.intro-bar {
    border-bottom: 1px solid var(--line);
    background: var(--mist);
}

.bar-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-block: 18px;
}

.bar-flow p {
    margin: 0;
    padding: 1px 18px;
    border-left: 3px solid var(--coral);
    font-size: 16px;
    line-height: 1.45;
}

.bar-flow p + p {
    border-left: 1px solid var(--sea-line);
}

.bar-flow strong,
.bar-flow span {
    display: block;
}

.bar-flow strong {
    font-size: 14px;
    color: var(--sea-deep);
}

.bar-flow span {
    margin-top: 4px;
    color: var(--ink-soft);
}

.section {
    padding-block: 53px;
}

.section-index {
    display: block;
    margin-bottom: 11px;
    color: var(--sea);
    font: 800 12px/1.4 "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.1em;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.appliance-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 45px;
    row-gap: 21px;
}

.appliance-copy > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.appliance-copy h3 {
    position: relative;
    padding-left: 18px;
}

.appliance-copy h3::before {
    content: "";
    position: absolute;
    width: 6px;
    top: 3px;
    bottom: 3px;
    left: 0;
    background: var(--coral);
}

.appliance-copy p,
.service-pair p {
    margin-bottom: 0;
}

.section-tint {
    background: var(--mist);
    border-block: 1px solid var(--line);
}

.steps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 46px;
}

.steps-copy p:last-child,
.reach-layout p:last-child {
    margin-bottom: 0;
}

.steps-panel {
    background: var(--paper);
    border: 1px solid var(--sea-line);
    border-top: 5px solid var(--coral);
    padding: 22px 24px 16px;
}

.steps-panel h3 {
    margin-bottom: 15px;
}

.steps-panel ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps-panel li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 580;
}

.steps-panel-detail {
    margin: 13px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.6;
}

.steps-panel li span {
    flex: 0 0 auto;
    color: var(--coral);
    font: 800 13px/1 Consolas, monospace;
}

.reach-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: center;
    gap: 43px;
}

.reach-ticket {
    padding: 25px;
    background: var(--sea-deep);
    color: var(--paper);
    border-bottom: 5px solid var(--coral);
}

.reach-ticket .ticket-top,
.offer-spec > span,
.contact-slip > span {
    display: block;
    margin-bottom: 18px;
    font: 700 11px/1.4 Consolas, monospace;
    letter-spacing: 0.13em;
}

.reach-ticket h3,
.reach-ticket p {
    color: var(--paper);
}

.reach-ticket p {
    font-size: 15px;
    margin-bottom: 20px;
}

.reach-ticket .button-primary {
    background: var(--paper);
    color: var(--sea-deep);
}

.reach-ticket .button-primary:hover {
    background: var(--mist-deep);
}

.reach-ticket .ticket-small {
    margin-top: 17px;
    margin-bottom: 0;
    opacity: 0.95;
    font-size: 16px;
    line-height: 1.6;
}

.local-footnote {
    padding-block: 20px 22px;
    background: #f7fbfc;
    border-top: 1px solid var(--line);
}

.local-footnote p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.site-footer {
    background: #d7eef2;
    border-top: 4px solid var(--sea);
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto;
    gap: 42px;
    padding-block: 35px 26px;
}

.brand-footer {
    font-size: 23px;
}

.footer-intro p {
    max-width: 390px;
    margin-top: 17px;
    margin-bottom: 0;
    font-size: 16px;
}

.footer-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 13px;
}

.footer-phone {
    color: var(--sea-deep);
    font-size: 22px;
}

.footer-contact p {
    margin: 9px 0 0;
    font-size: 16px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 16px;
    border-top: 1px solid var(--sea-line);
    color: var(--ink-soft);
    font-size: 12px;
}

.hero-repair {
    background: linear-gradient(135deg, #eaf7fa 0%, #f8fcfd 100%);
}

.hero-repair > .wrap {
    padding-block: 49px 35px;
}

.repair-heading {
    max-width: 875px;
}

.repair-heading .intro-localities {
    margin-top: 15px;
}

.repair-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 29px;
    border-top: 4px solid var(--sea);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.repair-ribbon > div {
    padding: 16px 15px 14px;
    border-left: 1px solid var(--line);
}

.repair-ribbon > div:first-child {
    border-left: 0;
}

.repair-ribbon span {
    display: block;
    margin-bottom: 5px;
    color: var(--coral);
    font: 800 12px/1.5 Consolas, monospace;
}

.repair-ribbon strong,
.repair-ribbon small {
    display: block;
}

.repair-ribbon strong {
    font-size: 15px;
}

.repair-ribbon small {
    font-size: 13px;
    color: var(--ink-soft);
}

.home-quick-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
}

.home-quick-contact p {
    margin: 0;
}

.issue-layout {
    display: block;
}

.issue-main {
    max-width: 975px;
}

.issue-main h3 {
    margin-top: 23px;
    margin-bottom: 6px;
    border-left: 4px solid var(--coral);
    padding-left: 14px;
}

.issue-main h2 + h3 {
    margin-top: 0;
}

.issue-main p {
    margin-bottom: 0;
}

.issue-aside {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
    gap: 21px;
    align-items: start;
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 22px;
}

.issue-aside h3 {
    color: var(--sea-deep);
}

.issue-aside p {
    margin-bottom: 0;
    font-size: 16px;
}

.narrow-flow {
    max-width: 935px;
}

.repair-method .narrow-flow {
    max-width: 1020px;
}

.repair-method p:last-child,
.closing-line p:last-child {
    margin-bottom: 0;
}

.compact-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
    align-items: center;
}

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

.contact-slip {
    border: 2px solid var(--sea-line);
    padding: 22px;
    background: var(--mist);
    border-left: 6px solid var(--coral);
}

.contact-slip > span {
    margin-bottom: 9px;
}

.contact-slip a {
    display: block;
    color: var(--sea-deep);
    font-size: 23px;
    font-weight: 800;
}

.contact-slip small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.hero-offer {
    background: var(--mist);
    border-bottom: 1px solid var(--line);
}

.offer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 45px;
    align-items: center;
    padding-block: 49px;
}

.offer-spec {
    padding: 24px;
    background: var(--paper);
    border: 2px solid var(--sea-line);
    border-top: 6px solid var(--coral);
}

.offer-spec > span {
    color: var(--sea-deep);
}

.offer-spec strong {
    display: block;
    padding-block: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    line-height: 1.35;
}

.offer-spec i {
    color: var(--coral);
    font-style: normal;
}

.offer-spec p {
    margin: 15px 0;
    font-size: 16px;
}

.service-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin-top: 24px;
}

.service-pair article {
    border-top: 4px solid var(--sea);
    padding-top: 18px;
}

.service-pair article:last-child {
    border-top-color: var(--coral);
}

.service-addendum {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.terms-layout {
    display: block;
}

.terms-layout > div {
    max-width: 985px;
}

.terms-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 17px 19px;
    border-left: 5px solid var(--coral);
    background: var(--paper);
}

.terms-aside h3 {
    flex: 0 0 174px;
    margin: 0;
}

.terms-aside p {
    flex: 1 1 260px;
    margin: 0;
    font-size: 16px;
}

.terms-aside .button {
    flex: 0 0 auto;
}

.closing-line {
    padding-block: 39px;
}

@media (max-width: 1090px) {
    .masthead {
        gap: 19px;
    }

    .primary-nav {
        gap: 15px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 288px;
        gap: 28px;
    }

    .service-blueprint {
        box-shadow: 7px 7px 0 #d1e9ed;
    }

    .steps-layout,
    .reach-layout {
        gap: 30px;
        grid-template-columns: minmax(0, 1fr) 315px;
    }

    .footer-layout {
        gap: 26px;
    }
}

@media (max-width: 880px) {
    .wrap {
        width: min(calc(100% - 42px), var(--wrap));
    }

    .masthead {
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 14px;
    }

    .primary-nav {
        order: 3;
        flex: 0 0 100%;
        justify-content: flex-start;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .hero-main {
        background: var(--mist);
    }

    .hero-grid,
    .offer-head {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 38px;
    }

    .service-blueprint {
        justify-self: start;
        max-width: 350px;
    }

    .steps-layout,
    .reach-layout,
    .compact-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .steps-panel,
    .reach-ticket,
    .contact-slip {
        max-width: 580px;
    }

    .issue-aside {
        grid-template-columns: 1fr 1fr;
        gap: 13px 22px;
    }

    .issue-aside h3 {
        grid-column: 1 / -1;
        margin: 0;
    }

    .offer-spec {
        max-width: 390px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: calc(100% - 36px);
    }

    .site-header {
        border-top-width: 4px;
    }

    .masthead {
        padding-block: 13px;
    }

    .brand {
        font-size: 22px;
        gap: 9px;
    }

    .brand-icon {
        transform: scale(0.88);
        transform-origin: center left;
        margin-right: -4px;
    }

    .header-phone {
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
    }

    .primary-nav {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .primary-nav a {
        font-size: 13px;
    }

    .hero-grid,
    .offer-head,
    .hero-repair > .wrap {
        padding-block: 31px;
    }

    .service-blueprint {
        max-width: 300px;
        justify-self: center;
    }

    .machine-outline {
        height: 250px;
        margin-top: 20px;
        margin-bottom: 19px;
    }

    .machine-drum {
        width: 146px;
        height: 146px;
        margin-top: 18px;
    }

    .section {
        padding-block: 37px;
    }

    .bar-flow,
    .appliance-copy,
    .service-pair,
    .repair-ribbon {
        grid-template-columns: minmax(0, 1fr);
    }

    .bar-flow {
        gap: 12px;
        padding-block: 15px;
    }

    .bar-flow p {
        padding-block: 3px;
    }

    .bar-flow p + p {
        border-left: 3px solid var(--coral);
    }

    .appliance-copy {
        row-gap: 19px;
    }

    .appliance-copy > div:nth-child(3) {
        grid-column: auto;
    }

    .appliance-copy > div:nth-child(2) {
        border-top: 1px solid var(--line);
        padding-top: 19px;
    }

    .repair-ribbon {
        grid-template-columns: 1fr 1fr;
    }

    .repair-ribbon > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .repair-ribbon > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .home-quick-contact,
    .issue-aside,
    .terms-aside {
        display: block;
    }

    .home-quick-contact .button {
        margin-top: 13px;
    }

    .issue-aside p + p,
    .terms-aside p,
    .terms-aside .button {
        margin-top: 12px;
    }

    .footer-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
        padding-block: 27px;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 400px) {
    .masthead {
        gap: 8px;
    }

    .brand {
        font-size: 20px;
    }

    .header-phone {
        font-size: 12px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .button {
        padding-inline: 17px;
    }

    .repair-ribbon > div {
        padding-inline: 9px;
    }

    .footer-line {
        display: block;
    }

    .footer-line span {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}

.steps-layout {
    display: block;
}

.steps-copy {
    max-width: 1020px;
}

.steps-panel {
    margin-top: 23px;
}

.steps-panel ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.steps-panel li {
    flex: 1 1 160px;
    align-items: flex-start;
    line-height: 1.5;
}

.steps-panel-detail {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .steps-panel li {
        flex-basis: 100%;
    }
}
