@font-face {
    font-family: "Montserrat";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Montserrat-Medium-cleaned.woff2") format("woff2"),
    url("../fonts/Montserrat-Medium-cleaned.woff") format("woff");
}
@font-face {
    font-family: "Montserrat";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Montserrat-Bold.woff2") format("woff2"),
    url("../fonts/Montserrat-Bold.woff") format("woff");
}
@font-face {
    font-family: "Songers";
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/SONGERSemiExpanded-ExtraBold-cleaned.woff2") format("woff2"),
    url("../fonts/SONGERSemiExpanded-ExtraBold-cleaned.woff") format("woff");
}

:root {
    --html-min-width: 321px;
    --html-max-width: 1920px;
    --html-mobile-edge-offset: 10px;
    --container: 1200px;
    --color-1: #fff;
    --color-2: #000;
    --color-3: #c8996b;
    --color-4: #e2ae7b;
    --color-5: #ebc8a0;
    --color-6: #a42423;
    --btn-1: #fff;
    --btn-2: #000;
    --btn-3: #f4f2ed;
    --btn-4: #cecece;
    --btn-5: #b4b4b4;
    --error: red;
    --bg-1: #fff;
    --bg-2: #000;
    --bg-3: #272727;
    --bg-4: #c8996b;
    --bg-5: #f1b279;
    --bg-6: #97704b;
    --bg-7: #d2ad84;
    --bg-9: #3a3e41;
    --bg-10: #3d3d3d;
    --bg-11: #e0bb92;
    --bg-12: #d7e0e4;
    --bg-13: #31343c;
    --bg-14: #efdcc6;
    --bg-15: #f2d8bc;
    --font-family: "Montserrat", sans-serif;
    --font-family-title: "Songers", sans-serif;
    --font-size-small-maxi: 12px;
    --font-size-medium: 16px;
    --font-size-medium-semi: 18px;
    --font-size-medium-maxi: 20px;
    --font-size-large-mini: 22px;
    --font-size-large: 24px;
    --font-size-big-mini: 28px;
    --font-size-big-semi: 32px;
    --font-size-huge: 36px;
    --font-size-giant: 44px;
    --font-size-main-title: 54px;
    --swiper-theme-color: #007aff;
    --transition-settings: 150ms ease;
    --white: #fff;
    --black: #000;
    --gray-100: #a9a9a9;
    --gray-200: #858c94;
    --red-100: #da1414;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family), serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-6);
    background-size: cover;
}

#app{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: auto;
}

.header {
    background: rgb(26 26 26 / 39%);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 50px;
    display: block;
}
.logo.fv{
    position: absolute;
    top: -40px;
    right: -40px;
    height: 180px;
}

.stats-btn {
    min-width: 140px;
    padding: 7px 9px;
    border: 1px solid var(--white);
    border-radius: 40px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    line-height: 22px;
    transition: color var(--transition-settings), border-color var(--transition-settings), background-color var(--transition-settings);
    cursor: pointer;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.form-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 30px 50px 50px;
    max-width: 610px;
    border-radius: 40px;
    background: #000;
    margin: 0;
    color: #fff;
    position: relative;
}
.form-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-title {
    text-align: center;
    margin-bottom: 32px;
    font-family: var(--font-family), serif;
    font-size: var(--font-size-big-mini);
    line-height: 29px;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-image: linear-gradient(270deg, #c79d75 1.98%, #f7e4bb 47.22%, #c8996b 97.43%);
    color: var(--color-3);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    display: grid;
    grid-gap: 8px;
}

label {
    font-size: 12px;
    line-height: 24px;
    color: var(--gray-100);
    display: block;
}

.checkbox-group label{
    font-size: 12px;
    line-height: 14px;
}

input[type="text"],
input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    background: transparent;
    border-radius: 8px;
    outline: none;
    color: var(--white);
    font-size: 14px;
    line-height: 24px;
    transition: border-color var(--transition-settings);
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #ffd4b0;
    box-shadow: 0 0 0 3px rgba(255, 212, 176, 0.2);
}

input[type="checkbox"] {
    width: 60px;
    height: 60px;
    accent-color: var(--color-3);
    margin: 0;
}

input.error-input {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-group.label {
    flex-wrap: wrap;
}
.checkbox-group .checkbox-label{
    font-size: 0.9rem;
    line-height: 1.3rem;
    margin: 1rem 0;
}

.agreement-link {
    color: var(--color-3);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.agreement-link:hover {
    color: var(--color-1);
}

.submit-btn {
    min-width: 260px;
    padding: 13px 16px;
    border: 1px solid var(--white);
    border-radius: 40px;
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    line-height: 22px;
    transition: color var(--transition-settings), border-color var(--transition-settings), background-color var(--transition-settings);
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
}

.submit-btn:hover {
    border-color: #e9e7e7;
    background-color: #e9e7e7;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    animation: slideDown 0.3s ease;
}
.error.activity {
    padding: 0 10px 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message h3 {
    text-align: center;
    margin-bottom: 32px;
    font-family: var(--font-family), serif;
    font-size: var(--font-size-large);
    line-height: 29px;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-image: linear-gradient(270deg, #c79d75 1.98%, #f7e4bb 47.22%, #c8996b 97.43%);
    color: var(--color-3);
}

.success-message p {
    color: var(--color-1);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.restart-btn {
    min-width: 260px;
    padding: 13px 16px;
    border: 1px solid var(--white);
    border-radius: 40px;
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    line-height: 22px;
    transition: color var(--transition-settings), border-color var(--transition-settings), background-color var(--transition-settings);
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background-color: #272727;
    max-height: 900px;
    max-width: 1460px;
    overflow: auto;
    padding: 35px;
    position: relative;
    width: 97vw;
    color: #fff;
    border-radius: 8px;
}
.m-privacy__agreement>.m-privacy__text {
    font-size: var(--font-size-medium);
    padding: 8px 0 0 8px;
}
.m-privacy__h4 {
    color: var(--color-3);
    font-weight: 700;
    line-height: 120%;
    font-size: 20px;
    margin: 20px 0 0;
}
.m-privacy__agreement>.m-privacy__list {
    list-style-type: disc;
    padding: 8px 0 0 45px;
}
.m-privacy > * {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.m-privacy a {
    color: var(--color-3);
    text-decoration: underline;
}
.modal-content h3{
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(270deg, #c79d75 1.98%, #f7e4bb 47.22%, #c8996b 97.43%);
    color: var(--color-3);
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    font-weight: 500;
    line-height: 135%;
    text-align: center;
    margin-bottom: 1rem;
}

.radio-group {
    margin-bottom: 1.5rem;
}

.radio-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option:hover .radio-custom {
    border-color: #667eea;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    to {
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}
.stats-modal{
    max-width: 800px;
}
.stats{
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-item {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-3);
    margin-top: 1rem;
}

.footer {
    padding: 1rem;
    text-align: center;
    color: white;
}

.phone-input {
    padding-left: 12px !important;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0;
    display: grid;
    grid-gap: 8px;
}

.phone-prefix {
    display: none;
}
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px dashed #404040;
    border-radius: 8px;
    margin-bottom: 30px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-1);
    background: var(--color-1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-3);
    border: 2px solid var(--color-3);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Стили для чекбоксов согласия */
.form-group .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-3);
}

.form-group .checkbox-group label {
    font-size: 12px;
    line-height: 1.4;
}
.modal-body{
    font-size: 0.9rem;
}
.modal-body p{
    margin-bottom: 1rem;
}

.modal-body li{
    margin-bottom: 0.8rem;
}

@media all and (max-width: 1200px){
    .main {
        padding: 1rem;
    }
    .form-container {
        padding: 2rem;
        border-radius: 1rem;
    }
    .form-title {
        margin-bottom: 32px;
        line-height: 29px;
        font-size: 1.2rem;
    }
    .modal-content h3{
        font-size: 16px;
        text-align: left;
    }
    .modal-content {
        max-height: 90%;
    }
    .logo.fv{
        top: -20px;
        right: -20px;
        height: 120px;
    }
}