@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg-dark: #1F2937;
    --text-light: #F9FAF8;
    --text-muted: #E5E7EB;
    --accent: #3882F6;
    --keyboard-navigation: #93c5fd;
    --bg-nav-link: #374151;
    --bg-image-placeholder: #6D747D;
    --text-infobox: var(--bg-image-placeholder);
    --container: 72rem;
    --header-height: 68px;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--text-light);
}

.navbar {
    flex: 1 1 100%;
    margin-top: 8px;
}

@media (min-width:768px) {
    .navbar {
        flex: 0 0 auto;
        margin-top: 0;
    }
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding-block: 12px;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 12px 12px;
    border-radius: 6px;
    font-size: clamp(14px, 0.9rem + 0.6vw, 18px);
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1;
    transition: background-color .11s, color .11s;
    user-select: none;
}

@media (max-width: 767px) {
    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        display: grid;
        padding-block: 12px;
        margin-block: 2px;
    }
    .header-inner{
        padding-block: 6px;
    }
}

.nav-link:hover, .nav-link[aria-current="page"], .nav-link:focus-visible {
    color: var(--text-light);
    background: var(--bg-nav-link);
}

.nav-link:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    color: var(--text-light);
    background: var(--bg-dark);
    cursor: pointer;
    transition: background-color .11s, color .11s;
}

@media (hover:hover) and (pointer:fine) {
    .burger:hover {
        background: var(--bg-nav-link);
    }
}

.nav-toggle:focus-visible+.burger {
    background: var(--bg-nav-link);
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.icon {
    font-size: 22px;
    line-height: 1;
    color: var(--text-light);
}

.icon--close {
    display: none;
}

.nav-toggle:checked+.burger .icon--open {
    display: none;
}

.nav-toggle:checked+.burger .icon--close {
    display: inline-block;
}

.navbar {
    display: none;
}

.nav-toggle:checked~nav.navbar {
    display: block;
}

@media (min-width:768px) {
    .burger {
        display: none;
    }

    .navbar {
        display: block;
    }
}

.btn {
    display: inline-block;
    padding: 10px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    user-select: none;
    transition: background-color .12s, color .12s, border-color .12s;
}

.btn:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.btn-primary {
    color: var(--text-light);
    background: var(--accent);
    border: 2px solid var(--accent);
}

@media (hover:hover) and (pointer:fine) {
    .btn-primary:hover {
        color: var(--accent);
        background: transparent;
        border-color: var(--accent);
    }
}

.btn-outline-primary {
    color: var(--accent);
    background: var(--text-light);
    border: 2px solid var(--accent);
}

.cta .btn-outline-primary {
    color: var(--text-light);
    background: var(--accent);
    border-color: var(--text-light);
}

@media (hover:hover) and (pointer:fine) {
    .cta .btn-outline-primary:hover {
        background: var(--text-light);
        border-color: var(--text-light);
        color: var(--accent);
    }

    .btn-outline-primary:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--text-light);
    }
}

.hero-section {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-block: 100px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-title {
    line-height: 1.2;
    font-size: clamp(24px, 2vw + 1rem, 48px);
    font-weight: 900;
    margin: 0 0 7px 0;
    max-width: 18ch;
}

.hero-text {
    font-size: clamp(14px, 0.9rem + 0.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 46ch;
}

.hero-media {
    margin: 0;
}

.hero-img {
    display: block;
    width: 46ch;
    height: auto;
    border-radius: 8px;
    background: var(--bg-image-placeholder);
}

@media (max-width:991px) {
    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 20px;
    }

    .hero-title,
    .hero-text {
        max-width: none;
    }

    .hero-inner .btn {
        width: 100%;
        max-width: 576px;
        margin-inline: auto;
    }

    .hero-img {
        width: 70vw;
        height: auto;
        margin: auto;
    }
}

.info-section {
    padding-block: 75px;
    text-align: center;
}

.info-section h2 {
    font-size: clamp(22px, 2.2vw + 1rem, 36px);
    font-weight: 900;
    color: var(--bg-dark);
    margin: 0 0 50px 0;
}

.info-inner {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.info-card {
    width: 14.6rem;
    margin: 0;
    text-align: center;
}

.info-text {
    font-size: clamp(13px, 0.85rem + 0.2vw, 14px);
    color: var(--text-infobox);
    line-height: 1.4;
    text-align: center;
    word-spacing: 1.3px;
}

.framed-160 {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 4px solid var(--accent);
    border-radius: 15px;
    margin-inline: auto;
    margin-bottom: 8px;
}

.quote {
    background: var(--text-muted);
    padding-block: clamp(40px, 8vw, 96px);
}

.quote-inner {
    width: 70%;
}

@media (max-width: 991px) {
    .quote-inner {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .quote-inner {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .quote-inner {
        width: 100%;
    }
}

.quote-figure, .quote-text p {
    margin: 0;
}

.quote-text {
    color: var(--bg-dark);
    font-style: italic;
    font-weight: 200;
    line-height: 1.4;
    font-size: clamp(22px, 2.2vw + 1rem, 36px);
    quotes: "“" "”" "‘" "’";
}

.quote-author {
    margin-top: 12px;
    text-align: right;
    color: var(--bg-dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width:480px) {
    .quote-author {
        margin-top: 10px;
    }
}

.cta {
    color: var(--text-light);
    padding-block: clamp(24px, 6vw, 48px);
}

.cta-inner {
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 36px 136px;
    flex-wrap: wrap;
}

@media (max-width:1400px) {
    .cta-inner {
        width: 90%;
    }
}

.cta-title {
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-size: clamp(22px, 2vw + 1rem, 32px);
    color: var(--text-light);
}

.cta-text {
    margin: 0;
    color: var(--text-light);
    font-weight: 350;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

@media (max-width: 1192px) {
    .cta-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 72px;
    }

    .cta-title, .cta-text, .btn {
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .cta .btn {
        width: 100%;
    }
}

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-block: 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav .nav-list {
    gap: 6px 12px;
}

.footer-nav .nav-link {
    font-size: 16px;
    padding: 6px 10px;
}

.footer-inner .nav-link, .footer-inner .nav-link[aria-current="page"] {
    background: var(--bg-dark);
    color: var(--text-light);
    text-decoration: none;
}

.footer-inner .nav-link:hover, .footer-inner .nav-link[aria-current="page"]:hover {
    text-decoration-line: underline;
}

.footer-inner .nav-link:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
    text-decoration-line: underline;
}

@media (max-width:1192px) {
    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-nav .nav-link {
        width: 100%;
        text-align: center;
        margin-block: 2px;
        padding-block: 12px;
    }

    .legal {
        width: 100%;
        margin-block: 8px;
    }
}

.about-hero {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(24px, 2vw + 1rem, 48px);
    margin: 0;
}

.about-hero p {
    font-size: clamp(14px, 0.9rem + 0.6vw, 18px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 16px auto 0;
}

.origin-story {
    padding: 100px 50px;
}

.origin {
    display: flex;
    align-items: center;
    gap: 80px;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: clamp(22px, 2.2vw + 1rem, 36px);
    font-weight: 900;
    color: var(--bg-dark);
    margin-top: 0;
}

.story-image img {
    flex: 1;
    background: var(--bg-image-placeholder);
    display: block;
    border-radius: 8px;
    width: 52ch;
    height: auto;
}

@media (max-width: 1192px) {
    .origin {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .story-text, .story-text h2 {
        max-width: none;
    }

    .story-image img {
        width: 85vw;
        height: auto;
    }
}

.services-section {
    padding: 65px 0 85px 0;
    background-color: var(--text-muted);
}

.services-section h2, .values-section h2 {
    font-size: clamp(22px, 2.2vw + 1rem, 36px);
    font-weight: 900;
    color: var(--bg-dark);
    text-align: center;
}

.service-item {
    display: flex;
    align-items: self-end;
    gap: 40px;
    margin-bottom: clamp(28px, 6vw, 80px);
}

.service-item.alt {
    flex-direction: row-reverse;
}

.service-icon {
    flex-shrink: 0;
    width: auto;
    height: 120px;
    background-color: var(--accent);
    border-radius: 50%;
}

.service-text h3 {
    margin: 0 0 8px 0;
    color: var(--bg-dark);
    font-size: clamp(18px, 1.2rem + 0.6vw, 24px);
    line-height: 1.25;
}

.service-text p {
    margin: 0;
    color: var(--bg-dark);
    font-size: clamp(14px, 0.9rem, 18px);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .service-item, .service-item.alt {
        align-items: center;
        flex-direction: column;
        text-align: center;
        margin-bottom: 0;
        gap: 35px;
    }

    .service-text {
        max-width: 65ch;
        margin: 30px auto;
    }
}

@media (max-width: 576px) {
    .service-item {
        gap: 20px;
        margin-bottom: 28px;
    }

    .service-icon {
        width: auto;
        height: clamp(72px, 22vw, 96px);
    }

    .service-text {
        margin: 60px auto;
    }
}

.value-icon {
    margin-bottom: 24px;
}

.value-icon img {
    width: 160px;
    height: 160px;
}

.values-section {
    padding-block: 75px;
    text-align: center;
}

.values-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    flex-wrap: wrap;
}

.value-item {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.value-item h3 {
    font-size: 24px;
    color: var(--bg-dark);
    margin-top: 0;
}


.value-item p {
    font-size: clamp(13px, 0.85rem + 0.2vw, 14px);
    color: var(--text-infobox);
    line-height: 1.4;
}

.team-section h2 {
    font-size: clamp(22px, 2.2vw + 1rem, 36px);
    font-weight: 900;
    color: var(--bg-dark);
    margin: 0 0 50px 0;
}

.team-section {
    padding-block: 75px;
    background: var(--text-muted);
    text-align: center;
}

.team-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}
.team-inner {
    gap: 20px;
}

.team-member {
    width: 14%;
}

.team-member h3 {
    margin: 0;
    color: var(--bg-dark);
}

.team-member figcaption p {
    margin: 2px 0 0;
    color: var(--accent);
    text-align: center;
    word-spacing: 1.3px;
}

@media (max-width: 1192px) {
    .values-inner, .services-inner, .team-inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .value-item, .service-item, .team-member {
        width: auto;
    }
}

.contact, .signup {
    padding-block: 32px;
    min-height: 100vh;
}

.contact-block, .signup-block {
    margin-bottom: clamp(16px, 3vw, 28px);
    background: var(--bg-dark);
    padding: 20px;
    text-align: center;
    border-radius: 12px;
}

.contact-title, .signup-title {
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-size: clamp(22px, 2vw + 1rem, 32px);
    color: var(--text-light);
}

.contact-intro, .signup-intro {
    margin: 0;
    color: var(--text-muted);
}

.signup-grid {
    display: inline-flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.col--left, .col--right {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    flex: 1 1 520px;
    max-width: 560px;
    min-width: 320px;
}

.contact-card {
    background: var(--text-light);
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    padding: clamp(16px, 3vw, 24px);
    width: 100%;
    transition: filter .18s ease, opacity .18s ease;
    margin: 0;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 1138px) {
    .signup-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .col--left, .col--right {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
    .contact-card {
        max-width: none;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.form-label {
    font-weight: 600;
    color: var(--bg-dark);
}

.form-control {
    width: 100%;
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--bg-dark);
    background: var(--text-light);
    line-height: 1.4;
}

textarea {
    max-height: 400px;
    min-height: 156px;
    resize: vertical;
}

.form-control:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
    border-color: var(--keyboard-navigation);
}

.form-actions {
    margin-top: 14px;
}

.contact-block+.contact-block {
    margin-top: 18px;
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px 0;
    color: var(--bg-dark);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
}

.contact-item a:hover, .contact-item a:focus {
    text-decoration: underline;
}

.contact-icon {
    color: var(--accent);
    min-width: 20px;
}

.contact-subtitle {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.contact-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--bg-dark);
}

.contact-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--text-muted);
}

.contact-hours li:last-child {
    border-bottom: none;
}

@media (min-width: 1138px) {
    .contact-card {
        transition: filter .18s ease, opacity .18s ease;
    }

    .signup-grid:has(.contact-form:is(:hover, :focus-within), .contact-info:is(:hover, :focus-within)) .contact-card {
        filter: blur(2px);
        opacity: .6;
    }

    .signup-grid:has(.contact-form:is(:hover, :focus-within), .contact-info:is(:hover, :focus-within)) .contact-form,
    .signup-grid:has(.contact-form:is(:hover, :focus-within), .contact-info:is(:hover, :focus-within)) .contact-info {
        filter: none;
        opacity: 1;
    }

    .signup-grid:has(.signup-aside:is(:hover, :focus-within), [aria-labelledby="signup-form-title"]:is(:hover, :focus-within)) .contact-card {
        filter: blur(2px);
        opacity: .6;
    }

    .signup-grid:has(.signup-aside:is(:hover, :focus-within), [aria-labelledby="signup-form-title"]:is(:hover, :focus-within)) .signup-aside,
    .signup-grid:has(.signup-aside:is(:hover, :focus-within), [aria-labelledby="signup-form-title"]:is(:hover, :focus-within)) [aria-labelledby="signup-form-title"] {
        filter: none;
        opacity: 1;
    }
}
