* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.header {
    background-color: white;
    padding: 15px 30px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-weight: 700;
}

.header-left {
    position: absolute;
    left: 30px;
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-center a {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-center a:hover {
    opacity: 0.8;
}

.header-center a.keyw-ael {
    color: #008855;
}

.brand-text {
    font-weight: bold;
    font-size: 24px;
    white-space: nowrap;
}

.keyw-ael {
    color: #008855;
}

.keyw-ael-large {
    font-size: 32px;
}

.kroyal {
    color: #000;
}

.kroyal::first-letter {
    color: #643BD5;
}

.krabo {
    color: #000;
}

.krabo .letter-o {
    color: #F66C09;
}

.krabosport {
    color: #000;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.logo-container {
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
}

.main-content {
    padding: 40px 30px;
}

#keyw-ael,
#kroyal,
#krabo,
#krabosport {
    scroll-margin-top: 150px;
}

.main-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #008855;
    margin-bottom: 40px;
}

.content-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.image-section {
    flex-shrink: 0;
}

.logo-wrapper {
    width: 229px;
    height: 229px;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    border: none;
}

.main-logo {
    width: 219px;
    height: 219px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: white;
}

.text-section {
    flex: 1;
    max-width: 900px;
}

.intro-text {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    font-weight: bold;
}

.description-item {
    margin-bottom: 20px;
}

.description-item p {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    font-weight: bold;
}

.green-text {
    color: #008855;
    font-weight: bold;
}

.green-first-letter {
    color: #008855;
}

.purple-first-letter {
    color: #643BD5;
}

.orange-last-letter {
    color: #F66C09;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    align-items: center;
}

.buttons-section .btn {
    min-width: 200px;
    text-align: center;
}

.btn {
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: opacity 0.3s;
    text-decoration: none;
    display: inline-block;
}

a.btn {
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #008855;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #643BD5;
    border: 2px solid #643BD5;
}

.kroyal-title-main {
    text-align: center;
    font-size: 64px;
    font-weight: bold;
    margin: 60px 0 40px 0;
}

.kroyal-title-main .kroyal-k {
    color: #643BD5;
}

.kroyal-title-main .kroyal-royal {
    color: #000;
}

.content-block-kroyal {
    margin-top: 0;
}

.kroyal-logo {
    width: 219px;
    height: 279px;
    object-fit: contain;
}

.btn-kroyal {
    background-color: white;
    color: #643BD5;
    border: 2px solid #643BD5;
    padding: 20px 48px;
}

.krabo-title-container {
    text-align: center;
    margin: 60px 0 40px 0;
}

.krabo-title-image {
    width: 250px;
    height: 131px;
    object-fit: contain;
}

.content-block-krabo {
    margin-top: 0;
}

.krabo-main-logo {
    width: 219px;
    height: 142px;
    object-fit: contain;
}

.orange-text {
    color: #F66C09;
    font-weight: bold;
}

.btn-krabo-primary {
    background-color: white;
    color: #F66C09;
    border: 2px solid #F66C09;
    padding: 20px 48px;
}

.btn-krabo-secondary {
    background-color: white;
    color: #643BD5;
    border: 2px solid #643BD5;
    padding: 20px 48px;
}

.krabosport-title-container {
    text-align: center;
    margin: 60px 0 40px 0;
}

.krabosport-title-image {
    width: 341px;
    height: 131px;
    object-fit: contain;
}

.content-block-krabosport {
    margin-top: 0;
}

.krabosport-main-logo {
    width: 219px;
    height: 227px;
    object-fit: contain;
}

.btn-krabosport-primary {
    background-color: white;
    color: #F66C09;
    border: 2px solid #F66C09;
    padding: 20px 48px;
}

.btn-krabosport-secondary {
    background-color: white;
    color: #643BD5;
    border: 2px solid #643BD5;
    padding: 20px 48px;
}

.krabosport-divider {
    width: 800px;
    height: 2px;
    background-color: #32CD32;
    margin: 60px auto 0;
}

.support-section {
    max-width: 1800px;
    margin: 40px auto 10px auto;
    padding: 0 30px;
}

.support-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #32CD32;
    margin: 40px 0 20px 0;
}

.support-title:last-of-type {
    margin-bottom: 15px;
}

.subscription-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.subscription-card {
    width: 200px;
    border-radius: 25%;
    border: 2px solid #32CD32;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    padding: 0;
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    transform: scale(1);
}

.subscription-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(50, 205, 50, 0.3);
    opacity: 0.95;
}

.subscription-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(50, 205, 50, 0.2);
    opacity: 0.9;
}

.subscription-card:focus {
    outline: none;
}

.card-header {
    background-color: #32CD32;
    padding: 15px;
    text-align: center;
}

.card-header span {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.card-body {
    background-color: white;
    padding: 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.benefit-text {
    color: #32CD32;
    font-size: 14px;
    font-weight: bold;
}

.soon-text {
    color: #000;
    font-size: 14px;
}

.one-time-support {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
}

.amount-input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #32CD32;
    font-size: 16px;
    width: 300px;
    outline: none;
    -moz-appearance: textfield;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input::placeholder {
    color: #999;
}

.btn-support {
    background-color: #32CD32;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.btn-support:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.support-divider-bottom {
    width: 800px;
    height: 2px;
    background-color: #32CD32;
    margin: 0 auto;
}

.footer {
    padding-bottom: 40px;
}

.footer-divider-top {
    width: 800px;
    height: 2px;
    background-color: #32CD32;
    margin: 0 auto 40px;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 30px;
}

.footer-brand-main {
    font-size: 64px;
    font-weight: bold;
    color: #008855;
}

.footer-brand-sub {
    font-size: 20px;
    font-weight: normal;
    color: #000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 190px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.footer-link:hover {
    color: #32CD32;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright .footer-brand-main {
    font-size: 15px;
    font-weight: bold;
}

.footer-copyright .footer-brand-sub {
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

/* Модалка благодарности */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    border-radius: 24px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 2px solid #32CD32;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #32CD32 0%, #008855 100%);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: #008855;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 136, 85, 0.3);
    animation: iconBounce 0.6s ease 0.2s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.modal-body {
    padding: 40px 40px 30px;
    text-align: center;
}

.modal-title {
    color: #008855;
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.modal-message {
    font-size: 22px;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-submessage {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 0 40px 40px;
    text-align: center;
}

.btn-modal-close {
    background-color: #32CD32;
    color: white;
    padding: 14px 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
}

.btn-modal-close:hover {
    background-color: #008855;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50, 205, 50, 0.4);
}

.btn-modal-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(50, 205, 50, 0.3);
}

/* Адаптивные стили */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .header-center {
        gap: 20px;
    }

    .brand-text {
        font-size: 18px;
    }

    .keyw-ael-large {
        font-size: 28px;
    }

    .content-block {
        flex-wrap: wrap;
        gap: 30px;
    }

    .krabosport-divider,
    .footer-divider-top,
    .support-divider-bottom {
        width: 90%;
        max-width: 800px;
    }

    .footer-bottom {
        gap: 100px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        margin-top: 10px;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .header-left {
        left: 15px;
        position: static;
        order: 1;
    }

    .logo-container {
        position: static;
        right: auto;
        order: 2;
        margin-left: auto;
    }

    .header-center {
        display: none;
    }

    .header-center .brand-text {
        font-size: 18px;
        flex-basis: calc(50% - 7.5px);
        text-align: center;
    }

    .brand-text {
        font-size: 16px;
    }

    .keyw-ael-large {
        font-size: 28px;
    }

    .main-content {
        padding: 10px 15px;
    }

    #keyw-ael,
    #kroyal,
    #krabo,
    #krabosport {
        scroll-margin-top: 100px;
    }

    .main-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .kroyal-title-main {
        font-size: 48px;
        margin: 40px 0 30px 0;
    }

    .content-block {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .image-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-wrapper {
        width: 180px;
        height: 180px;
    }

    .main-logo {
        width: 170px;
        height: 170px;
    }

    .kroyal-logo {
        width: 180px;
        height: auto;
    }

    .krabo-title-image {
        width: 200px;
        height: auto;
    }

    .krabo-main-logo {
        width: 180px;
        height: auto;
    }

    .krabosport-title-image {
        width: 280px;
        height: auto;
    }

    .krabosport-main-logo {
        width: 180px;
        height: auto;
    }

    .content-block-krabo .image-section,
    .content-block-krabosport .image-section {
        display: none;
    }

    .text-section {
        max-width: 100%;
        text-align: center;
    }

    .intro-text {
        font-size: 18px;
    }

    .description-item p {
        font-size: 18px;
    }

    .buttons-section {
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 18px;
    }

    .krabosport-divider,
    .footer-divider-top,
    .support-divider-bottom {
        width: 90%;
        max-width: 600px;
        margin: 40px auto 0;
    }

    .support-section {
        padding: 0 15px;
        margin: 30px auto 10px auto;
    }

    .support-title {
        font-size: 24px;
        margin: 30px 0 20px 0;
        text-align: center;
    }

    .subscription-cards {
        gap: 15px;
        margin-bottom: 30px;
    }

    .subscription-card {
        width: 150px;
    }

    .card-header span {
        font-size: 14px;
    }

    .benefit-text,
    .soon-text {
        font-size: 12px;
    }

    .one-time-support {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .amount-input {
        width: 100%;
        max-width: 300px;
    }

    .btn-support {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        max-width: 90%;
        width: 90%;
        border-radius: 20px;
    }

    .modal-icon-wrapper {
        padding: 30px 15px 15px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .modal-body {
        padding: 30px 25px 20px;
    }

    .modal-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .modal-message {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .modal-submessage {
        font-size: 14px;
    }

    .modal-footer {
        padding: 0 25px 30px;
    }

    .btn-modal-close {
        width: 100%;
        max-width: 200px;
        padding: 12px 30px;
        font-size: 16px;
    }

    .footer {
        padding-bottom: 30px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .footer-brand {
        margin-top: 20px;
    }

    .footer-brand-main {
        font-size: 36px;
    }

    .footer-brand-sub {
        font-size: 16px;
    }

    .social-icons {
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .header-center {
        gap: 10px;
    }

    .header-center .brand-text {
        font-size: 16px;
        flex-basis: calc(50% - 5px);
        text-align: center;
    }

    .brand-text {
        font-size: 14px;
    }

    .keyw-ael-large {
        font-size: 24px;
    }

    .main-title {
        font-size: 32px;
    }

    .kroyal-title-main {
        font-size: 36px;
    }

    .logo-wrapper {
        width: 150px;
        height: 150px;
    }

    .main-logo {
        width: 140px;
        height: 140px;
    }

    .kroyal-logo,
    .krabo-main-logo,
    .krabosport-main-logo {
        width: 150px;
    }

    .krabo-title-image {
        width: 180px;
    }

    .krabosport-title-image {
        width: 240px;
    }

    .intro-text,
    .description-item p {
        font-size: 16px;
    }

    .subscription-card {
        width: 140px;
    }

    .support-title {
        font-size: 20px;
    }

    .footer-brand-main {
        font-size: 28px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .footer-bottom {
        gap: 20px;
    }
}

