:root {
    --bg: #fff6ee;
    --card: #ffffff;
    --text: #2f1d12;
    --muted: #6d4833;
    --green: #f27a1a;
    --green-dark: #d85c0c;
    --line: #f1d7c0;
    --shadow: 0 12px 30px rgba(171, 86, 18, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 14% 0%, rgba(255, 154, 61, 0.48) 0%, rgba(255, 154, 61, 0) 42%),
        radial-gradient(circle at 86% 10%, rgba(242, 122, 26, 0.42) 0%, rgba(242, 122, 26, 0) 40%),
        radial-gradient(circle at 50% 0%, rgba(255, 196, 145, 0.36) 0%, rgba(255, 196, 145, 0) 46%);
    background-repeat: no-repeat;
    color: var(--text);
}

.page {
    width: 100%;
    max-width: 784px;
    margin: 0 auto;
    padding: 20px 12px 0;
}

.card {
    background: var(--card);
    border-radius: 14px;
    border: 1px solid #f6ddc7;
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1fr clamp(180px, 26vw, 240px);
    gap: 10px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    align-items: start;
}

.hero-top-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 22px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    overflow: visible;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    padding-top: 34px;
    padding-bottom: 0;
}

h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--green);
    font-weight: 700;
}

.quote-block {
    margin-top: 10px;
    background: linear-gradient(180deg, #fff9f3 0%, #fff2e7 100%);
    border-radius: 8px;
    padding: 10px 12px;
}

.quote-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}

.quote-block p + p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3dac5;
}

.quote-block b {
    color: var(--green-dark);
}

.hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.hero-image {
    width: 100%;
    max-width: clamp(160px, 20vw, 190px);
    height: auto;
    max-height: clamp(230px, 34vh, 300px);
    object-fit: contain;
}

.cta-section {
    margin-top: 10px;
    padding: 12px 14px;
}

h2 {
    margin: 0;
    font-size: 32px;
    color: var(--green);
    line-height: 1.1;
}

.cta-text {
    margin: 8px 0 12px;
    font-size: 15px;
    color: #5e3d2a;
    line-height: 1.35;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    min-height: 44px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.btn-telegram {
    background: #2fa5e6;
}

.btn-max {
    background: linear-gradient(90deg, #7e4df4 0%, #2fa5e6 100%);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.about {
    margin-top: 10px;
    padding: 10px 14px;
}

/* Не резервируем большие "заглушки" высоты: иначе появлялась пустота перед футером */
.cta-section,
.about {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.about p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #634332;
}

.about p + p {
    margin-top: 10px;
}

.about b {
    color: var(--green-dark);
}

.footer {
    margin: 0;
    padding: 4px 12px 6px;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 8px;
}

.footer-inner {
    display: block;
    flex-direction: initial;
    gap: initial;
}

.footer-inner p {
    display: block;
}

.footer-inner > p:first-of-type {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .footer-inner > p:first-of-type {
        white-space: normal;
    }
}

.footer p {
    margin: 0;
    color: #9a694a;
    font-size: 11px;
}

.footer p + p {
    margin-top: 4px;
}

.footer a {
    color: #a56b43;
}

.cookie-modal {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    width: min(760px, calc(100vw - 20px));
    background: linear-gradient(180deg, #fff6ec 0%, #ffeddc 100%);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(171, 86, 18, 0.22);
    border: 1px solid #f5cfae;
    padding: 14px 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-close {
    order: 3;
    border: 0;
    background: transparent;
    color: #9a6035;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.cookie-text {
    order: 1;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6a432a;
    max-width: none;
    flex: 1;
}

.cookie-text a {
    color: #c85309;
    text-decoration: underline;
}

.cookie-btn {
    order: 2;
    margin-top: 0;
    height: 36px;
    min-width: 116px;
    border-radius: 9px;
    border: 0;
    background: linear-gradient(90deg, #ff9a3d 0%, #e86a10 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 14px;
}

.cookie-hidden {
    display: none;
}

.cookie-modal.cookie-hidden {
    display: none;
}

.privacy-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 12px 30px;
}

.privacy-header {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f6ddc7;
    box-shadow: var(--shadow);
    padding: 14px;
}

.privacy-header h1 {
    font-size: 28px;
    line-height: 1.2;
}

.privacy-content {
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f6ddc7;
    box-shadow: var(--shadow);
    padding: 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #503627;
}

.privacy-content h2 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.3;
    color: #bc4f08;
}

.privacy-content p,
.privacy-content li {
    margin: 8px 0;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-back {
    display: inline-flex;
    margin-top: 16px;
    color: #ce5609;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .page {
        padding: clamp(12px, 3vh, 18px) 12px 0;
    }

    .hero {
        grid-template-columns: 1fr clamp(170px, 28vw, 230px);
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .cookie-modal {
        width: calc(100vw - 20px);
        left: 10px;
        transform: none;
        bottom: 10px;
        border-radius: 10px;
        padding: 12px;
        gap: 10px;
    }

    .cookie-close {
        font-size: 18px;
    }

    .cookie-text {
        font-size: 12px;
    }

    .cookie-btn {
        height: 34px;
        min-width: 104px;
        border-radius: 8px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 13px;
    }

    .quote-block p,
    .cta-text,
    .about p {
        font-size: 14px;
    }

    h2 {
        font-size: 25px;
    }

    .btn {
        font-size: 13px;
        padding: 0 10px;
    }

    .cookie-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .cookie-btn {
        font-size: 13px;
    }
}

@media (max-width: 740px) {
    .page {
        padding: 12px 10px 0;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-image {
        max-width: clamp(145px, 26vw, 170px);
        height: auto;
        max-height: clamp(190px, 28vh, 230px);
    }

    .cta-section,
    .about {
        padding: 10px 12px;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
    }

    .btn {
        min-height: 42px;
        font-size: 13px;
    }

    .btn-content {
        gap: 7px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 23px;
    }

    .cookie-modal {
        left: 8px;
        right: 8px;
        bottom: 10px;
        width: auto;
        border-radius: 10px;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
      "text close"
      "btn btn";
        gap: 8px;
    }

    .cookie-close {
        font-size: 20px;
        grid-area: close;
        justify-self: end;
    }

    .cookie-text {
        font-size: 13px;
        max-width: 100%;
        padding-right: 0;
        grid-area: text;
    }

    .cookie-btn {
        margin-top: 10px;
        height: 36px;
        min-width: 96px;
        border-radius: 10px;
        font-size: 14px;
        grid-area: btn;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-top-icon {
        width: 30px;
        height: 20px;
    }

    .hero-content {
        padding-top: 28px;
    }

    h1 {
        font-size: 22px;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 12px;
    }

    .quote-block p,
    .cta-text,
    .about p {
        font-size: 13px;
        line-height: 1.4;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        min-height: 40px;
        font-size: 12px;
        padding: 0 8px;
    }

    .btn-content {
        gap: 6px;
    }

    .btn-icon {
        width: 15px;
        height: 15px;
    }

    .footer p {
        font-size: 10px;
    }

    .cookie-text {
        font-size: 11px;
        line-height: 1.4;
    }

    .cookie-btn {
        height: 34px;
        min-width: 88px;
        font-size: 13px;
        border-radius: 9px;
    }

    .privacy-header h1 {
        font-size: 20px;
    }

    .privacy-content {
        font-size: 14px;
        line-height: 1.5;
    }

    .privacy-content h2 {
        font-size: 17px;
    }
}
