:root {
    --ever-bg: #f8f2ea;
    --ever-surface: rgba(255, 255, 255, 0.78);
    --ever-surface-strong: #ffffff;
    --ever-text: #161616;
    --ever-muted: rgba(22, 22, 22, 0.68);
    --ever-border: rgba(22, 22, 22, 0.1);
    --ever-shadow: 0 18px 48px rgba(20, 20, 20, 0.08);
    --ever-shadow-soft: 0 12px 30px rgba(20, 20, 20, 0.06);
    --ever-radius-xl: 2rem;
    --ever-radius-lg: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(160, 226, 186, 0.28), transparent 24rem),
        radial-gradient(circle at top right, rgba(255, 95, 0, 0.12), transparent 28rem),
        var(--ever-bg);
    color: var(--ever-text);
}

.page__wrapper {
    overflow: clip;
}

.header {
    padding-top: 1.25rem;
    will-change: transform;
    transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear;
}

.header.scrolled,
.header.scrolled.shadow {
    transform: translateY(-220%) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header.shadow:not(.scrolled) {
    height: auto;
    background: transparent;
    box-shadow: none;
    transform: translateY(0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header .container {
    max-width: 1440px;
}

.header .header-block {
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
    backdrop-filter: blur(18px);
}

.header .logo {
    flex: none;
}

.header .logo img {
    width: 6.25rem;
    height: auto;
}

.header .header-wrapper {
    margin-left: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.6rem;
    width: 100%;
}

.header .header-menu {
    display: grid !important;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    column-gap: 1.2rem !important;
    row-gap: 0;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.header .header-menu li a {
    font-weight: 400 !important;
    color: var(--ever-text);
    font-size: 1.08rem !important;
}

.header .header-menu li a:before {
    bottom: -0.2rem !important;
}

.header .header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: none;
}

.header .languages-menu {
    row-gap: 0 !important;
}

.header .languages-menu li.menu-item-has-children a {
    font-weight: 500;
}

.border-button,
.main-button__wrap a,
.green-button,
.main-button {
    border-radius: 999px !important;
}

.border-button {
    border-color: rgba(20, 20, 20, 0.12);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--ever-shadow-soft);
}

.border-button.orange-button {
    background: #ff5f00;
    border-color: #ff5f00;
    color: #fff;
}

.header .header-actions .header-cta,
.header .header-actions > .border-button.orange-button {
    display: inline-flex;
    width: auto !important;
    min-width: 0;
    max-width: none;
    flex: none;
    min-height: 2.05rem !important;
    height: 2.05rem !important;
    padding: 0 0.72rem !important;
    font-size: 0.76rem;
    line-height: 1;
    white-space: nowrap;
    margin-left: 0;
}

.main-button__wrap .circle-wrap {
    box-shadow: var(--ever-shadow-soft);
}

.hero {
    padding-top: 11.5rem !important;
}

.hero .container h1 {
    margin-bottom: 2.5rem !important;
}

.hero .container h1 img {
    width: min(100%, 58rem);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero .hero-text {
    max-width: 44rem !important;
    margin: 0 auto 2rem !important;
    text-align: center !important;
    color: var(--ever-text);
}

.hero .hero-block {
    align-items: center !important;
}

.hero .hero-scroll {
    opacity: 0.72;
}

.hero .hero-img {
    padding: 1rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--ever-shadow);
}

.hero .hero-img span {
    font-weight: 500;
    color: var(--ever-text);
}

#page-home .hero {
    padding-bottom: 1rem;
}

#page-home .hero .hero-text {
    font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
    line-height: 1.3 !important;
    max-width: 48rem !important;
}

#page-home .hero .container h1 img {
    width: min(100%, 76rem);
}

#page-home .hero .hero-buttons__wrap {
    width: auto !important;
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap;
}

#page-home .hero .hero-language-link {
    min-width: 13rem;
    text-align: center;
}

#page-home .hero .hero-scroll {
    align-self: center;
}

#page-home .choice,
#page-home .directions-home,
#page-home .reviews {
    padding-top: 6rem !important;
}

#page-home .lessons,
#page-home .loop,
#page-home .languages,
#page-home .cta,
#page-home .steps {
    display: none !important;
}

#page-home .choice .container h2,
#page-home .directions-home h2 {
    margin-bottom: 1.5rem !important;
}

#page-home .choice-slider {
    width: 100%;
}

#page-home .choice .choice-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem !important;
    width: 100%;
}

#page-home .choice .choice-cards .cards-item {
    width: auto !important;
    min-height: 100%;
    margin-top: 0 !important;
    padding: 1.75rem !important;
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: var(--ever-shadow);
}

#page-home .choice .choice-cards .cards-item:nth-child(odd) {
    margin-top: 0 !important;
}

#page-home .choice .choice-cards .card-title {
    margin-bottom: 1rem !important;
}

#page-home .choice .choice-cards .card-text {
    padding: 1.25rem !important;
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.06);
}

#page-home .choice .choice-cards .card-text p {
    text-align: left !important;
    line-height: 1.6;
}

#page-home .choice .choice-cards .card-icon {
    align-self: flex-start;
}

#page-home .directions-home {
    padding-bottom: 2rem;
}

#page-home .directions-home__lead {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    color: var(--ever-muted);
    line-height: 1.65;
}

#page-home .directions-home__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

#page-home .directions-home__card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--ever-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-home .directions-home__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(20, 20, 20, 0.12);
}

#page-home .directions-home__card h3 {
    margin-bottom: 1rem;
}

#page-home .directions-home__meta {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

#page-home .directions-home__card ul {
    margin: 0 0 1.5rem;
    padding-left: 1.1rem;
    line-height: 1.6;
}

#page-home .directions-home__hint {
    font-weight: 500;
    opacity: 0.78;
}

#page-english .loop {
    padding-top: 6rem;
}

#page-english .loop .loop-items {
    width: 100%;
    justify-content: center;
}

#page-english .loop .loop-item {
    flex-basis: auto;
}

#page-english .loop .loop-item:not(:first-child) {
    display: none;
}

#page-english .loop .loop-item h2 {
    white-space: normal;
    max-width: 18ch;
    text-align: center;
    text-wrap: balance;
}

#page-english .loop .loop-item h2 span {
    display: inline;
}

#page-english .loop {
    display: none !important;
}

.target {
    padding-top: 6rem;
}

.target .container .target-items {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.target .container .target-items .target-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: none;
    width: 100%;
    min-height: 0;
    border-radius: 1.75rem;
    overflow: hidden;
    padding: 1.75rem;
    background: #ff5f00;
    box-sizing: border-box;
}

.target .container .target-items .target-item p img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 1.75rem;
}

.target .container .target-items .target-item:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.target .container .target-items .target-item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.target .container .target-items .target-item:nth-child(3) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.target .container .target-items .target-item.target-item--photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 0;
    background: transparent;
}

.target .container .target-items .target-item.target-item--photo p {
    height: 100%;
}

.target .container .target-items .target-item.target-item--photo img {
    min-height: 100%;
}

#page-spanish .loop {
    padding-top: 5rem;
}

#page-spanish .loop .loop-items {
    width: 100%;
    justify-content: center;
}

#page-spanish .loop .loop-item:not(:first-child) {
    display: none;
}

#page-spanish .loop .loop-item h2 {
    white-space: normal;
    max-width: 22ch;
    text-align: center;
    text-wrap: balance;
}

#page-spanish .loop .loop-item h2 span {
    display: inline;
}

#page-corporate-lessons .hero .hero-text {
    max-width: 18ch !important;
    font-size: clamp(2.75rem, 5vw, 5rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

#page-corporate-lessons .hero .container h1 img {
    width: min(100%, 54rem);
}

.footer {
    margin-top: 7rem !important;
    padding: 0 0 2rem !important;
    background: transparent !important;
}

.footer .container {
    display: block;
}

.footer .footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, #141414 0%, #222222 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(20, 20, 20, 0.16);
}

.footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer .footer-brand .logo svg {
    width: 6rem;
    height: 6rem;
}

.footer .footer-lead {
    max-width: 22rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.footer .footer-items {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.footer .footer-items p {
    max-width: none !important;
    margin: 0;
    color: rgba(255, 255, 255, 0.84) !important;
    line-height: 1.6;
}

.footer .footer-socials {
    column-gap: 0 !important;
}

.footer .footer-socials a {
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .footer-right .border-button {
    background: #fff !important;
    box-shadow: none;
}

.footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0;
}

.footer .oferta,
.footer .footer-legal {
    color: rgba(20, 20, 20, 0.72) !important;
}

.footer .footer-legal {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (min-width: 1163px) {
    .header .btn_nav {
        display: none;
    }
}

@media (max-width: 1162px) {
    .header {
        padding-top: 1rem;
        background: transparent !important;
        height: auto !important;
    }

    .header .header-block {
        padding: 0.9rem 1rem;
        border-radius: 1.25rem;
    }

    .header .header-wrapper {
        background: transparent !important;
    }

    .header .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1200px) {
    #page-home .choice .choice-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #page-home .directions-home__grid,
    .footer .footer-shell,
    .footer .footer-items {
        grid-template-columns: 1fr !important;
    }

    .target .container .target-items {
        grid-template-columns: 1fr;
    }

    .target .container .target-items .target-item:nth-child(1),
    .target .container .target-items .target-item:nth-child(2),
    .target .container .target-items .target-item:nth-child(3),
    .target .container .target-items .target-item.target-item--photo {
        grid-column: auto;
        grid-row: auto;
    }

    .footer .footer-right {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 8.5rem !important;
    }

    .hero .container h1 {
        margin-bottom: 1.5rem !important;
    }

    .hero .hero-img {
        width: 100%;
        max-width: 24rem;
        margin: 0 auto;
    }

    #page-home .choice,
    #page-home .directions-home,
    #page-home .reviews {
        padding-top: 4rem !important;
    }

    #page-english .loop {
        padding-top: 4rem;
    }

    #page-home .choice .choice-cards .cards-item,
    #page-home .directions-home__card,
    .footer .footer-shell {
        border-radius: 1.5rem;
    }

    .footer {
        margin-top: 5rem !important;
    }

    .footer .footer-shell {
        padding: 1.5rem;
    }

    .footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

#page-home .team-join-home {
    padding-top: 6rem;
}

#page-home .team-join-home__panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 0.9fr);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 2.75rem;
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at top left, rgba(255, 95, 0, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(160, 226, 186, 0.28));
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: var(--ever-shadow-soft);
}

#page-home .team-join-home__eyebrow,
#page-team-hiring .team-hiring-hero__note,
#page-team-hiring .team-hiring-work__eyebrow {
    color: #ff5f00;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.82rem;
}

#page-home .team-join-home__copy {
    display: grid;
    gap: 1rem;
}

#page-home .team-join-home__copy h2,
#page-team-hiring h2,
#page-team-hiring h1 {
    letter-spacing: -0.08em !important;
}

#page-home .team-join-home__copy p {
    max-width: 44rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

#page-home .team-join-home__actions {
    display: grid;
    gap: 0.9rem;
    justify-items: stretch;
}

#page-home .team-join-home__actions .main-button,
#page-team-hiring .team-hiring-hero__actions .main-button,
#page-team-hiring .team-hiring-cta .main-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.4rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: #a0e2ba;
    color: #141414;
    transition: .2s ease;
}

#page-home .team-join-home__actions .main-button:hover,
#page-team-hiring .team-hiring-hero__actions .main-button:hover,
#page-team-hiring .team-hiring-cta .main-button:hover {
    background: #ff5f00;
    color: #fff;
}

#page-home .team-join-home__actions .border-button,
#page-team-hiring .team-hiring-hero__actions .border-button {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    padding: 0 1.4rem;
}

#page-team-hiring .team-hiring-hero {
    padding-top: 12rem;
}

#page-team-hiring .team-hiring-hero__shell,
#page-team-hiring .team-hiring-cta__panel {
    width: 100%;
    display: grid;
    gap: 1.35rem;
    padding: 3rem;
    border-radius: 2.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
        linear-gradient(135deg, rgba(255, 95, 0, 0.16), rgba(160, 226, 186, 0.24));
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: var(--ever-shadow-soft);
}

#page-team-hiring .team-hiring-hero h1 {
    font-size: clamp(3rem, 6vw, 6.5rem);
    line-height: 0.92;
    font-weight: 400;
    max-width: 56rem;
}

#page-home .team-join-home__copy h2 span,
#page-team-hiring h1 span,
#page-team-hiring h2 span {
    color: #ff5f00;
    font-family: "Playfair Display";
    font-style: italic;
}

#page-team-hiring .team-hiring-hero p,
#page-team-hiring .team-hiring-cta__panel p {
    max-width: 48rem;
    font-size: 1.1rem;
    line-height: 1.65;
}

#page-team-hiring .team-hiring-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#page-team-hiring .team-hiring-intro,
#page-team-hiring .team-hiring-work,
#page-team-hiring .team-hiring-cta {
    padding-top: 6rem;
}

#page-team-hiring .team-hiring-intro__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

#page-team-hiring .team-hiring-intro__card,
#page-team-hiring .team-hiring-work__shell {
    border-radius: 2.25rem;
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: var(--ever-shadow-soft);
}

#page-team-hiring .team-hiring-intro__card {
    padding: 2.2rem;
    background: rgba(255, 255, 255, 0.8);
}

#page-team-hiring .team-hiring-intro__card--accent {
    background: linear-gradient(180deg, rgba(255, 95, 0, 0.06), rgba(255, 255, 255, 0.85));
}

#page-team-hiring .team-hiring-intro__card ul {
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.95rem;
}

#page-team-hiring .team-hiring-intro__card li {
    line-height: 1.6;
}

#page-team-hiring .team-hiring-work__shell {
    width: 100%;
    display: grid;
    gap: 2rem;
    padding: 2.5rem;
    background:
        radial-gradient(circle at bottom right, rgba(255, 95, 0, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.84);
}

#page-team-hiring .team-hiring-work__lead {
    display: grid;
    gap: 0.8rem;
}

#page-team-hiring .team-hiring-work__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

#page-team-hiring .team-hiring-work__item {
    padding: 1.6rem;
    border-radius: 1.8rem;
    background: rgba(246, 239, 230, 0.8);
    border: 1px solid rgba(20, 20, 20, 0.06);
}

#page-team-hiring .team-hiring-work__num {
    color: #ff5f00;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

#page-team-hiring .team-hiring-cta__panel {
    justify-items: start;
}

@media (max-width: 991px) {
    #page-home .team-join-home__panel,
    #page-team-hiring .team-hiring-intro__grid,
    #page-team-hiring .team-hiring-work__items {
        grid-template-columns: 1fr;
    }

    #page-home .team-join-home__actions {
        justify-items: start;
    }
}

@media (max-width: 767px) {
    #page-home .team-join-home,
    #page-team-hiring .team-hiring-intro,
    #page-team-hiring .team-hiring-work,
    #page-team-hiring .team-hiring-cta {
        padding-top: 4rem;
    }

    #page-team-hiring .team-hiring-hero {
        padding-top: 8.5rem;
    }

    #page-home .team-join-home__panel,
    #page-team-hiring .team-hiring-hero__shell,
    #page-team-hiring .team-hiring-intro__card,
    #page-team-hiring .team-hiring-work__shell,
    #page-team-hiring .team-hiring-work__item,
    #page-team-hiring .team-hiring-cta__panel {
        padding: 1.5rem;
        border-radius: 1.6rem;
    }

    #page-home .team-join-home__copy p,
    #page-team-hiring .team-hiring-hero p,
    #page-team-hiring .team-hiring-cta__panel p {
        font-size: 1rem;
    }

    #page-home .team-join-home__actions,
    #page-team-hiring .team-hiring-hero__actions {
        width: 100%;
    }

    #page-home .team-join-home__actions .main-button,
    #page-home .team-join-home__actions .border-button,
    #page-team-hiring .team-hiring-hero__actions .main-button,
    #page-team-hiring .team-hiring-hero__actions .border-button,
    #page-team-hiring .team-hiring-cta .main-button {
        width: 100%;
        max-width: none;
    }
}
