/* CSS Variables - Must be first! */
:root {
    --main-bg: #fff;
    --accent-blue: #0033a0;
    --accent-blue-dark: #002266;
    --text-main: #111;
    --border-radius: 14px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    /* НЕ используем overflow-x: hidden - ломает position: fixed */
    /* НЕ используем position: relative/static - может ломать fixed элементы */
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--main-bg);
    width: 100%;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    /* НЕ используем overflow-x: hidden - ломает position: fixed */
    /* НЕ используем position: relative/static - может ломать fixed элементы */
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* На мобильной убираем min-height чтобы не было пробела */
@media (max-width: 768px) {
    body {
        min-height: auto !important;
        height: auto !important;
    }
}

/* Убираем лишние отступы после футера */
.footer-bar {
    margin-bottom: 0 !important;
}

/* Убираем отступы у элементов после футера (кроме diary button и скриптов) - только для мобильной */

/* Скрываем registration-bg-chess полностью */
.registration-bg-chess {
    position: absolute !important;
    pointer-events: none !important;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0;
    background-color: var(--main-bg);
    width: 100%;
    overflow-x: hidden;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-phone {
    font-size: 26px;
    color: #000;
    margin-bottom: 30px;
}

.main-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -1px;
    font-family: 'Roboto', sans-serif;
}

.main-title .highlight {
    color: #0033a0;
    font-family: 'Roboto', sans-serif;
}

.highlight {
    color: var(--accent-blue);
    background: none;
}

.subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #111;
    margin-bottom: 30px;
}

.social-logo img {
    width: 150px;
    height: auto;
}

.social-logo a {
    color: #2563eb !important;
    transition: color 0.2s;
}

.social-logo a:hover {
    color: #0033a0 !important;
}

/* Addresses Section */
.addresses {
    background-color: var(--main-bg);
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
}

.addresses h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.addresses .description {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.address-column ul {
    list-style: none;
    font-size: 22px;
    line-height: 1.8;
    padding: 0;
    margin: 0;
}

.address-column ul li {
    color: #2563eb;
    font-weight: 500;
}

.address-column ul li:before {
    content: "• ";
    color: #111;
    font-weight: bold;
    margin-right: 10px;
}

/* Registration Form Section */
.registration {
    background: linear-gradient(rgba(41, 34, 28, 0.9), rgba(41, 34, 28, 0.9)), 
                #292828;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.registration::before {
    content: '♔ ♕ ♖ ♗ ♘ ♙';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    max-width: 100vw;
    overflow: hidden;
}

/* ============================================
   FORM WRAPPER - ОБЩИЕ СТИЛИ (цвета, типографика)
   ============================================ */
.form-wrapper {
    background: #fff;
    color: #111;
    box-sizing: border-box;
}

/* ============================================
   DESKTOP STYLES (≥769px) - Layout и расположение
   ============================================ */
@media (min-width: 769px) {
    .registration {
        padding: 80px 0;
    }
    
    .registration .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .form-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        border: 2px solid #0033a0;
        border-radius: var(--border-radius);
        padding: 48px 32px;
        box-shadow: 0 4px 32px rgba(0,51,160,0.07);
        width: 100%;
        position: relative;
    }
    
    .form-wrapper h2 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #111;
        line-height: 1.2;
    }
    
    .form-description {
        font-size: 18px;
        margin-bottom: 30px;
        color: #444;
    }
    
    .registration-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .registration-form input {
        padding: 16px;
        border: 2px solid var(--accent-blue);
        border-radius: var(--border-radius);
        background: #fff;
        color: #222;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
    }
    
    .registration-form input:focus {
        outline: none;
        border-color: var(--accent-blue-dark);
    }
    
    .registration-form button {
        padding: 16px 0;
        border: 2px solid var(--accent-blue);
        border-radius: var(--border-radius);
        font-size: 20px;
        font-weight: 700;
        background: #fff;
        color: var(--accent-blue);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        width: 100%;
        box-sizing: border-box;
    }
    
    .registration-form button:hover {
        background: var(--accent-blue);
        color: #fff;
    }
    
    .privacy-notice {
        font-size: 14px;
        color: #ccc;
        text-align: center;
    }
    
    .privacy-link {
        color: #2563eb !important;
        text-decoration: none !important;
        transition: color 0.2s;
    }
    
    .privacy-link:hover {
        color: #0033a0 !important;
        text-decoration: none !important;
    }
}

/* ============================================
   MOBILE STYLES (≤768px) - Layout и расположение
   ============================================ */
@media (max-width: 768px) {
    .registration {
        padding: 40px 0;
    }
    
    .registration .container {
        width: 100%;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .form-wrapper {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-right: none;
        border-top: 2px solid #0033a0;
        border-bottom: 2px solid #0033a0;
        border-radius: 0;
        padding: 28px 20px;
        position: static;
    }
    
    .form-wrapper h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
        font-weight: 700;
        color: #111;
    }
    
    .form-description {
        font-size: 15px;
        margin-bottom: 20px;
        color: #444;
    }
    
    .registration-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .registration-form input {
        padding: 14px;
        border: 2px solid var(--accent-blue);
        border-radius: 10px;
        background: #fff;
        color: #222;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
    }
    
    .registration-form input:focus {
        outline: none;
        border-color: var(--accent-blue-dark);
    }
    
    .registration-form button {
        padding: 14px 0;
        border: 2px solid var(--accent-blue);
        border-radius: 10px;
        font-size: 17px;
        font-weight: 700;
        background: #fff;
        color: var(--accent-blue);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
    }
    
    .registration-form button:hover {
        background: var(--accent-blue);
        color: #fff;
    }
    
    .privacy-notice {
        font-size: 13px;
        color: #ccc;
        text-align: center;
    }
    
    .privacy-link {
        color: #2563eb !important;
        text-decoration: none !important;
    }
    
    .privacy-link:hover {
        color: #0033a0 !important;
    }
}

@media (max-width: 480px) {
    .registration {
        padding: 30px 0;
    }
    
    .form-wrapper {
        padding: 24px 16px;
    }
    
    .form-wrapper h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .form-description {
        font-size: 14px;
        margin-bottom: 18px;
    }
}

/* Общие стили для highlight (используется в h2) */
.highlight-yellow {
    color: var(--accent-blue);
    background: none;
}

.success-message {
    display: none;
    font-size: 22px;
    color: var(--accent-blue-dark);
    font-weight: 700;
    margin-top: 20px;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--main-bg);
    width: 100%;
    overflow-x: hidden;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.section-description {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    background: #fff;
    color: var(--accent-blue-dark);
    box-shadow: none;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg, .feature-icon img {
    stroke: #2563eb !important;
    fill: none !important;
    color: #2563eb !important;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0033a0;
}

.feature-item p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: var(--main-bg);
    width: 100%;
    overflow-x: hidden;
}

/* Убираем текст "Фото клуба" если он добавлен через ::before/::after */
.gallery::before,
.gallery::after,
.slider-container::before,
.slider-container::after,
.slider-wrapper::before,
.slider-wrapper::after {
    display: none !important;
    content: none !important;
}

/* Скрываем все элементы внутри .gallery .container кроме .slider-container и модального окна */
.gallery .container > *:not(.slider-container) {
    display: none !important;
    visibility: hidden !important;
}

/* АГРЕССИВНОЕ СКРЫТИЕ текста "Фото клуба" */
body *[alt*="Фото клуба"],
body *[alt*="фото клуба"],
body *[title*="Фото клуба"],
body *[title*="фото клуба"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Скрываем любые элементы с этим текстом через атрибут data */
body *[data-text*="Фото клуба"],
body *[data-text*="фото клуба"] {
    display: none !important;
}

/* Скрываем любой текст "Фото клуба" везде на странице */
*:contains("Фото клуба"),
*:contains("фото клуба") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Альтернативный способ - через атрибут data */
[alt*="Фото клуба"],
[alt*="фото клуба"],
[title*="Фото клуба"],
[title*="фото клуба"] {
    display: none !important;
}

/* Скрываем элементы рядом со слайдером */
.gallery p,
.gallery span:not(.dot),
.gallery div:not(.slider-container):not(.slider-wrapper):not(.slide):not(.slider-dots) {
    display: none !important;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 320px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.7) translateX(0);
    filter: blur(12px);
    transition: all 0.7s cubic-bezier(.4,2,.6,1);
}

.slide.current {
    opacity: 1;
    z-index: 3;
    transform: scale(1) translateX(0);
    filter: blur(0);
    pointer-events: auto;
}

.slide.prev {
    opacity: 0.5;
    z-index: 2;
    transform: scale(0.85) translateX(-60%);
    filter: blur(6px);
}

.slide.next {
    opacity: 0.5;
    z-index: 2;
    transform: scale(0.85) translateX(60%);
    filter: blur(6px);
}

.slide img {
    max-width: 90%;
    margin: 0 auto;
    display: block;
    height: auto;
    min-height: 320px;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    background: #f0f0f0;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.slide .chess-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ddd;
    z-index: 2;
    pointer-events: none;
}

.slide img[src=""] {
    opacity: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    pointer-events: auto;
}

.slider-btn:hover {
    background: var(--accent-blue);
    color: #fff;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    height: 14px;
    width: 14px;
    margin: 0 5px;
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: var(--accent-blue);
}

/* CTA Section */
.cta {
    padding: 45px 0;
    text-align: center;
    background-color: var(--main-bg);
    width: 100%;
    overflow-x: hidden;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-blue);
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
    background: var(--accent-blue);
    color: #fff;
}

/* Contact Section */
.contact {
    background: #f7f9fc;
    text-align: center;
    padding: 60px 0 40px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-phone-big {
    font-size: 40px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.contact-email {
    font-size: 22px;
    color: #2563eb !important;
    margin-bottom: 24px;
}

.locations {
    margin-bottom: 24px;
}

.locations .location-item {
    font-size: 16px;
    margin-bottom: 8px;
}

.location-item a {
    color: #2563eb;
    font-weight: 500;
}

.location-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.social-link svg, .social-link img {
    color: #111 !important;
    fill: #111 !important;
    width: 38px;
    height: 38px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover svg, .social-link:hover img {
    opacity: 1;
    transform: scale(1.12);
}

/* Footer */
.footer {
    background: none;
    color: #fff;
    padding: 0;
    min-height: 0;
    border: none;
}

.footer-content { display: none; }

/* Responsive Design - Other sections */
@media (max-width: 768px) {
    .header {
        padding: 30px 0;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .contact-phone {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-phone a {
        font-size: 20px !important;
    }
    
    .social-logo {
        margin: 15px 0;
    }
    
    .social-logo a {
        font-size: 16px !important;
        line-height: 1.4;
    }
    
    .header-content > div:last-child {
        margin-top: 15px;
    }
    
    .header-content > div:last-child a {
        font-size: 14px;
        padding: 10px 18px;
        display: inline-block;
    }
    
    .addresses {
        padding: 30px 0;
    }
    
    .addresses h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .addresses .description {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .address-column ul {
        font-size: 16px;
        line-height: 1.6;
    }
    
    
    .features {
        padding: 30px 0;
    }
    
    .features h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .gallery {
        padding: 30px 0;
    }
    
    .slider-container {
        padding: 0 15px;
    }
    
    .slider-btn {
        font-size: 20px;
        padding: 10px 14px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .slider-wrapper { 
        height: 220px; 
        min-height: 220px; 
    }
    
    .slide img { 
        max-height: 220px;
        min-height: 220px;
        border-radius: 8px;
    }
    
    .cta {
        padding: 25px 0;
    }
    
    .cta-button {
        font-size: 17px;
        padding: 14px 28px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact {
        padding: 30px 0 20px 0;
    }
    
    .contact-main {
        gap: 12px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .contact-phone-big {
        font-size: 24px;
    }
    
    .contact-email {
        font-size: 16px;
    }
    
    .contact-icon {
        font-size: 22px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .location-col li {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    /* Футер и попап вынесены в общие стили - медиа-запросы удалены */
}

@media (max-width: 480px) {
    .header {
        padding: 25px 0;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .main-title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 15px;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .contact-phone {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .contact-phone a {
        font-size: 18px !important;
    }
    
    .social-logo a {
        font-size: 14px !important;
        line-height: 1.4;
    }
    
    .header-content > div:last-child a {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .addresses {
        padding: 25px 0;
    }
    
    .addresses h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .addresses .description {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .addresses-grid {
        gap: 15px;
        padding: 0 10px;
    }
    
    .address-column ul {
        font-size: 15px;
        line-height: 1.6;
    }
    

/* Модальное окно для увеличенного фото */
.slider-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.slider-modal.active {
    display: flex;
    opacity: 1;
}

.slider-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: modalIn 0.4s cubic-bezier(.4,2,.6,1) both;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes modalIn {
    from { transform: scale(0.8) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.slider-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    background: #fff;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    width: 40px; height: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.slider-modal-close:hover {
    background: #eee;
}

#sliderModalImg {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    #sliderModalImg { max-width: 98vw; max-height: 60vh; }
}

/* --- Фирменный минимализм: белый + синий --- */
/* --- Размытые шахматные SVG-фигуры в фоне --- */
.bg-chess {
  position: absolute;
  z-index: 0;
  opacity: 0.09;
  filter: blur(16px);
  pointer-events: none;
}

/* CHESS CLUB ... */
.social-logo a { text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* ==========================================
   FOOTER BAR - ОБЩИЕ СТИЛИ (для всех устройств)
   ========================================== */
.footer-bar,
.bottom-bar {
    background: #001133 !important;
    color: #fff !important;
    padding: 32px 0 18px 0 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px !important;
}

.footer-bar .social-links,
.bottom-bar .social-links {
    justify-content: center;
    gap: 32px;
    margin: 0 auto;
    margin-bottom: 10px;
    display: flex;
    visibility: visible;
    min-height: 38px;
    flex-wrap: wrap;
}

.footer-bar .social-link,
.bottom-bar .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-bar .social-link svg,
.footer-bar .social-link img,
.bottom-bar .social-link svg,
.bottom-bar .social-link img {
    color: #fff !important;
    fill: #fff !important;
    stroke: none !important;
    opacity: 0.92 !important;
    width: 38px !important;
    height: 38px !important;
    transition: opacity 0.2s, transform 0.2s;
    display: block;
}

/* Принудительно устанавливаем fill для всех path внутри SVG в футере */
.footer-bar .social-link svg path,
.bottom-bar .social-link svg path {
    fill: #fff !important;
    stroke: none !important;
}

.footer-bar .social-link svg circle,
.footer-bar .social-link svg ellipse,
.footer-bar .social-link svg rect,
.bottom-bar .social-link svg circle,
.bottom-bar .social-link svg ellipse,
.bottom-bar .social-link svg rect {
    fill: #fff !important;
    stroke: none !important;
}

.footer-bar .social-link:hover svg,
.footer-bar .social-link:hover img,
.bottom-bar .social-link:hover svg,
.bottom-bar .social-link:hover img {
    opacity: 1 !important;
    transform: scale(1.12);
}

/* --- Размытые шахматные SVG-фигуры в фоне --- */
.bg-chess, .bg-chess-bottom, .registration-bg-chess {
  position: absolute;
  z-index: 0 !important;
  pointer-events: none;
  filter: blur(16px);
}
.bg-chess { opacity: 0.09; }
.bg-chess-bottom { opacity: 0.13; }
.registration-bg-chess {
  z-index: 0 !important;
}

/* --- Цвет плейсхолдера в input --- */
.registration-form input::placeholder {
  color: #444;
  opacity: 1;
}

/* --- Иконки преимуществ: только синий контур --- */
.feature-icon svg, .feature-icon img {
  stroke: #2563eb !important;
  fill: none !important;
  color: #2563eb !important;
}

/* --- Современный блок контактов и адресов --- */
.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-phone-block, .contact-email-block {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-icon {
  font-size: 28px;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.location-col ul {
  list-style: none;
  padding: 0;
}
.location-col li {
  font-size: 18px;
  color: #2563eb;
  margin-bottom: 14px;
  display: block;
}
.location-col a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}
.location-col a:hover {
  color: #0033a0;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .locations-grid { 
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }
  
  .location-col li {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
}

/* ==========================================
   DIARY FLOATING BUTTON - ОБЩИЕ СТИЛИ (для всех устройств)
   ========================================== */
.diary-floating-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    background: #0033a0 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 51, 160, 0.4) !important;
    z-index: 10000 !important;
    white-space: nowrap !important;
    animation: fadeInUp 0.5s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.diary-floating-button:hover {
    background: #002266;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 160, 0.5);
    color: white;
}

.diary-floating-button:active {
    transform: translateY(-1px) scale(0.98);
    background: #001a4d;
}

.diary-floating-button .diary-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin: 0;
}

.diary-floating-button .diary-text {
    font-size: 14px;
    line-height: 1;
    display: inline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN - Только различия между мобильной и ПК
   ========================================== */

/* МОБИЛЬНАЯ ВЕРСИЯ - только то, что отличается от ПК */
@media (max-width: 768px) {
    /* Footer - уменьшаем отступы и размер иконок на мобильной */
    .footer-bar {
        padding: 24px 0 16px 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 16px !important;
    }
    
    /* Скрываем SVG фигуры после футера */
    .registration-bg-chess {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    html {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Футер должен быть в самом низу без пробелов */
    .footer-bar {
        margin-bottom: 0 !important;
        padding-bottom: 16px !important;
    }
    
    .footer-bar .social-links {
        gap: 24px;
        padding: 0 15px;
    }
    
    .footer-bar .social-link svg,
    .footer-bar .social-link img {
        width: 36px;
        height: 36px;
    }
    
    /* Diary button - немного уменьшаем на мобильной */
    .diary-floating-button {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .diary-floating-button .diary-icon {
        font-size: 18px;
    }
    
    .diary-floating-button .diary-text {
        font-size: 13px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .footer-bar {
        padding: 20px 0 14px 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer-bar .social-links {
        gap: 20px;
    }
    
    .diary-floating-button {
        bottom: 12px;
        right: 12px;
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
    }
}
