/* ==========================================================================
   Static / service page — universal layout per ТЗ.
   ========================================================================== */

.static-page {
    padding: 24px 0 64px;
}

.static-page__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 24px 0 16px;
}

/* Nested-pages list — Figma node 80:495 (white card with bullet list). */
.static-page__nested-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 29px;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.static-page__nested-title {
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 36px;
    letter-spacing: -0.4px;
    color: #252525;
}

.static-page__nested {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-self: stretch;
}

.static-page__nested li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: normal;
    letter-spacing: -0.32px;
    color: #252525;
}

.static-page__nested li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d51219;
    margin-right: 5px;
}

.static-page__nested a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.static-page__nested a:hover {
    color: #d51219;
}

/* Body block — Figma node 234:1116. Per ТЗ:
   - white card with chess-figure background (right side), full block width,
   - min-height so the figure fits at full width,
   - optional image: 1/3 of block width, top-right by default, never enlarged (max-width 100% of its cell),
   - if content is long, image bottom-aligns within its cell (align-self: end),
   - if there is no image, text spans the full width.
*/
.static-page__body {
    position: relative;
    margin-top: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 6px 24px 0 rgba(0, 0, 0, .05),
        0 0 0 1px rgba(0, 0, 0, .08);
    padding: 23px 29px;
    min-height: 240px;
    overflow: hidden;
}

.static-page__body::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: lightgray;
    background-image:
        linear-gradient(0deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .20) 100%),
        url('/images/contact/bg-chess1.png');
    background-position: 50% 50%, 50% 50%;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: hue, normal;
}

.static-page__body::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to right,
        #fff 0%,
        rgba(255, 255, 255, .92) 30%,
        rgba(255, 255, 255, .55) 55%,
        rgba(255, 255, 255, 0) 100%);
}

.static-page__body > * { position: relative; z-index: 2; }

.static-page__content {
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
    color: #252525;
    position: relative;
    z-index: 2;
}

.static-page__content p { margin: 0 0 25px; }
.static-page__content p:last-child { margin-bottom: 0; }

/* With-image variant — image right-aligned, 1/3 of block width. */
.static-page__body--with-image {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    min-height: 363px;
}

.static-page__body--with-image .static-page__content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.static-page__body--with-image .static-page__image {
    grid-column: 2;
    grid-row: 1;
    align-self: end;       /* per ТЗ: when text is tall, image bottom-aligns */
    justify-self: end;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.static-page__body--with-image .static-page__image img {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;            /* per ТЗ: never enlarge above natural size */
}

@media (max-width: 768px) {
    .static-page__body {
        background-size: cover;
        background-position: center;
    }
    .static-page__body--with-image {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }
    .static-page__body--with-image .static-page__content {
        grid-column: 1;
        grid-row: 2;
    }
    .static-page__body--with-image .static-page__image {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }
}

/* Quote block reuses .faq-detail__quote* from homepage.css — no extra styles needed. */

/* InfoPage gallery (template = PHOTO). */
.info-detail-page__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.info-detail-page__photo {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.info-detail-page__photo img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ==========================================================================
   Contact page (template = CONTACT) — Figma node 221:3534, pixel-precise.
   Top row: 2 wide cards (50/50) with chess-figure background fade.
   Bottom row: 3 equal narrow cards.
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    /* 24-col virtual grid: top row 12+12 (28px gap), bottom row 8+8+8 (25px gap).
       Approximated with two separate rows in one grid via row separation. */
    .contact-grid {
        grid-template-columns: repeat(6, 1fr);
        column-gap: 28px;
        row-gap: 28px;
    }
    .contact-grid > .contact-card--wide   { grid-column: span 3; }
    .contact-grid > .contact-card--narrow { grid-column: span 2; }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-grid > .contact-card { grid-column: 1 / -1; }
}

.contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow:
        0 6px 24px 0 rgba(0, 0, 0, .05),
        0 0 0 1px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card--wide.contact-card--bg { min-height: 243px; }

/* Chess-figure background — image with a hue blend-mode overlay (per the macet),
   plus a left-to-right white fade so the figure dissolves into the card. */
.contact-card--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: lightgray;
    background-position: 50% 50%, 50% 50%;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: hue, normal;
}

.contact-card--bg-1::before {
    background-image:
        linear-gradient(0deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .20) 100%),
        url('/images/contact/bg-chess1.png');
}
.contact-card--bg-2::before {
    background-image:
        linear-gradient(0deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .20) 100%),
        url('/images/contact/bg-chess2.png');
}

/* Smooth left-to-right fade so the chess figure blends into the white card on the text side. */
.contact-card--bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        #fff 0%,
        rgba(255, 255, 255, .92) 30%,
        rgba(255, 255, 255, .55) 55%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-card > * { position: relative; z-index: 2; }

.contact-card--narrow { min-height: 207px; gap: 20px; }
.contact-card--delivery { gap: 15px; }
.contact-card--info     { gap: 20px; }
.contact-card--payment  { gap: 20px; }

/* Header: icon + title. */
.contact-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card__icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__icon img,
.contact-card__icon svg { display: block; width: 100%; height: 100%; }

.contact-card__title {
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    letter-spacing: -0.4px;
    color: #252525;
    white-space: nowrap;
}

/* Body. */
.contact-card__body {
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
    color: #252525;
}

.contact-card__body p { margin: 0; }
.contact-card__body p + p { margin-top: 12px; }

.contact-card__body--two-cols {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-card__col { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; min-width: 0; }
.contact-card__col--narrow { flex: 0 0 162px; max-width: 162px; }
.contact-card__col--wide   { flex: 1 1 251px; }

.contact-card__email {
    color: #cd1719;
    text-decoration: none;
}

.contact-card__email:hover { text-decoration: underline; }

/* Support button — gradient red 221.36deg, with subtle insets. */
.contact-card__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 12px 16px;
    border-radius: 8px;
    background: linear-gradient(221.36deg, #a32322 8.86%, #d51118 91.84%);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.28px;
    box-shadow:
        inset 0 -1px 1px rgba(0, 0, 0, .12),
        inset 0 1px 1.5px rgba(255, 255, 255, .25),
        0 2px 3px rgba(74, 58, 255, .1);
    white-space: nowrap;
    transition: filter .2s ease;
}

.contact-card__btn:hover { filter: brightness(1.05); color: #fff; }

/* Plain underlined red link. */
.contact-card__link {
    align-self: flex-start;
    color: #cd1719;
    text-decoration: underline;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
}

.contact-card__link:hover { color: #a32322; }

/* Payment brands — Figma node 221:3583/3640: logos row with 14px gap, then a cash row. */
.contact-pay {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-pay__brands {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-pay__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 19px;
}

.contact-pay__brand img {
    display: block;
    max-height: 19px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.contact-pay__cash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-pay__cash {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #676767;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.32px;
}

.contact-pay__cash img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Info card — always two columns (Figma 221:3534). */
.contact-info__cols {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.contact-info__col {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 0;
    min-width: 0;
}

.contact-info__col a {
    color: #cd1719;
    text-decoration: underline;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
}

.contact-info__col a:hover { color: #a32322; }

/* ==========================================================================
   Logo-by-date page (/logo/{date}).
   ========================================================================== */
.logo-page__card {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.logo-page__image {
    display: block;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: contain;
}
.logo-page__text {
    margin-top: 24px;
    max-width: 760px;
    color: #252525;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
}
.logo-page__text p { margin: 0 0 16px; }
.logo-page__text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   About page (template = ABOUT).
   ========================================================================== */

/* Vertical stack of the three about blocks (Figma gap 80px). */
.about-page__stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 16px;
}

/* 1. Hero card: text (left) + image (right) over a faint chess watermark. */
.about-hero {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.about-hero--with-media::before {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 616px;
    background: url('/images/about/hero-chess-bg.png') right center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}
.about-hero--with-media::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 690px;
    background: linear-gradient(to right, #fff 5%, rgba(255, 255, 255, 0) 45%);
    z-index: 1;
    pointer-events: none;
}
.about-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 23px 29px;
}
.about-hero__text {
    flex: 0 0 590px;
    width: 590px;
    color: #252525;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
}
.about-hero__text p { margin: 0 0 25px; }
.about-hero__text p:last-child { margin-bottom: 0; }
.about-hero__media { flex: 0 0 544px; width: 544px; }
.about-hero__media img { display: block; width: 100%; height: auto; }

/* 2. Mission quote — light box with a red gradient bar on the left. */
.about-mission {
    position: relative;
    background: #fcf8f8;
    border-radius: 5px;
    padding: 30px 36px;
    overflow: hidden;
}
.about-mission::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 9px;
    background: linear-gradient(to bottom, #d51219, #a62322);
    border-radius: 5px 0 0 5px;
}
.about-mission__head { display: flex; align-items: center; gap: 20px; }
.about-mission__icon { display: block; width: 27px; height: 20px; flex: none; }
.about-mission__title {
    margin: 0;
    color: #252525;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
}
.about-mission__text {
    margin-top: 17px;
    padding-left: 32px;
    max-width: 1016px;
    color: #252525;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.36px;
}
.about-mission__text p { margin: 0; }
.about-mission__text p + p { margin-top: 12px; }

/* 3. History — heading, then per-section [image + lead] row and full-width body. */
.about-history { display: flex; flex-direction: column; gap: 50px; }
.about-history__title {
    margin: 0;
    color: #252525;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.6px;
}
.about-history__body { display: block; }
.about-history__body::after { content: ''; display: block; clear: both; }
/* Badge floats left; the detailed text wraps beside it, then continues below. */
.about-history__media {
    float: left;
    width: 221px;
    margin: 0 54px 18px 0;
    height: auto;
}
.about-history__text {
    color: #252525;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.32px;
}
.about-history__text p { margin: 0 0 25px; }
.about-history__text p:last-child { margin-bottom: 0; }

@media (max-width: 992px) {
    .about-page__stack { gap: 48px; }
    .about-hero__inner { flex-direction: column; align-items: stretch; padding: 20px; }
    .about-hero__text,
    .about-hero__media { flex: 1 1 auto; width: auto; }
    .about-hero--with-media::before,
    .about-hero--with-media::after { display: none; }
    .about-mission { padding: 24px 20px; }
    .about-mission__text { padding-left: 0; font-size: 16px; line-height: 24px; }
    .about-history { gap: 20px; }
    .about-history__title { font-size: 24px; }
    /* Mobile (Figma 278:2894): small badge floated top-right, text wraps around it. */
    .about-history__media { width: 96px; margin: 4px 0 10px 16px; float: right; }
}

/* ==========================================================================
   Support page — Figma node 221:2480.
   ========================================================================== */

.support-page__hero {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 16px 0 60px;
}

.support-page__title {
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 30px);
    letter-spacing: -0.6px;
    color: #252525;
}

.support-page__intro {
    margin: 0;
    color: #676767;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.4px;
}

.support-page__intro p {
    margin: 0;
}

.support-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.support-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05), 0 0 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.support-card__title {
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.4px;
    color: #252525;
}

.support-card__cta {
    align-self: flex-start;
}

/* FAQ accordion list (left card). */
.support-faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.support-faq {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
}

.support-faq__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 20px;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.32px;
    color: #252525;
}

.support-faq__summary::-webkit-details-marker { display: none; }

.support-faq__q {
    flex: 1 1 auto;
    font-weight: 400;
}

.support-faq[open] .support-faq__q {
    font-weight: 500;
}

.support-faq__chevron {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #252525;
    transition: transform .2s ease;
}

.support-faq[open] .support-faq__chevron {
    transform: rotate(180deg);
}

.support-faq__body {
    padding: 0 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.32px;
    color: #252525;
}

.support-faq__a {
    margin: 0;
}

.support-faq__a > *:first-child { margin-top: 0; }
.support-faq__a > *:last-child { margin-bottom: 0; }

.support-faq__more {
    align-self: flex-start;
    font-weight: 500;
    color: #c3171c;
    text-decoration: underline;
    text-decoration-style: solid;
}

.support-faq__more:hover {
    color: #a32322;
}

/* Form (right card). */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.support-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-form__label {
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: #252525;
}

.support-form__required {
    color: #d41217;
    margin-left: 2px;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea,
.support-form__select select {
    width: 100%;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 7px;
    padding: 8px 16px;
    height: 44px;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.28px;
    color: #252525;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.support-form textarea {
    height: 178px;
    resize: vertical;
    padding: 13px 16px 8px;
    line-height: 1.4;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: #9e9e9e;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form__select select:focus {
    outline: none;
    border-color: #c3171c;
}

.support-form__select {
    position: relative;
}

.support-form__select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.support-form__select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid #252525;
    border-bottom: 2px solid #252525;
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}

.support-form__consent {
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.28px;
    color: #676767;
}

.support-form__agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #676767;
}

.support-form__checkbox input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #cd1719;
}

.support-agreement__link {
    color: #cd1719;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.support-agreement__link:hover {
    color: #a32322;
}

/* У последнего согласия отступ чуть больше (п.23.5). */
.support-form__checkbox--indent {
    padding-left: 28px;
}

/* Модалка соглашения на форме обращения (п.23.6 — как на странице заказа). */
.agreement-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.agreement-modal[hidden] {
    display: none;
}

.agreement-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 37, 37, 0.6);
}

.agreement-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px 40px;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.agreement-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #252525;
    cursor: pointer;
}

.agreement-modal__body {
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #252525;
}

.support-form__submit {
    align-self: flex-end;
}

/* Primary red gradient button (Figma node 221:2524). */
.support-btn--primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 213px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.28px;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(223.92deg, #a32322 8.86%, #d51118 91.84%);
    box-shadow:
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.12),
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.25),
        0 2px 3px 0 rgba(74, 58, 255, 0.10);
    transition: filter .2s ease, transform .05s ease;
}

.support-btn--primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

.support-btn--primary:active {
    transform: translateY(1px);
}

/* Flash + error messages. */
.support-flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: var(--font-family), 'Geist', sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.support-flash--success {
    background: #e7f6ec;
    border: 1px solid #b2dfb8;
    color: #186f31;
}

.support-flash--error {
    background: #fbeaea;
    border: 1px solid #f3b8b8;
    color: #9b1a1a;
}

.support-flash ul {
    margin: 0;
    padding-left: 18px;
}

/* Responsive: stack columns under 992px (matches Figma fixed 588px*2 + 30px gap). */
@media (max-width: 991px) {
    .support-page__grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 24px 20px;
    }
}

@media (max-width: 575px) {
    .support-page__hero {
        gap: 16px;
        margin-bottom: 32px;
    }

    .support-page__intro {
        font-size: 16px;
        line-height: 24px;
    }

    .support-form__submit,
    .support-card__cta {
        width: 100%;
    }
}
