/* CoinKeeper Purchase Pages — Tilda-style design */

:root {
    --color-accent: #dfff22;
    --color-accent-hover: #f8ffd1;
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-card-text: #1e2857;
    --color-border: #e2e5e9;
    --color-text-secondary: #666666;
    --color-form-btn: #ffcc00;
    --font-family: 'TildaSans', Arial, sans-serif;
    --radius-btn: 16px;
    --radius-form: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.main { flex: 1; }
a { text-decoration: none; }

/* ===== HERO =====
   Фоновое изображение уже содержит "SALE 12.12" бейдж и жёлтые мазки.
   Позиционируем элементы абсолютно относительно hero, как на оригинале Tilda. */
.hero {
    width: 100%;
    height: 90vh;
    min-height: 720px;
    max-height: 1000px;
    background-image: url('https://static.tildacdn.com/tild6537-6363-4031-b366-366134343635/1212__.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Title позиционируется как на Tilda: top ~24%, слегка правее центра */
.hero__title {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 869px;
    font-size: 45px;
    font-weight: 600;
    line-height: 1.15;
    color: #000;
    text-align: center;
    z-index: 2;
}

/* Button: top ~49%, ближе к центру (как в оригинале). */
.hero__btn-small {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 24px 44px;
    background: #fff;
    color: #000;
    font-family: var(--font-family);
    font-size: 33px;
    font-weight: 800;
    border-radius: var(--radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    z-index: 4;
}

.hero__btn-small:hover {
    background: var(--color-accent-hover);
}

/* ===== WHAT'S INCLUDED ===== */
.section-included {
    text-align: center;
    padding: 50px 20px 30px;
    background: var(--color-bg);
}

.section-included__title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.section-included__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ===== THREE COLUMNS ===== */
.columns {
    display: flex;
    gap: 0;
    padding: 20px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.columns__item {
    flex: 1;
    padding: 20px 24px;
}

.columns__item--bordered {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.columns__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.columns__intro {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: 16px;
}

.columns__list {
    list-style: disc;
    padding: 0 0 0 20px;
    margin: 0 0 16px 0;
}

.columns__list li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
}

.columns__summary {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.55;
    margin-top: 12px;
}

/* ===== PRICE BLOCK ===== */
.price-block {
    text-align: center;
    padding: 40px 20px 40px;
    background: var(--color-bg);
    position: relative;
}

.price-block__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.price-block__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.price-block__card {
    display: inline-block;
    border: 1px solid var(--color-border);
    border-radius: 25px;
    padding: 20px 36px;
    transform: rotate(-2deg);
    background: var(--color-bg);
}

.price-block__card-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-card-text);
    line-height: 1.25;
}

.price-block__badge {
    display: inline-block;
    background: var(--color-accent);
    border-radius: 20px;
    padding: 10px 28px;
    transform: rotate(3deg);
}

.price-block__badge span {
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.price-block__celebration {
    width: 85px;
    flex-shrink: 0;
}

.price-block__celebration img {
    width: 100%;
    height: auto;
}

.price-block__btn {
    display: inline-block;
    padding: 14px 60px;
    background: var(--color-accent);
    color: #000;
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.price-block__btn:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    padding: 40px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.55;
}

/* ===== ORDER FORM (inside popup) ===== */
.order-form__note {
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
    color: var(--color-text);
    line-height: 1.55;
}

.order-form__highlight {
    color: #ff0000;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-label {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    opacity: 0.7;
}

.form-input {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid #000;
    border-radius: var(--radius-form);
    font-family: var(--font-family);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--color-bg);
    color: var(--color-text);
}

.form-input:focus {
    border-color: var(--color-accent);
}

.form-input::placeholder {
    color: #aaa;
}

.form-input.error {
    border-color: #d32f2f;
}

.form-consent {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-label a {
    color: var(--color-text);
    text-decoration: underline;
}

.error-message {
    background: #fff0f0;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.error-message.visible {
    display: block;
}

.form-submit-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--color-form-btn);
    color: #000;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-form);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.form-submit-btn:hover {
    background: #e6b800;
}

/* ===== FOOTER ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-badge img {
    height: 50px;
    width: auto;
}

.footer-legal {
    width: 100%;
    font-size: 14px;
    color: #bdbdbd;
    line-height: 1.5;
    margin-top: 20px;
}

.footer-legal p {
    margin: 0 0 4px;
}

.footer-legal a {
    color: #bdbdbd;
    text-decoration: underline;
}

.footer-copyright {
    width: 100%;
    font-size: 16px;
    color: #fff;
    margin-top: 12px;
}

/* ===== CART POPUP ===== */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: flex-end;
}

.cart-overlay.open {
    display: flex;
}

.cart-popup {
    width: 100%;
    max-width: 460px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 40px 30px;
    position: relative;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.cart-popup__close:hover svg rect {
    fill: #666;
}

.cart-popup .order-form__note {
    margin-top: 20px;
}

.cart-popup .form-input {
    border-radius: var(--radius-form);
    border: 2px solid #000;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    text-align: center;
    padding: 80px 20px 60px;
}

.thank-you__icon {
    width: 64px;
    height: 64px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.thank-you h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.thank-you p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.app-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.app-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-text);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

/* ===== MOBILE ===== */
@media screen and (max-width: 479px) {
    .hero {
        height: 555px;
        min-height: 555px;
        max-height: 555px;
        background-image: url('https://static.tildacdn.com/tild3061-3335-4438-a330-316531643132/_1212_mobile__.jpg');
        background-position: center top;
    }

    .hero__title {
        top: 21%;
        width: 89%;
        max-width: 300px;
        font-size: 22px;
        line-height: 1.25;
    }

    .hero__btn-small {
        top: auto;
        bottom: 14%;
        font-size: 21px;
        padding: 14px 28px;
        border: 3px solid #000;
        transform: translateX(-50%);
    }

    .section-included__title {
        font-size: 24px;
    }

    .columns {
        flex-direction: column;
        padding: 20px 16px 40px;
    }

    .columns__item--bordered {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 24px;
        margin-top: 8px;
    }

    .price-block__card-text {
        font-size: 26px;
    }

    .price-block__badge span {
        font-size: 26px;
    }

    .price-block__celebration {
        width: 60px;
    }

    .price-block__btn {
        font-size: 22px;
        padding: 12px 40px;
    }

    .footer {
        padding: 30px 20px;
        flex-direction: column;
    }

    .footer-links a {
        font-size: 16px;
    }

    .footer-badges {
        flex-direction: row;
        align-items: center;
    }

    .footer-badge img {
        height: 40px;
    }
}

@media screen and (max-width: 639px) and (min-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 600px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__btn-small {
        font-size: 26px;
        padding: 18px 36px;
    }

    .columns {
        flex-direction: column;
        padding: 20px 20px 40px;
    }

    .columns__item--bordered {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 24px;
    }
}

@media screen and (max-width: 959px) and (min-width: 640px) {
    .hero__title {
        font-size: 34px;
    }

    .hero__btn-small {
        font-size: 30px;
    }

    .columns {
        flex-direction: column;
        padding: 20px 30px 40px;
    }

    .columns__item--bordered {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 24px;
    }
}
