.home-page {
    color: #202737;
    background: var(--color-background);
}

.hero {
    overflow: hidden;
}

.hero__inner {
    display: grid;
    min-height: 32rem;
    grid-template-columns: minmax(0, 0.88fr) minmax(28rem, 1.12fr);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 596px;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.hero__title {
    width: 463px;
    max-width: 100%;
}

.hero__text {
    width: 502.54px;
    max-width: 100%;
}

.hero__visual {
    width: 125%;
    margin-inline-start: -9%;
}

.hero__visual img {
    width: 100%;
    height: auto;
}

.home-section {
    padding-block: clamp(2.75rem, 5vw, 4.75rem);
}

.home-section--compact {
    padding-block: clamp(1.5rem, 3vw, 2.75rem);
}

.home-section__header {
    max-width: 43rem;
    margin-block-end: var(--space-8);
}

.home-section__header--wide {
    max-width: 58rem;
}

.about-section {
    min-height: 294px;
    padding: 64px 0 0;
}

.about-section__content {
    display: flex;
    width: 846px;
    max-width: 100%;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.about-section__content .text-large {
    width: 846px;
    max-width: 100%;
}

.home-section__title {
    margin-block-end: var(--space-3);
    font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.home-section__header p,
.certificate__content p {
    color: var(--color-text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.directions-section {
    min-height: 614px;
    padding: 56px 0 0;
}

.directions-section__header {
    display: flex;
    min-height: 44px;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
}

.activity-grid {
    display: grid;
    padding-block-start: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.activity-card {
    display: flex;
    height: 258px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.activity-card__header {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}

.activity-card__action {
    margin-block-start: auto;
}

.text-link {
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.activity-card--wide {
    grid-column: 1 / -1;
    height: 186px;
}

.activity-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-card__links .button {
    white-space: nowrap;
}

.pricing {
    min-height: 578px;
    padding: 80px 0 0;
}

.pricing__layout {
    display: grid;
    grid-template-columns: minmax(18rem, 384px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing__intro {
    display: flex;
    width: 384px;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.pricing-consultation {
    display: flex;
    width: 384px;
    max-width: 100%;
    height: 280px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.pricing-consultation__text {
    width: 199px;
}

.pricing-consultation > .button {
    width: 159px;
    flex: 0 0 46px;
}

.pricing-notice {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.pricing-notice .text-large {
    width: 336px;
    max-width: 100%;
}

.price-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 6px;
}

.price-row {
    display: flex;
    width: 100%;
    height: 78px;
    padding: 16px;
    gap: 16px;
    align-items: center;
}

.price-row__content {
    display: flex;
    min-width: 0;
    flex: 1 1 593px;
    gap: 10px;
    align-items: center;
}

.price-row__price {
    color: #2b63d9;
    font-family: "Geist", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
}

.price-row__button {
    width: 159px;
    flex: 0 0 159px;
    margin-inline-start: auto;
}

.duration {
    min-height: 642px;
    padding: 56px 0 0;
}

.duration__table {
    width: 100%;
    margin-block-start: 48px;
    border: 0;
    border-radius: 0;
}

.duration .data-table {
    width: 1216px;
    min-width: 1216px;
    table-layout: fixed;
    border-collapse: collapse;
    background: transparent;
}

.duration-col-level {
    width: 304px;
}

.duration-col-subtest {
    width: 158.4px;
}

.duration-col-speaking {
    width: 120px;
}

.duration .data-table th,
.duration .data-table td {
    padding: 0;
    border: 0;
    text-align: left;
}

.duration .data-table thead th {
    height: 32px;
    padding-block-end: 16px;
    color: #919ba7;
    background: transparent;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.06px;
    line-height: 16px;
    vertical-align: top;
}

.duration .data-table thead th:first-child {
    padding-inline-start: 24px;
}

.duration .data-table tbody th,
.duration .data-table tbody td {
    height: 78px;
    border-block-end: 6px solid transparent;
    background-clip: padding-box;
    color: #5f6d7e;
    font-family: "Geist", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    vertical-align: middle;
}

.duration .data-table tbody tr:last-child > * {
    height: 72px;
    border-block-end: 0;
}

.duration-row--muted > * {
    background: #f5f6f8;
    box-shadow: inset 0 1px #eaebf0, inset 0 -1px #eaebf0;
}

.duration-row--surface > * {
    background: #fff;
    box-shadow: inset 0 1px #eaebf0, inset 0 -1px #eaebf0;
}

.duration .data-table tbody tr > :first-child {
    border-radius: 16px 0 0 16px;
}

.duration .data-table tbody tr > :last-child {
    border-radius: 0 16px 16px 0;
}

.duration-row--muted > :first-child,
.duration-row--surface > :first-child {
    box-shadow: inset 1px 0 #eaebf0, inset 0 1px #eaebf0, inset 0 -1px #eaebf0;
}

.duration-row--muted > :last-child,
.duration-row--surface > :last-child {
    box-shadow: inset -1px 0 #eaebf0, inset 0 1px #eaebf0, inset 0 -1px #eaebf0;
}

.duration-level {
    display: flex;
    padding-inline-start: 24px;
    gap: 10px;
    align-items: center;
    color: #272d37;
    font-weight: 600;
}

.registration-intro {
    min-height: 140px;
    padding: 56px 0 0;
}

.registration-intro__content {
    display: flex;
    width: 812px;
    max-width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.registration {
    min-height: 870px;
    padding: 0 0 30px 0;
    background: var(--color-background);
}

.registration__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.93fr) minmax(20rem, 1fr);
    gap: 32px;
    align-items: start;
}

.registration-form {
    display: flex;
    width: 100%;
    min-height: 720px;
    padding: 32px;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.registration-form__required {
    margin: 0;
    color: #919ba7;
    font-family: "Geist", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.registration-form__grid {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
}

.consent {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin: 0;
    gap: 12px;
    align-items: flex-start;
    color: #5f6d7e;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 20px;
}

.consent input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 20px;
    accent-color: var(--color-primary-600);
}

.registration-form__actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

.registration-form__submit {
    width: 100%;
}

.registration-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.consent input[aria-invalid="true"] {
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

.email-card {
    display: flex;
    width: 100%;
    min-height: 720px;
    padding: 32px;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.email-card h4,
.email-card p,
.check-list {
    margin: 0;
}

.email-card__intro {
    color: #5f6d7e;
    font-family: "Geist", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.1px;
    line-height: 26px;
}

.email-card__intro a {
    color: inherit;
    text-decoration: none;
}

.email-card__details {
    display: flex;
    width: 100%;
    min-height: 447px;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    background: rgb(255 255 255 / 50%);
    border: 0.6667px solid rgb(34 80 195 / 35%);
    border-radius: 16px;
}

.email-card__details h4 {
    color: #272d37;
    font-family: "Geist", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.check-list {
    display: flex;
    width: 100%;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}

.check-list li {
    position: relative;
    min-height: 24px;
    padding-inline-start: 18px;
    color: #5f6d7e;
    font-family: "Geist", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.1px;
    line-height: 24px;
}

.check-list li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    background: #2b63d9;
    border-radius: 50%;
    content: "";
}

.email-card__hint {
    color: #919ba7;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
}

.document-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

.email-card__button {
    width: 100%;
}

.question-section {
    min-height: 207px;
    padding: 30px 0;
}

.conditions {
    min-height: 577px;
    padding: 27px 0;
}

.conditions__card {
    min-height: 523px;
    padding: 32px;
}

.conditions-grid {
    display: grid;
    width: 100%;
    margin-block-start: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 48px;
    row-gap: 22px;
}

.condition-item {
    display: flex;
    width: 100%;
    gap: 16px;
    align-items: start;
}

.condition-item .text-loose {
    width: auto;
    flex: 1 1 auto;
}

.certificate {
    min-height: 424.14px;
    padding: 32px 0 0;
    background: var(--color-background);
}

.certificate__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.244fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.certificate__content {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.certificate__content .text-large {
    width: 586.29px;
    max-width: 100%;
}

.certificate__image {
    width: 100%;
    height: auto;
    aspect-ratio: 541.72 / 392.14;
    margin: 0;
}

.certificate__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 31px;
}

.news-intro {
    min-height: 184px;
    padding: 64px 0 0;
}

.news-intro .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.news-intro__content {
    display: flex;
    width: 812px;
    max-width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.news-section {
    min-height: 1410px;
    padding: 48px 0 0;
}

.news-section .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-feature {
    display: grid;
    width: 100%;
    height: 382px;
    padding: 0;
    overflow: hidden;
    grid-template-columns: minmax(18rem, 560fr) minmax(0, 656fr);
}

.news-image-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e9eaed;
}

.news-image-placeholder::before {
    width: 42px;
    height: 34px;
    border: 3.5px solid #a6a8ac;
    border-radius: 4px;
    content: "";
}

.news-image-placeholder::after {
    position: absolute;
    width: 18px;
    height: 18px;
    border-right: 3.5px solid #a6a8ac;
    border-bottom: 3.5px solid #a6a8ac;
    content: "";
    transform: translateY(4px) rotate(45deg);
}

.news-feature__content {
    display: flex;
    width: 100%;
    height: 382px;
    padding: 32px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.news-meta {
    display: flex;
    height: 26px;
    gap: 10px;
    align-items: center;
}

.news-feature__content .heading-banner {
    width: 592px;
    height: 120px;
}

.news-feature__content .text-loose {
    width: 592px;
    height: 78px;
}

.news-feature__button {
    width: 180px;
}

.news-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-tile {
    display: flex;
    width: 100%;
    height: 428px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
}

.news-tile .news-image-placeholder {
    width: 100%;
    height: 200px;
    flex: 0 0 200px;
}

.news-tile .news-image-placeholder::before {
    width: 33px;
    height: 27px;
    border-width: 2.75px;
}

.news-tile .news-image-placeholder::after {
    width: 14px;
    height: 14px;
    border-width: 0 2.75px 2.75px 0;
}

.news-tile__content {
    display: flex;
    width: 100%;
    height: 228px;
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.news-tile__content .card__title {
    width: 100%;
    height: 56px;
}

.news-tile__content .card__text {
    width: 100%;
    height: 48px;
}

.news-footer {
    display: flex;
    width: 100%;
    height: 52px;
    padding-block-start: 8px;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    color: #919ba7;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.locations-intro {
    min-height: 108px;
    padding: 64px 0 0;
}

.locations-map-section {
    min-height: 492px;
    padding: 48px 0 0;
}

.location-card {
    height: 444px;
    padding: 24px;
}

.location-map {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.location-map__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-map > iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-marker {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    font-family: "Geist", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06px;
    line-height: 16px;
}

.map-marker > span {
    height: 26px;
    padding-inline: 12px;
    border-radius: 13px;
    white-space: nowrap;
}

.map-marker i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(255 255 255 / 90%);
}

.map-marker--center {
    top: 42px;
    left: 351px;
}

.map-marker--center > span {
    color: #fff;
    background: #2b63d9;
}

.map-marker--center i {
    background: #d11524;
}

.map-marker--documents {
    top: 191px;
    left: 450px;
}

.map-marker--documents > span {
    color: #272d37;
    background: #fff;
}

.map-marker--documents i {
    background: #2b63d9;
}

.location-info {
    position: absolute;
    top: 29px;
    right: 27px;
    display: flex;
    width: 410px;
    height: 168px;
    padding: 16px 20px;
    flex-direction: column;
    gap: 20px;
}

.location-info__main,
.location-info__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.location-info__main h3,
.location-info__main p {
    margin: 0;
}

.location-info__main h3 {
    color: #272d37;
    font-family: "Geist", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
}

.location-info__main a {
    color: #2b63d9;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.location-info__main p {
    color: #5f6d7e;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.location-info__contacts a {
    color: #919ba7;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.location-abroad {
    position: absolute;
    top: 209px;
    right: 27px;
    display: flex;
    width: 412px;
    height: 162px;
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.location-abroad h3 {
    margin: 0;
    color: #272d37;
    font-family: "Geist", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}

.location-abroad__button {
    width: 233px;
}

@media (max-width: 75rem) {
    .directions-section {
        min-height: 0;
        padding-block-start: var(--space-12);
    }

    .activity-card {
        height: auto;
        min-height: 258px;
    }

    .activity-card--wide {
        min-height: 0;
    }

    .activity-card__links {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .hero__inner {
        min-height: auto;
        grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    }

    .activity-grid,
    .conditions-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing {
        min-height: 0;
        padding-block-start: var(--space-16);
    }

    .pricing__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing__intro,
    .pricing-consultation,
    .price-list,
    .price-row {
        width: 100%;
    }

    .duration {
        min-height: 0;
        padding-block-start: var(--space-12);
    }

    .registration-intro {
        min-height: 0;
        padding-block-start: var(--space-12);
    }

    .registration {
        min-height: 0;
    }

    .registration__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .registration-form,
    .email-card {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .registration-form__grid,
    .consent,
    .registration-form__actions {
        width: 100%;
    }

    .conditions {
        min-height: 0;
        padding-block: var(--space-6);
    }

    .conditions__card {
        min-height: 0;
    }

    .condition-item {
        width: 100%;
    }

    .condition-item .text-loose {
        width: auto;
        flex: 1 1 auto;
    }

    .certificate {
        min-height: 0;
        padding-block: var(--space-8);
    }

    .certificate__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
    }

    .certificate__content {
        width: 100%;
        min-width: 0;
    }

    .certificate__content .text-large {
        width: 100%;
    }

    .certificate__image {
        width: min(100%, 541.72px);
        height: auto;
        aspect-ratio: 541.72 / 392.14;
    }

    .news-intro,
    .news-section {
        min-height: 0;
        padding-block-start: var(--space-12);
    }

    .news-feature {
        width: 100%;
        grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1fr);
    }

    .news-feature__content,
    .news-feature__content .heading-banner,
    .news-feature__content .text-loose {
        width: 100%;
    }

    .news-grid {
        width: 100%;
        height: auto;
    }

    .news-tile {
        width: 100%;
        height: auto;
        min-height: 428px;
    }

    .news-tile__content {
        height: auto;
        min-height: 228px;
    }

    .news-footer {
        width: 100%;
    }

    .locations-intro,
    .locations-map-section {
        min-height: 0;
        padding-block-start: var(--space-12);
    }

    .location-map {
        width: 100%;
    }

}

@media (max-width: 48rem) {
    .about-section {
        min-height: 0;
        padding-block: var(--space-12);
    }

    .email-card__details,
    .email-card__button {
        width: 100%;
    }

    .directions-section__header {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero {
        background: linear-gradient(180deg, #fff 0%, #fff 58%, #f5f7fa 100%);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__content {
        width: 100%;
        padding-block: var(--space-12) 0;
        gap: var(--space-5);
    }

    .hero__title,
    .hero__text {
        width: 100%;
    }

    .hero__visual {
        width: 110%;
        margin: -3rem -5% -1rem;
    }

    .activity-grid,
    .conditions-grid,
    .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-card--wide {
        min-height: 0;
    }

    .activity-card {
        min-height: 0;
    }

    .activity-card__links {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-card__links .button {
        white-space: normal;
    }

    .news-feature {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .news-feature > .news-image-placeholder {
        min-height: 260px;
    }

    .news-feature__content,
    .news-feature__content .heading-banner,
    .news-feature__content .text-loose {
        height: auto;
    }

    .news-tile,
    .news-tile__content {
        min-height: 0;
    }

    .news-tile__content .card__title,
    .news-tile__content .card__text {
        height: auto;
    }

    .location-card {
        height: auto;
        padding: 12px;
    }

    .location-map {
        display: flex;
        height: auto;
        min-height: 0;
        padding: 272px 12px 12px;
        flex-direction: column;
        gap: 12px;
        overflow: hidden;
    }

    .location-map__image,
    .location-map > iframe {
        position: absolute;
        inset: 0 0 auto;
        height: 260px;
    }

    .map-marker {
        display: none;
    }

    .location-info,
    .location-abroad {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .location-abroad__button {
        width: 100%;
    }

    .price-row {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .price-row__content {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
        flex: 0 0 auto;
    }

    .price-row__price {
        grid-column: 2;
    }

    .price-row__button {
        width: 100%;
        flex: 0 0 46px;
        margin-inline-start: 0;
    }

    .conditions-grid {
        gap: var(--space-4);
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .registration-form,
    .email-card,
    .conditions__card {
        padding: 24px;
    }

    .duration .data-table {
        width: 900px;
        min-width: 900px;
    }

    .duration-col-level {
        width: 180px;
    }

    .duration-col-subtest {
        width: 120px;
    }

}

@media (max-width: 36rem) {
    .registration-form,
    .email-card,
    .conditions__card {
        padding: 20px;
    }

    .price-row {
        padding: 16px;
    }

    .price-row__content {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .price-row__price {
        grid-column: auto;
    }

    .location-card {
        padding: 8px;
    }

    .location-map {
        padding-inline: 8px;
        padding-block-end: 8px;
    }

}
