/* SOY Theme — Утилиты, анимация, форма, поле телефона */

/* ============================ 3. УТИЛИТЫ ================================ */
.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.section--paper {
    background-color: var(--color-paper);
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.section__head {
    max-width: 640px;
}

.section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-orange-500);
}

.section__kicker-mark {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-orange-500);
}

.section__title {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin: 14px 0 12px;
    color: var(--color-heading);
}

.section__subtitle {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 560px;
}

.section--dark .section__title,
.section--dark .section__subtitle {
    color: var(--color-white);
}

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.72);
}

/* ============================ 15. АНИМАЦИЯ ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   19. ФОРМА: ЧЕКБОКС СОГЛАСИЯ И СОСТОЯНИЕ КНОПКИ
   ========================================================================== */

/* Кнопка отправки в неактивном состоянии */
.button:disabled,
.button[disabled],
.button[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.4);
}

.button:disabled:hover,
.button[disabled]:hover,
.button[aria-disabled="true"]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Чекбокс согласия */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 6px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--color-muted);
    cursor: pointer;
    user-select: none;
}

.form__checkbox input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--color-orange-500);
    cursor: pointer;
}

.form__checkbox-label {
    display: block;
}

.form__checkbox-label a {
    color: var(--color-orange-500);
    text-decoration: underline;
    text-decoration-color: rgba(255, 122, 0, 0.4);
    text-underline-offset: 2px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.form__checkbox-label a:hover {
    color: var(--color-orange-600);
    text-decoration-color: currentColor;
}

html[data-theme="dark"] .form__checkbox-label a {
    color: var(--color-orange-400);
}

/* Страница политики — на ширину экрана, адаптивно */
.section--policy {
    padding: clamp(48px, 6vw, 96px) 0;
}

.section--policy .container {
    width: min(1440px, calc(100% - clamp(32px, 6vw, 96px)));
}

.section--policy .section__head {
    max-width: 100%;
}

.section--policy .entry__content--policy {
    max-width: 100%;
}

.entry__content--policy {
    font-size: clamp(15px, 0.35vw + 13px, 17px);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.entry__content--policy h2 {
    font-size: clamp(20px, 1.2vw + 15px, 26px);
    font-weight: 800;
    color: var(--color-heading);
    margin: clamp(28px, 3vw, 40px) 0 14px;
    letter-spacing: -0.02em;
}

.entry__content--policy h2:first-child {
    margin-top: 0;
}

.entry__content--policy p {
    margin: 12px 0;
    color: var(--color-ink);
}

.entry__content--policy ul,
.entry__content--policy ol {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc;
}

.entry__content--policy ol {
    list-style: decimal;
}

.entry__content--policy li {
    margin: 6px 0;
    color: var(--color-ink);
}

.entry__content--policy li::marker {
    color: var(--color-orange-500);
}

.entry__content--policy strong {
    color: var(--color-heading);
    font-weight: 700;
}

.policy__meta,
.policy__date {
    display: block;
    padding: 14px 20px;
    margin: 0 0 24px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-left: 3px solid var(--color-orange-500);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-muted);
}

.policy__date {
    margin-top: 32px;
    margin-bottom: 0;
}

html[data-theme="dark"] .policy__meta,
html[data-theme="dark"] .policy__date {
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   20. ПОЛЕ ТЕЛЕФОНА: МОНОШИРИННЫЕ ЦИФРЫ, БЕЗ СПИННЕРОВ
   ========================================================================== */

.form__input[name="phone"] {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Скрываем стрелки у number, если кто-то поменяет type */
.form__input[type="number"]::-webkit-outer-spin-button,
.form__input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form__input[type="number"] {
    -moz-appearance: textfield;
}
