

:root {
    --navy: #073b5b;
    --blue: #087eaa;
    --aqua: #39b9c8;
    --pale: #eaf7f8;
    --ink: #183746;
    --muted: #526b78;
    --white: #ffffff;
    --shadow: 0 10px 28px rgba(7, 59, 91, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: #f7fbfc;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

/* Header and navigation */
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    background: var(--white);
    box-shadow: 0 3px 16px rgba(7, 59, 91, 0.09);
}

.header {
    width: min(1120px, 92%);
    height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    transform: scale(1.5);
    transform-origin: left center;
}

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

.navigation a {
    display: inline-block;
    padding: 10px 17px;
    border-radius: 24px;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.navigation a:hover,
.navigation a:focus-visible {
    color: var(--white);
    background: var(--blue);
    transform: translateY(-1px);
    outline: none;
}

/* Main page content */
section {
    width: min(1050px, 90%);
    margin: 42px auto;
    padding: 30px clamp(20px, 4vw, 48px);
    background: var(--white);
    border: 1px solid #e2eff2;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.subheading {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.25;
}

.subheading::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 11px;
    border-radius: 4px;
    background: var(--aqua);
}

.subtext {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.subtext a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.subtext a:hover {
    text-decoration: underline;
}

.subtext li {
    margin: 5px 0;
}

.example {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 1.35rem;
}

/* Images on the home page */
.picture {
    display: inline-block;
    width: calc(80% - 12px);
    max-height: 440px;
    margin: 5px;
    border-radius: 12px;
    object-fit: cover;
    vertical-align: top;
}

/* Products page */
.mainhead {
    width: min(1050px, 90%);
    margin: 46px auto 24px;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    text-align: center;
}

.mainhead::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 4px;
    background: var(--aqua);
}

.exampleimage {
    display: inline-block;
    width: calc(33.333% - 16px);
    height: 190px;
    margin: 7px;
    padding: 12px;
    border: 1px solid #e5eff1;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.exampleimage:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(7, 59, 91, 0.13);
}

/* Contact list */
#contacts ul {
    padding-left: 22px;
}

/* Responsive layout */
@media (max-width: 700px) {
    .header {
        min-height: 74px;
        gap: 12px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    .navigation {
        justify-content: flex-end;
        gap: 3px;
    }

    .navigation a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    section {
        margin: 24px auto;
        padding: 24px 20px;
    }

    .picture {
        width: 100%;
        max-height: 280px;
        margin: 7px 0;
    }

    .exampleimage {
        width: calc(50% - 16px);
        height: 155px;
    }
}

@media (max-width: 420px) {
    .header {
        width: 94%;
        flex-direction: column;
        justify-content: center;
        padding: 8px 0 12px;
    }

    .navigation {
        justify-content: center;
    }

    .exampleimage {
        width: 100%;
        height: 175px;
        margin: 7px 0;
    }
}
