:root {
    --fg: #404040;
    --muted: #6c7279;
    --bg: #fae7d6;
    --accent: #eb0000;
    --border: #525252;
    --card: #fff5ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.content {
    margin: 4vw;
}

header {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
    padding-left: 4vw;
    padding-right: 4vw;
    background-color: #404040;
    color: #fae7d6;
}

section {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 2rem 4vw 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}


header h1 {
    color: #fae7d6;
}

header .lead {
    color: #e8d5c4;
}

h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    margin: 2rem 0 1rem;
    text-align: center;
}

h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.module {
    background: var(--card);
    border: 2px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.module ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.module li {
    margin-bottom: 0.4rem;
}

.module strong {
    color: var(--fg);
}

.cta {
    max-width: 860px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    text-align: center;
}

.cta a, .cta button {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--bg);
    color: var(--accent);
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.cta a:hover, .cta button:hover {
    transform: scale(1.05);
    background: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-item {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

.reviews {
    list-style: none;
    padding: 0;
}

.reviews li {
    margin-bottom: 0.5rem;
}

.reviews a {
    color: var(--accent);
    text-decoration: none;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 7px -9px 24px -2px rgba(137, 136, 97, 0.4);
}

.modal-box h3 {
    margin: 0 0 1rem;
    color: var(--accent);
    text-align: center;
    font-size: 1.25rem;
}

.modal-close-x {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 24px;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.modal-close-x:hover {
    transform: scale(1.2);
}

/* Форма */
.form-field {
    margin-bottom: 10px;
}

.form-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.form-field input[type=text],
.form-field input[type=email],
.form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: var(--card);
    color: var(--fg);
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.char-counter {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    text-align: right;
}

.char-counter.ok {
    color: #166534;
}

.char-counter.fail {
    color: var(--accent);
}

.form-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0;
    line-height: 1.4;
}

.form-checkbox input {
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox a {
    color: var(--accent);
}

.form-submit {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Fira Sans', sans-serif;
    background: var(--bg);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.form-submit:hover {
    transform: scale(1.02);
    background: #fff;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.form-result.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* Сообщение «Спасибо» */
.thanks-message {
    text-align: center;
    padding: 1rem 0;
}

.thanks-message h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.thanks-message p {
    margin: 0 0 1.25rem;
}

.thanks-message button {
    padding: 10px 24px;
    background: var(--bg);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.thanks-message button:hover {
    background: #fff;
}

/* Кнопки «Поделиться» */
.share {
    text-align: center;
    padding: 2rem 1rem;
}

.share h2 {
    margin-bottom: 0.5rem;
}

.share p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.ya-share2 {
    display: flex;
    justify-content: center;
 /*   gap: 0.5rem; */
}
/* Увеличение кнопки при наведении мыши */
.ya-share2__item:hover {
    transform: scale(1.1);
}

/* Кастомные иконки соцсетей */
.ya-share2__item_service_vkontakte .ya-share2__icon {
    background-image: url(../images/but_vk.png) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
}

.ya-share2__item_service_telegram .ya-share2__icon {
    background-image: url(../images/but_tg.png) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
}

.ya-share2__item_service_odnoklassniki .ya-share2__icon {
    background-image: url(../images/but_ok.png) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
}

.ya-share2__item_service_whatsapp .ya-share2__icon {
    background-image: url(../images/but_wa.png) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
}

/* Размер иконок */
.ya-share2__icon {
    width: 48px !important;
    height: 48px !important;
}

/* Убираем фон и скругление у стандартного «бейджа» Яндекса */
.ya-share2__badge {
    background-color: transparent !important;
    border-radius: 0 !important;
}

/* Общий ряд кнопок: MAX + Яндекс-виджет */
.share-row {
    display: flex;
    justify-content: center;
    align-items: center;
  /*  gap: 0.25rem;  */
    flex-wrap: wrap;
}

/* Кнопка MAX — визуально как иконки Яндекса */
.max-share-btn {
    display: inline-block;
    margin-right: 0.25rem;
    width: 48px;
    height: 48px;
    transition: transform 0.2s;
}
.max-share-btn:hover {
    transform: scale(1.1);
}
.max-share-btn img {
    width: 100%;
    height: 100%;
    display: block;
 /*   border-radius: 50%; */
}
/* убираем яндексовский промежуток */
/*.ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item:last-child {*/
/*    margin-right: 0 !important;*/
/*}*/