:root {
    color-scheme: light;
    --navy: #10233a;
    --navy-light: #192f49;
    --ink: #182d45;
    --muted: #50657c;
    --paper: #f5f8fc;
    --blue: #9bc7ff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #4285da; outline-offset: 5px; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); font-weight: 550; }
section { scroll-margin-top: 1rem; }
.container { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 2; padding: .6rem; background: white; transform: translateY(-120%); }
.skip:focus { transform: none; }
.site-header, .hero, .contact, footer { color: #fff; background: var(--navy); }
.site-header { border-bottom: 1px solid #304864; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.45rem; font-weight: 650; letter-spacing: .06em; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; background: var(--blue); mask: url("/site-assets/mayak-mark.png") center / contain no-repeat; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, .header-action { text-decoration: none; }
nav a:hover, .footer-inner a:hover { color: var(--blue); }
.header-actions, .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.header-phone, .hero-phone { font-weight: 650; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.header-phone { padding: .48rem .65rem; border: 1px solid #668db9; border-radius: .4rem; color: #fff; font-size: clamp(1.12rem, 2.1vw, 1.55rem); }
.hero-phone { color: var(--blue); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.header-phone:hover { background: var(--navy-light); }
.hero-phone:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-action { color: var(--blue); font-weight: 600; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(0, .92fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: 3rem 4rem; }
h1 { font-size: clamp(2.55rem, 5.5vw, 4.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
h1 em { color: var(--blue); font-style: normal; }
.intro { max-width: 23em; margin-block: 1.55rem 2rem; color: #d0dae4; font-size: clamp(1.05rem, 2vw, 1.27rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: .82rem 1.15rem; background: var(--blue); color: var(--navy); border-radius: .4rem; font-weight: 600; text-decoration: none; }
.button:hover { background: #bcdbff; }
.hero-visual { background: var(--navy-light); border-radius: .65rem; overflow: hidden; }
.hero-visual img { width: 100%; height: clamp(26rem, 40vw, 35rem); object-fit: cover; object-position: center; }
.services { padding-block: clamp(3rem, 7vw, 6rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.service-grid article { min-height: 14rem; padding: 1.5rem; border: 1px solid #dce6f2; border-radius: .65rem; background: white; }
.service-symbol { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .35rem; background: #e6f0ff; color: #225791; font-size: 1.45rem; font-weight: 600; margin-bottom: 1.2rem; }
.service-grid h3 { font-size: 1.3rem; font-weight: 600; }
.service-grid p, .about p { margin-top: .85rem; color: var(--muted); }
.about { padding-block: clamp(2.5rem, 6vw, 4.8rem); background: #eaf1fa; }
.about-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem, 5vw, 5rem); }
.about p { font-size: 1.13rem; }
.contact { padding-block: clamp(3rem, 7vw, 5.7rem); }
.contact p { margin-top: 1rem; color: #d0dae4; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; gap: .85rem; }
.email { color: var(--blue); text-underline-offset: .2em; }
footer { border-top: 1px solid #304864; color: #d0dae4; font-size: .9rem; }
.footer-inner a { text-underline-offset: .24em; }
@media (max-width: 760px) {
    .container { width: min(100% - 2rem, 76rem); }
    .header-inner { flex-wrap: wrap; padding-block: .8rem; gap: .6rem 1rem; }
    .header-action { display: none; }
    .header-inner nav { order: 1; width: 100%; }
    .hero-inner, .service-grid, .about-inner, .contact-inner { grid-template-columns: 1fr; }
    .hero-inner { padding-block: 2.6rem 2rem; }
    .hero-visual img { height: clamp(16rem, 68vw, 28rem); }
    .service-grid article { min-height: auto; }
    .contact-actions { justify-self: start; }
    .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
}
@media (max-width: 380px) {
    h1 { font-size: 2.4rem; }
}

.contact-actions { margin-top: 1.4rem; gap: .35rem; }
.phone { color: #fff; font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.phone:hover { color: var(--blue); }
.quote-form { width: 100%; padding: clamp(1rem, 3vw, 1.65rem); background: var(--navy-light); border: 1px solid #3c5470; border-radius: .65rem; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.quote-form label { display: block; font-size: .93rem; font-weight: 550; }
.quote-form input:not([type="hidden"]), .quote-form textarea {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .65rem;
    border: 1px solid #8297ae;
    border-radius: .35rem;
    color: var(--ink);
    background: #fff;
    font: inherit;
}
.quote-form textarea { resize: vertical; }
.quote-message { grid-column: 1 / -1; }
.quote-form button { border: 0; margin-top: 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.quote-form :is(input, textarea, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.quote-form .quote-notice { margin: 0 0 1rem; padding: .65rem .8rem; border-radius: .35rem; color: #ddf9e4; background: #204232; }
.quote-form .quote-error { color: #ffe1df; background: #5a2725; }
@media (max-width: 480px) {
    .quote-fields { grid-template-columns: 1fr; }
}
