:root {
    --purple: #5a0fc8;
    --ink: #2b2c28;
    --teal: #65bec2;
    --blue: #6799b2;
    --slate: #566d8f;
    --paper: #fff;
    --footer: #2b2c28;
    --footer-text: #eff4fb;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }

a:hover { color: var(--blue); }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 12px;
    z-index: 5;
}

.skip:focus { top: 12px; }

.site-header,
.social,
.nav-wrap,
.columns,
.footer-inner {
    width: min(var(--max), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 0 8px;
}

.logo img {
    display: block;
    height: 100px;
    width: auto;
}

.header-contacts {
    display: flex;
    gap: 36px;
    align-items: center;
}

.chip {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 500;
}

.chip:hover { color: var(--slate); }

.chip-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff4fb;
    color: var(--blue);
    flex: 0 0 auto;
}

.chip-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.chip-lines a {
    color: var(--blue);
    font-weight: 600;
}

.chip-lines a:hover { color: var(--slate); }

.social {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 14px 0 4px;
    margin: 0 auto;
}

.social a { line-height: 0; }

.social img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.aside .social {
    width: auto;
    justify-content: flex-start;
    padding-left: 0;
}

.nav-wrap { position: relative; text-align: center; }

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nav-button { display: none; }

.nav-lines,
.nav-lines::before,
.nav-lines::after {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

.nav-lines { position: relative; }

.nav-lines::before,
.nav-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-lines::before { top: -8px; }

.nav-lines::after { top: 8px; }

.nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

#site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
}

#site-nav a {
    display: inline-block;
    padding: 15px 9px;
    color: var(--ink);
    font-family: "Open Sans", "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

#site-nav a.active,
#site-nav a:hover {
    background: var(--purple);
    color: #fff;
}

.columns {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
    gap: 28px;
    padding: 25px 0 40px;
}

.copy h1 {
    margin: 0 0 8px;
    color: var(--purple);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.copy h2 {
    margin: 28px 0 10px;
    color: var(--purple);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.copy p { margin: 0 0 16px; }

.copy .lede {
    margin: 0 0 40px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.copy .prompt {
    margin-top: 8px;
    color: var(--purple);
    font-size: 18px;
    font-weight: 500;
}

.aside-lead,
.aside-book,
.news-heading {
    color: var(--purple);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 18px 0;
}

.page-photo,
.pals,
.tick {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pals { width: 80%; }

.tick { width: 140px; margin-top: 25px; margin-bottom: 24px; }

.enquiry {
    position: relative;
    border: 2px solid var(--purple);
    padding: 16px 16px 8px;
    margin: 8px 0 24px;
}

.enquiry p { margin: 0 0 12px; }

.enquiry label {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}

.enquiry input,
.enquiry textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.enquiry button {
    background: var(--purple);
    color: #fff;
    border: 0;
    padding: 8px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.form-status { margin: 0 0 14px; padding: 8px 10px; }

.form-status.ok { color: #146c2e; background: #e7f6ec; }

.form-status.bad { color: #8a1c1c; background: #fdecec; }

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.address { font-style: normal; }

.services { padding-left: 18px; }

.services li { margin: 0 0 10px; }

.quote {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    margin: 0 0 22px;
}

.quote img { width: 48px; height: 48px; }

.quote p { margin: 0 0 6px; }

.quote .who {
    color: var(--purple);
    font-weight: 600;
    margin: 0;
}

.quote .where { margin: 0; font-size: 14px; color: #898989; }

.site-footer {
    width: 100%;
    background: var(--footer);
    color: var(--footer-text);
    padding: 10px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 15% 1fr;
    gap: 20px;
    align-items: start;
}

.site-footer h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
}

.site-footer a { color: var(--footer-text); }

.site-footer a:hover { color: #fff; }

.site-footer p { color: var(--footer-text); font-size: 14px; line-height: 1.4; }

.partners {
    --partner-gap: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--partner-gap);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--partner-gap);
}

.partners-lower {
    grid-template-columns: repeat(3, 1fr);
    width: calc(100% - (100% - 3 * var(--partner-gap)) / 4);
    margin-left: calc((100% - 3 * var(--partner-gap)) / 8);
    margin-right: 0;
}

.partners li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.partners img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.partner-note {
    margin: 18px 0 0;
    text-align: center;
}

.copyright {
    margin: 20px 0 0;
    font-size: 12px;
    text-align: center;
}

:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .nav-button {
        display: inline-grid;
        place-items: center;
        width: 48px;
        height: 48px;
        margin: 8px auto;
        cursor: pointer;
    }

    #site-nav { display: none; }

    .nav-toggle:checked ~ #site-nav { display: block; }

    .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--purple); }

    #site-nav ul { flex-direction: column; align-items: stretch; }

    #site-nav a { padding: 15px 9px; }

    .columns,
    .footer-grid { grid-template-columns: 1fr; }

    .partners,
    .partners-lower {
        grid-template-columns: repeat(2, 1fr);
        width: auto;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
