:root {
    --mint: #A0F1BD;
    --mint-soft: #D2F8DC;
    --surface: #F9F9F9;
    --green: #2E4F21;
    --white: #FFFFFF;
    --text-muted: #506349;
    --text-subtle: #7D9276;
    --text-on-dark: #D5E4D0;

    --font-label: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Work Sans", sans-serif;
    background: var(--white);
    color: var(--green);
}

header {
    background: var(--mint);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 101px;
    padding: 32px 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 18px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--green);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a.book-button {
    color: #fff;
}

.book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.book-label-short {
    display: none;
}

main *,
.footer * {
    letter-spacing: -0.045em;
}

main img,
.footer img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-weight: 400;
}

p {
    font-size: 16px;
    line-height: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    border-radius: 51.6px;
    background: var(--green);
    color: var(--white);
    font-size: 12px;
    line-height: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.button-white {
    background: var(--white);
    color: var(--green);
}

.button,
.book-button,
.tags li,
.testimonial-tabs label,
.tab-place {
    transition: background-color 300ms ease-in, color 300ms ease-in;
}

.button:hover,
.tags li:hover {
    background: var(--mint);
    color: var(--green);
}

.tags li:hover {
    color: var(--text-muted);
}

.button-light-hover:hover,
.nav-links a.book-button:hover {
    background: var(--surface);
    color: var(--green);
}

.button-large {
    padding: 24px 30px;
    border-radius: 88px;
    font-family: var(--font-label);
    font-size: 15px;
    line-height: 15px;
    letter-spacing: -0.02em;
}

.hero {
    padding: 100px 40px;
    background: var(--mint);
    border-radius: 0 0 16px 16px;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    min-width: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero h1 {
    font-size: 80px;
    line-height: 80px;
    letter-spacing: -0.08em;
}

.hero-picture {
    flex: none;
}

.hero-image {
    width: 429px;
    height: 411.5px;
    object-fit: cover;
}

.services {
    background: var(--surface);
}

.services-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 120px 40px 100px;
    text-align: center;
}

.eyebrow {
    font-family: var(--font-label);
    font-size: 15px;
    line-height: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.services-intro h2,
.testimonials-slider h2,
.benefits h2,
.experts h2 {
    font-size: 60px;
    line-height: 63px;
    letter-spacing: -0.07em;
}

.services-intro h2 {
    max-width: 857px;
}

.service-row {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0 20px 20px;
}

.service-row-right {
    justify-content: flex-end;
    padding: 20px 20px 20px 0;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 70px;
    width: 1036px;
    max-width: 100%;
    padding: 80px;
    background: var(--mint-soft);
    border-radius: 20px;
}

.service-card-one {
    padding-right: 100px;
}

.service-card-two {
    flex-direction: row-reverse;
    width: 1044px;
}

.service-card-three {
    width: 1020px;
}

.service-image {
    flex: 1 1 0;
    min-width: 0;
    height: 285px;
    object-fit: cover;
}

.service-card-two .service-image {
    height: 267px;
}

.service-card-three .service-image {
    flex: none;
    width: 380.4px;
    height: 319px;
}

.service-info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 70px;
    min-width: 0;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card h3,
.cta h2 {
    font-size: 40px;
    line-height: 42px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.tags li {
    padding: 12px;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 13px;
    font-weight: 500;
}

.testimonials {
    padding: 100px;
    background: var(--surface);
}

.testimonials-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    max-width: 1080px;
    margin: 0 auto;
}

.testimonials-slider h2 {
    text-align: center;
}

.testimonials-layout {
    display: flex;
    gap: 100px;
    width: 100%;
}

.testimonial-tabs {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 310px;
}

.testimonial-tabs label {
    display: block;
    height: 128px;
    padding: 20px 30px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    background-image: linear-gradient(var(--text-subtle), var(--text-subtle));
    background-position: top;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.tab-job {
    font-size: 18px;
    line-height: 19px;
}

.tab-place {
    font-size: 12px;
    line-height: 13px;
    font-weight: 500;
}

.testimonial-tabs input:checked + label {
    background: var(--green);
    color: var(--white);
}

.testimonial-tabs input:checked + label .tab-place {
    color: var(--text-on-dark);
}

.testimonial-tabs input:focus-visible + label {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.testimonial-quotes {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 30px 0 40px;
    background-image: linear-gradient(var(--green), var(--green));
    background-position: left;
    background-size: 1px 100%;
    background-repeat: no-repeat;
}

.quote {
    display: none;
    flex-direction: column;
    gap: 50px;
}

.testimonials-slider:has(#testimonial-1:checked) #quote-1,
.testimonials-slider:has(#testimonial-2:checked) #quote-2,
.testimonials-slider:has(#testimonial-3:checked) #quote-3 {
    display: flex;
}

.quote blockquote p {
    font-size: 30px;
    line-height: 33px;
    text-indent: -0.34em;
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 28px;
}

.quote figcaption img {
    flex: none;
    width: 46.1px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
}

.wide-image {
    height: 600px;
}

.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefits {
    padding: 80px 40px 120px;
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 160px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-intro {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.benefits-intro > * {
    flex: 1 1 0;
    min-width: 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    min-height: 330px;
    list-style: none;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
    padding: 20px 80px 20px 50px;
    background-image: linear-gradient(var(--green), var(--green));
    background-position: left;
    background-size: 1px 100%;
    background-repeat: no-repeat;
}

.benefit:nth-child(2) {
    padding-right: 0;
}

.benefit img {
    width: 30px;
    height: 30px;
}

.benefit h3 {
    font-size: 30px;
    line-height: 31px;
}

.cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(375px, auto);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 40px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 375px;
    padding: 60px;
    background: var(--green);
    border-radius: 20px;
    color: var(--white);
}

.cta-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.cta-image {
    width: 100%;
    height: 0;
    min-height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.experts {
    padding: 160px 120px;
    background: var(--surface);
}

.experts-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo nav"
        "tagline copy";
    align-content: space-between;
    min-height: 346px;
    padding: 32px 40px;
    background: var(--green);
    color: var(--text-on-dark);
    font-size: 12px;
    line-height: 13px;
    font-weight: 500;
}

.footer p {
    font-size: 12px;
    line-height: 13px;
}

.footer-logo {
    grid-area: logo;
    align-self: start;
    justify-self: start;
}

.footer-logo img {
    height: 20px;
    width: auto;
}

.footer-tagline {
    grid-area: tagline;
    align-self: end;
}

.footer-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: auto;
    height: auto;
    padding: 0;
}

.footer-nav a:not(.button) {
    color: var(--text-on-dark);
    text-decoration: none;
}

.footer-copy {
    grid-area: copy;
    align-self: end;
}

@media (max-width: 1100px) {
    .hero {
        padding: 100px 24px;
    }

    .hero-layout {
        gap: 32px;
    }

    .hero h1 {
        font-size: 58px;
        line-height: 58px;
    }

    .hero p {
        max-width: 370px;
    }

    .hero-image {
        width: 273px;
        height: 262px;
    }

    .services-intro {
        padding: 120px 24px 100px;
    }

    .services-intro h2,
    .testimonials-slider h2,
    .benefits h2,
    .experts h2 {
        font-size: 48px;
        line-height: 50px;
    }

    .service-row,
    .service-row-right {
        padding: 20px 24px;
    }

    .service-card,
    .service-card-one {
        width: 100%;
        padding: 64px 50px;
        gap: 60px;
    }

    .service-info {
        gap: 54px;
    }

    .service-text {
        gap: 24px;
    }

    .service-card h3,
    .cta h2 {
        font-size: 34px;
        line-height: 36px;
    }

    .service-image {
        height: 214px;
    }

    .service-card-two .service-image {
        flex: none;
        width: 313px;
        height: 179px;
    }

    .service-card-three .service-image {
        flex: 1 1 0;
        width: auto;
        height: auto;
        aspect-ratio: 1988 / 1668;
    }

    .testimonials-layout {
        gap: 28px;
    }

    .testimonial-tabs {
        flex: 0 1 310px;
        min-width: 240px;
    }

    .quote blockquote p {
        font-size: 24px;
        line-height: 26px;
    }

    .wide-image {
        height: 533px;
    }

    .benefits-content {
        gap: 100px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .benefit,
    .benefit:nth-child(2) {
        padding: 20px 160px 20px 0;
        background-image: linear-gradient(var(--green), var(--green));
        background-position: top;
        background-size: 100% 1px;
        background-repeat: no-repeat;
    }

    .benefit h3 {
        font-size: 26px;
        line-height: 27px;
    }

    .cta {
        grid-template-rows: minmax(417px, auto);
    }

    .experts {
        padding: 160px 80px;
    }

    .footer {
        column-gap: 80px;
        min-height: 355px;
        padding: 32px;
    }

    .footer-nav {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1.1rem 1rem;
    }

    .logo img {
        height: 16px;
    }

    .nav-links {
        gap: 1rem;
    }

    .book-label-full {
        display: none;
    }

    .book-label-short {
        display: inline;
    }

    .book-button {
        padding: 0.65rem 1.15rem;
        min-width: 4.5rem;
    }

    .hero {
        padding: 40px 16px;
    }

    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }

    .hero-copy {
        align-self: stretch;
        gap: 40px;
    }

    .hero-text {
        gap: 16px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 40px;
    }

    .hero p {
        max-width: none;
    }

    .hero-picture {
        order: -1;
        align-self: stretch;
    }

    .hero-image {
        width: 100%;
        height: auto;
        aspect-ratio: 343 / 329;
    }

    .services-intro {
        padding: 120px 16px 100px;
    }

    .services-intro h2,
    .testimonials-slider h2,
    .benefits h2,
    .experts h2 {
        font-size: 32px;
        line-height: 34px;
    }

    .service-row,
    .service-row-right {
        padding: 0 16px 16px;
    }

    .service-card,
    .service-card-one,
    .service-card-two {
        flex-direction: column;
        align-items: stretch;
        gap: 70px;
        padding: 40px 16px;
    }

    .service-image,
    .service-card-two .service-image,
    .service-card-three .service-image {
        flex: none;
        width: 100%;
        height: 225px;
    }

    .service-card-two .service-image {
        height: 246px;
    }

    .service-card-three .service-image {
        height: auto;
        aspect-ratio: 1988 / 1668;
    }

    .service-info {
        flex: none;
        gap: 70px;
    }

    .service-card h3,
    .cta h2 {
        font-size: 28px;
        line-height: 29px;
    }

    .testimonials {
        padding: 36px;
    }

    .testimonials-slider {
        gap: 40px;
        padding: 24px 16px;
        background: var(--white);
    }

    .testimonials-layout {
        flex-direction: column;
        gap: 0;
    }

    .testimonial-tabs {
        flex: none;
        flex-direction: row;
        width: 100%;
        min-width: 0;
    }

    .testimonial-tabs label {
        flex: 1 1 0;
        height: auto;
        min-height: 100px;
        padding: 16px 12px;
        color: var(--green);
    }

    .tab-content {
        gap: 8px;
        padding: 8px 0 0;
    }

    .tab-job,
    .tab-place {
        overflow-wrap: anywhere;
    }

    .tab-job {
        font-size: 12px;
        line-height: 13px;
        font-weight: 500;
    }

    .tab-place,
    .testimonial-tabs input:checked + label .tab-place {
        color: var(--text-subtle);
    }

    .testimonial-quotes {
        padding: 40px 0 0;
        background: none;
    }

    .quote blockquote p {
        font-size: 18px;
        line-height: 20px;
    }

    .wide-image {
        height: 250px;
    }

    .benefits {
        padding: 80px 16px;
    }

    .benefits-content {
        gap: 80px;
    }

    .benefits-intro {
        flex-direction: column;
        gap: 32px;
    }

    .benefit,
    .benefit:nth-child(2) {
        padding: 20px 0;
    }

    .benefit h3 {
        font-size: 22px;
        line-height: 23px;
    }

    .cta {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .cta-card {
        min-height: 0;
    }

    .cta-image {
        order: -1;
        min-height: 0;
        height: 232px;
    }

    .experts {
        padding: 160px 24px;
    }

    .experts h2 {
        max-width: 326px;
    }

    .footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav"
            "tagline"
            "copy";
        align-content: start;
        min-height: 0;
        padding: 32px 24px;
    }

    .footer-nav {
        gap: 0;
        margin: 80px 0 5px;
    }

    .footer-nav a {
        flex: 1 1 0;
    }

    .footer-tagline {
        align-self: start;
        margin-top: 80px;
    }

    .footer-copy {
        align-self: start;
        margin-top: 24px;
    }
}
