@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');


#welcome {
    position: relative;
    margin: 0 var(--left-right-offset);
    border-radius: var(--borderRadius);
    padding: 0;
    /* приветственная картинка по центру, 
    по высоте ограничиваем для экранов пошире, чтобы фотка вся влезала
    по ширине не больше чем весь экран минус отступы */
    aspect-ratio: 2/1;
    max-height: 82vh;
    max-width: calc(100vw - var(--left-right-offset)*2);
    margin: auto;
    background-image: url("../img/welcome_back.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    

    /* компенсация затемнения */
    /* затемнение фона в темной теме */
    & .dark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0); /* Прозрачный фон по умолчанию */
        transition: background-color 0.3s ease;
        border-radius: var(--borderRadius);

    }

    @media (prefers-color-scheme: dark) {
        /* фон светлее на 35% чем --color-back */
        & {
            background-color: #313131;
        }
        /* затемняющее полотно только в темной теме, на 35% */
        .dark {
            background: rgba(0, 0, 0, 0.35);
        }
        
    }


    & .text-container {
        position: absolute;
        top: 15%;
        right: 26%;
        transform: translateX(-50%);
    }
    
    @media (max-width: 880px) { 
        & .group {
            top: 50%
        }
    }
    
}

#training {
    /* height: ; */
    background-image: url("../img/training.webp");
    background-position: 50% 30%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    & h1 {
        font-size: 6rem;
        @media (max-width: 550px) {
            font-size: 15vw;
            
        }
    }
    & h2 {
        font-weight: 400;
    }

    & details {
        margin-top: 10px;
        &:first-of-type {
            margin-top: 50px;
        }

        & summary {
            list-style: none;
            
            cursor: pointer;
            font-size: 2rem;
            width: fit-content;
            border-radius: var(--borderRadius);
    
            user-select: none;
            width: 200px;
            height: 75px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;

            
            &:hover {
                transform: scale(1.2);
            }
            &::-webkit-details-marker {
                display: none;
            }
        
        }
        & p {
            font-size: 1.75rem;
            line-height: 2.5rem;
            background: rgba(180, 180, 180, 0.25);
            backdrop-filter: blur( 20px );
            -webkit-backdrop-filter: blur( 20px );
            border: 1px solid rgba( 255, 255, 255, 0.18 );
            padding: 20px 30px 25px;
            margin: 10px 0 30px;
            border-radius: var(--borderRadius);
        }
    }
}


#service {
    & .twoElemLine {

        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 50px;

        @media (max-width: 800px) {
            & {
                flex-direction: column;
            }
        }

        /* применяется к обоим блокам */
        & > * {
            border-radius: var(--borderRadius);
            padding: 0 30px 30px;
            width: 100%;
            @media (max-width: 333px) {
                & {
                    padding: 5px;
                }
            }

            & h2 {
                text-align: center;
            }
            
            & ul {
                font-family: "Montserrat", sans-serif;

                list-style-type: none;
                padding: 0;
                & li {
                    margin-top: 30px;
                    font-size: 1.5rem;
                    text-align: left;
                }
            }
        }

        & .plus {
            background-color: #eee;
            color: #202020;

            /* сами плюсики */
            & span {
                font-weight: 700;
                font-size: 2.5rem;
                color: var(--color-red);
                vertical-align: middle;
            }
        }
        
        & .price {
            background-image: var(--nav_gradient);
            color: var(--color-50proc);
            font-weight: 100;
            overflow-x: scroll;

            & table {
                border-collapse: collapse;
                margin: auto;
                overflow: hidden;

                & tr {
                    & td {
                        padding: 2px 10px;
                        /* линия между ячейками */
                        &:nth-child(1) {
                            border-right: 0.5px solid var(--color-25proc);
                        }
                    }

                    &:not(:last-child) td {
                        border-bottom: 0.5px solid var(--color-25proc);

                    }
                }
            }
        }
    }
}

/*
#contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.column-contacts {
    flex: 1;
    min-width: 300px;
}

.column-form {
    flex: 1;
    min-width: 300px;
}

.items-maps, .items-contacts {
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.items-maps:hover, .items-contacts:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.container-items {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 45%;
}

.ya-btn a, .gis-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.ya-btn a {
    background: #EA4335;
}

.gis-btn a {
    background: #008000;
}

.ya-btn a:hover {
    background: #CC0000;
}

.gis-btn a:hover {
    background: #006400;
}

.email a, .phone a, .point a, .tg a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    margin-bottom: 10px;
    border-radius: 8px;
}

.point a {
    background: #5F6368;
}

.email a {
    background: #EA4335;
}

.phone a {
    background: #34A853;
}

.tg a {
    background: #0088CC;
}

.point a:hover, .email a:hover, .phone a:hover, .tg a:hover {
    opacity: 0.9;
}

.form {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 22px;
}

.form input, .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form input:focus, .form textarea:focus {
    border-color: var(--form-focus);
    outline: none;
}

.form button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form button:hover {
    background: var(--button-hover);
}

@media (max-width: 768px) {
    #contacts {
        flex-direction: column;
    }
    
    .container-items {
        width: 100%;
    }
}


#contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Roboto', sans-serif;
}

.column-contacts {
    flex: 1;
    min-width: 300px;
}

.column-form {
    flex: 1;
    min-width: 300px;
}
*/
/* Стили для карточек контактов */
/*.items-maps, .items-contacts {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.items-maps:hover, .items-address:hover, .items-contacts:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
*/
/* Кнопки карт (Яндекс, 2ГИС) */
/*
.container-items {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 45%;
}


.btn {
    cursor: pointer;
    transition: all 0.3s;
}

.ya-btn a, .gis-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.ya-btn a {
    background: #EA4335; 
}

.gis-btn a {
    background: #008000; 
}

.ya-btn a:hover {
    background: #CC0000;
}

.gis-btn a:hover {
    background: #33450e;
}
*/
/* Адрес */
/*
.items-address p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}
*/
/* Почта и телефон */
/*
.email a, .phone a, .point a, .tg a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    margin-bottom: 10px;
}
#tg:hover, .tg:hover{
    color:#a63133 !important;
}

.email a {
    background: #EA4335; 
}

.phone a {
    background: #34A853; 
}

.email a:hover, .phone a:hover {
    opacity: 0.9;
}



.items-telegram a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--color-red) !important; 
    text-decoration: none;
    color: white;
}

.items-telegram .text-tg:hover, .tg-icon:hover {
 color:#ffffff !important;
}

*/
/* Форма обратной связи */
/*
.form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
}

.form input, .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form input:focus, .form textarea:focus {
    border-color: #0088CC;
    outline: none;
}

.form button {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form button:hover {
    background: #EA4335;
}
*/

#contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.column-contacts {
    flex: 1;
    min-width: 300px;
}

.column-form {
    flex: 1;
    min-width: 300px;
}
.items-maps {
    display: flex;
    justify-content: space-between;
}
.items-maps, .items-contacts {
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.items-maps:hover, .items-contacts:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.container-items {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 45%;
}

.ya-btn a, .gis-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.ya-btn a {
    background: #EA4335;
}

.gis-btn a {
    background: #008000;
}

.ya-btn a:hover {
    background: #CC0000;
}

.gis-btn a:hover {
    background: #006400;
}

.email a, .phone a, .point a, .tg a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    margin-bottom: 10px;
    border-radius: 8px;
}

.point a {
    background: #5F6368;
}

.email a {
    background: #EA4335;
}

.phone a {
    background: #34A853;
}

.tg a {
    background: #0088CC;
}

.point a:hover, .email a:hover, .phone a:hover, .tg a:hover {
    opacity: 0.9;
}

.form {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 22px;
}

.form input, .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form input:focus, .form textarea:focus {
    border-color: var(--form-focus);
    outline: none;
}

.form button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--accent-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form button:hover {
    background: var(--button-hover);
}
.footer-text p{
    font-size:14px;
    line-height: normal;
    color: var(--color-25proc);
}

@media (max-width: 768px) {
    #contacts {
        flex-direction: column;
    }
    
    .container-items {
        width: 100%;
    }
}


/* Адаптивность */
@media (max-width: 768px) {
    #contacts {
        flex-direction: column;
    }
    .df {
        flex-direction: column;
    }
}