* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'PT Sans', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ШАПКА САЙТА */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #000;
    border-bottom: 2px solid #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 15px;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    flex-shrink: 1;
}

/* Часы */
.clock-container {
    margin-bottom: 10px;
}

.clock {
    font-size: 32px;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    letter-spacing: 1px;
    height: 32px;
    line-height: 32px;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

/* Контейнер для таймеров */
.timers-container {
    text-align: left;
}

.timer-item {
    margin-bottom: 8px;
}

.timer-label {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
    margin-bottom: 2px;
    display: block;
}

.timer-value {
    font-size: 26px;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    letter-spacing: 1px;
    height: 26px;
    line-height: 26px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ссылка "Мы на связи" */
.contact-container {
    text-align: right;
    margin-bottom: 10px;
    max-width: 100%;
    width: 100%;
}

.contact-link {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 35px 70px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
}

.contact-link:hover {
    color: #ccc;
    text-decoration: underline;
}

.email-static {
    color: #fff;
    font-size: 18px;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* МОДАЛЬНОЕ ОКНО (только на главной) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #000;
    border: 2px solid #fff;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.modal-close:hover {
    color: #ccc;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
    line-height: 1.3;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.required::after {
    content: " *";
    color: #ff4444;
}

.form-input {
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: #fff;
}

.form-input::-webkit-input-placeholder {
    color: #888;
}

.form-input::-moz-placeholder {
    color: #888;
}

.form-input:-ms-input-placeholder {
    color: #888;
}

.form-input::placeholder {
    color: #888;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background-color: #ccc;
}

.form-notice {
    font-size: 14px;
    color: #aaa;
    margin-top: 15px;
    text-align: center;
    line-height: 1.4;
}

.form-notice a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-notice a:hover {
    color: #ccc;
}

/* ОСНОВНОЙ КОНТЕНТ */
.main-content {
    flex: 1;
    width: 100%;
    padding: 30px 20px 180px;
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 270px);
    overflow-x: hidden;
}

.page-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Общие стили для контента страниц */
.page-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-section {
    margin-bottom: 40px;
    width: 100%;
}

.page-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.page-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ПОДВАЛ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    border-top: 3px solid #fff;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}

.footer-links::-webkit-scrollbar {
    display: none;
}

.footer-link {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: center;
    padding: 5px 0 5px 20px;
    min-width: max-content;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.footer-link:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer-link::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    margin-right: 4px;
}

.h-card {
    display: none;
}

.home-navigation {
    position: fixed;
    top: 140px;
    left: 30px;
    z-index: 100;
}

.home-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: color 0.3s ease;
    padding: 10px;
}

.home-link:hover {
    color: #ccc;
}

.arrow {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.policy-content, .about-content {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #aaa;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 30px;
    width: 100%;
}

.policy-content p, .about-content p {
    margin-bottom: 15px;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-content strong, .about-content strong {
    color: #fff;
    font-weight: 700;
}

.policy-content h1, .about-content h1 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 30px;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

.policy-content h2, .about-content h2 {
    color: #fff;
    font-size: 22px;
    margin: 40px 0 20px;
    text-align: left;
    line-height: 1.3;
}

.policy-content h3, .about-content h3 {
    color: #fff;
    font-size: 18px;
    margin: 30px 0 15px;
    text-align: left;
    line-height: 1.4;
}

.policy-content ul, .about-content ul {
    list-style-type: none;
    margin: 15px 0;
    padding-left: 20px;
}

.policy-content ul li, .about-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: #aaa;
}

.policy-content ul li:before, .about-content ul li:before {
    content: "•";
    color: #fff;
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
}

.policy-content ol, .about-content ol {
    padding-left: 25px;
    margin: 15px 0;
    counter-reset: item;
}

.policy-content ol li, .about-content ol li {
    margin-bottom: 10px;
    color: #aaa;
    padding-left: 5px;
    counter-increment: item;
}

.policy-content ol li:before, .about-content ol li:before {
    content: counter(item) ".";
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
}

.policy-content .section-number, .about-content .section-number {
    color: #fff;
    font-weight: 700;
    margin-right: 5px;
}

.policy-content a, .about-content a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
    word-break: break-all;
}

.policy-content a:hover, .about-content a:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .header {
        height: 100px;
        padding: 0 15px 10px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .header-left, .header-right {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .clock {
        font-size: 24px;
        height: 24px;
        line-height: 24px;
    }
    
    .timer-label {
        font-size: 12px;
    }
    
    .timer-value {
        font-size: 20px;
        height: 20px;
        line-height: 20px;
    }
    
    /* Скрываем email на планшетах и мобильных */
    .email-static {
        display: none !important;
    }
    
    /* ОТСТУП 150px СПРАВА ДЛЯ КНОПКИ "МЫ НА СВЯЗИ" с переносом текста */
    .contact-link {
        font-size: 16px;
        display: inline-block !important;
        padding: 8px 0 8px 0;
        position: relative;
        max-width: 100%;
        white-space: nowrap;
        line-height: 1.3;
        text-align: right;
    }
    
    /* Создаем отступ 150px с помощью margin-right */
    .contact-link {
        margin-right: 150px;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-height: 85vh;
    }
    
    .modal-title {
        font-size: 20px;
        padding: 0 10px;
    }
    
    .form-input {
        font-size: 16px;
        min-height: 44px;
    }
    
    .submit-btn {
        font-size: 16px;
        min-height: 44px;
    }
    
    .main-content {
        padding: 110px 15px 170px !important;
        margin-top: 100px;
        min-height: calc(100vh - 270px);
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .page-section h2 {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .page-section p {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 15px;
    }
    
    .policy-content, .about-content {
        padding: 0 15px;
        padding-bottom: 30px !important;
    }
    
    .policy-content h1, .about-content h1 {
        padding: 0 15px;
    }
    
    .policy-content h2, .about-content h2 {
        padding: 0 15px;
    }
    
    .policy-content h3, .about-content h3 {
        padding: 0 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 16px;
        padding: 4px 0 4px 20px;
        text-align: center;
        line-height: 1.3;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: max-content;
        margin: 0 2px;
        position: relative;
    }
    
    .footer-link::before {
        content: "✅";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        line-height: 1;
        display: inline-block;
        margin-right: 4px;
    }
    
    .footer {
        height: 140px;
        padding: 8px 0;
    }
    
    .home-navigation {
        top: 110px;
        left: 15px;
        padding: 5px;
    }
    
    .home-link {
        font-size: 10px;
        padding: 8px;
    }
    
    .arrow {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 90px;
        padding: 0 15px 8px;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px; /* ← ДОБАВЛЕНО: отступ между левой и правой частями */
    }
    
    .header-left, .header-right {
        width: auto;
        flex: 0 1 auto;
        align-items: flex-start;
    }
    
    .header-right {
        align-items: flex-end;
        margin-top: 0;
        margin-left: auto; /* ← ДОБАВЛЕНО: отталкиваем правую часть вправо */
    }
    
    .clock {
        font-size: 20px;
        height: 20px;
        line-height: 20px;
    }
    
    .timer-label {
        font-size: 11px;
    }
    
    .timer-value {
        font-size: 18px;
        height: 18px;
        line-height: 18px;
    }
    
    /* Скрываем email на всех мобильных устройствах */
    .email-static {
        display: none !important;
    }
    
    /* АДАПТИВНЫЙ ОТСТУП ДЛЯ КНОПКИ "МЫ НА СВЯЗИ" */
    .contact-link {
        font-size: 14px;
        display: inline-block !important;
        padding: 6px 0 6px 0;
        white-space: nowrap;
        line-height: 1.2;
        text-align: right;
        overflow: visible;
    }
    
    /* Для экранов меньше 400px уменьшаем отступ */
    @media (max-width: 400px) {
        .contact-link {
            margin-right: 80px; /* Уменьшенный отступ для очень узких экранов */
        }
    }
    
    /* Для экранов 400px-480px используем стандартный отступ */
    @media (min-width: 401px) and (max-width: 480px) {
        .contact-link {
            margin-right: 70px; /* ← ИЗМЕНЕНО: было 150px, стало 70px */
        }
    }
    
    .main-content {
        padding: 100px 15px 160px !important;
        margin-top: 90px;
        min-height: calc(100vh - 250px);
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .page-section h2 {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .policy-content, .about-content {
        padding: 0 15px;
        padding-bottom: 30px !important;
        font-size: 14px;
    }
    
    .policy-content h1, .about-content h1 {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .policy-content h2, .about-content h2 {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .policy-content h3, .about-content h3 {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 15px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 3px 0 3px 18px;
        line-height: 1.2;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: max-content;
        margin: 0 1px;
        position: relative;
    }
    
    .footer-link::before {
        content: "✅";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 11px;
        line-height: 1;
        display: inline-block;
        margin-right: 3px;
    }
    
    .footer {
        height: 130px;
        padding: 6px 0;
    }
    
    .home-navigation {
        top: 100px;
        left: 15px;
    }
    
    .home-link {
        font-size: 9px;
        padding: 5px;
    }
    
    .arrow {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 20px 15px;
        margin: 10px;
        max-height: 80vh;
    }
    
    .form-input, .submit-btn {
        font-size: 14px;
    }
    
    textarea.form-input {
        min-height: 100px;
    }
}

@supports not (display: flex) {
    .header {
        display: block;
        overflow: hidden;
    }
    
    .header-left, .header-right {
        display: block;
        float: left;
        width: 50%;
    }
    
    .footer-links {
        display: block;
    }
    
    .footer-link {
        display: inline-block;
        margin: 0 5px;
    }
    
    .footer-link::before {
        content: "✅";
        margin-right: 4px;
        font-size: 12px;
    }
}

@supports (-webkit-touch-callout: none) {
    .header, .footer {
        -webkit-backdrop-filter: blur(10px);
    }
    
    input, textarea, button {
        font-size: 16px;
    }
    
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

@-moz-document url-prefix() {
    .form-input {
        line-height: 1.5;
    }
}