/*
Theme Name: Savaniuk Theme V45 Text Update
Theme URI: https://savaniukgroup.by
Author: Savaniuk Group
Description: Обновлены описания всех курсов.
Version: 6.6
License: GNU General Public License v2 or later
Text Domain: savaniuk-theme
*/

:root {
    --bg-body: #ffffff;
    --bg-secondary: #f4f5f7;
    --text-main: #262626; 
    --text-secondary: #505050;
    --accent: #1f1f1f; 
    --border-light: #eaeaea;
    --placeholder-bg: #eef0f2;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

h1, h2, h3, h4 { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-main); word-wrap: break-word; }
h1 { font-size: 4.5em; line-height: 1.05; margin-bottom: 24px; }
h2 { font-size: 2.5em; text-align: center; margin-bottom: 50px; position: relative; padding-bottom: 20px; }
h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--accent); }
h3 { font-size: 1.5em; margin-bottom: 15px; }
h4 { font-size: 1.25em; margin-bottom: 10px; text-transform: none; font-weight: 700; }
p { margin-top: 0; margin-bottom: 20px; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.section-description { max-width: 800px; margin: 0 auto 70px; text-align: center; font-size: 1.125em; }

/* КНОПКА */
.cta-button {
    display: inline-block; padding: 16px 40px; background-color: var(--bg-secondary); color: var(--text-main);
    border: 2px solid var(--accent); font-family: 'DM Sans', sans-serif; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; font-size: 0.9em; cursor: pointer; transition: var(--transition); margin-top: 20px;
}
.cta-button:hover { background-color: var(--accent); border-color: var(--accent); color: var(--bg-secondary); }

/* HEADER */
.site-header { padding: 15px 0; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; top: 0; left: 0; width: 100%; z-index: 1100; border-bottom: 1px solid rgba(0,0,0,0.05); height: var(--header-height); display: flex; align-items: center; }
.header-content { display: flex; align-items: center; justify-content: space-between; position: relative; width: 100%; }
.header-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5em; display: flex; align-items: center; gap: 10px; color: var(--accent); z-index: 2; line-height: 1; text-decoration: none; }
.header-logo img { height: 32px; width: auto; object-fit: contain; }
.header-nav { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; }
.header-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.header-nav ul li a { font-size: 0.95em; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); position: relative; }
.header-nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent); transition: width 0.3s; }
.header-nav ul li a:hover::after { width: 100%; }
.header-contacts { display: flex; align-items: center; gap: 25px; z-index: 2; }
.header-phone { font-weight: 700; font-size: 0.9em; white-space: nowrap; }
.language-selector { font-weight: 700; font-size: 0.9em; cursor: pointer; }
.header-contacts .social-icons { display: flex; gap: 10px; }
.header-contacts .social-icons a { width: 36px; height: 36px; border-radius: 50%; background-color: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: var(--transition); }
.header-contacts .social-icons a:hover { background-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* --- СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ --- */
.page-header-section { 
    background-color: var(--bg-secondary); 
    padding: 80px 0 60px; 
    margin-bottom: 0; 
    text-align: center; 
}
.page-header-section h1 { font-size: 3em; margin-bottom: 0; position: relative; z-index: 2; }
.page-content-wrapper { max-width: 1240px; margin: 0 auto 100px; padding: 0 24px; }
.page-content-wrapper h2 { font-size: 1.8em; text-align: left; margin-top: 50px; margin-bottom: 20px; border-bottom: none; padding-bottom: 0; }
.page-content-wrapper h2::after { display: none; }

/* СТРАНИЦА СОТРУДНИЧЕСТВА */
.cooperation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cooperation-text p { font-size: 1.05em; margin-bottom: 25px; }
.cooperation-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-card); object-fit: cover; aspect-ratio: 7 / 8; }

/* --- СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ ШАПКИ КОНТАКТОВ --- */
.page-header-section.contacts-header { background-color: #f3f0ea; padding: 0px 0; }
.contacts-header .container { background-image: url('assets/img/map.png'); background-position: center; background-repeat: no-repeat; background-size: 100% auto; width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }

/* СТРАНИЦА КОНТАКТЫ */
.contact-page-intro { text-align: center; max-width: 900px; margin: 0 auto 60px; font-size: 1.1em; color: var(--text-secondary); }
.contact-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 80px; }
.contact-block { background: #fff; padding: 30px; border: 1px solid var(--border-light); text-align: center; transition: var(--transition); box-shadow: var(--shadow-card); }
.contact-block:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.contact-block h4 { color: var(--accent); margin-bottom: 20px; border-bottom: 3px solid var(--accent); padding-bottom: 10px; display: inline-block; }
.contact-block p { margin-bottom: 10px; font-weight: 500; }

.map-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 0; }
.google-map-container { width: 100%; height: 100%; min-height: 450px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-card); }
.google-map-iframe { width: 100%; height: 100%; border: 0; }
.contact-page-form-container { width: 100%; }

/* --- СТРАНИЦА КУРСА --- */
.course-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: start;
    margin-bottom: 0;
}
.course-detail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}
.course-description p { margin-bottom: 20px; font-size: 1.05em; color: var(--text-secondary); }

/* HERO & SECTIONS */
.hero-section { height: calc(100vh - var(--header-height)); min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; position: relative; overflow: hidden; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 0; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1; transform: translateX(-50%) translateY(-50%); background-size: cover; transition: 1s opacity; }
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 { color: var(--bg-secondary); }
.hero-section p { font-size: 1.25em; max-width: 600px; margin: 0 auto 30px; color: var(--bg-secondary); }

#about { background-color: var(--bg-body); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.about-card { text-align: center; padding: 30px; background: #fff; }

#courses { background-color: var(--bg-secondary); padding-top: 70px; margin-top: 0; }
.level-title { text-align: center; font-size: 1.8em; font-family: 'Poppins', sans-serif; text-transform: uppercase; margin: 80px 0 40px; color: var(--text-main); opacity: 0.9; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.course-card { background: #fff; border: 1px solid #ddd; box-shadow: var(--shadow-card); transition: var(--transition); height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.course-card-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.course-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.course-card h4 { font-size: 1.3em; margin-bottom: 15px; color: var(--text-main); }
.course-card p { font-size: 0.95em; margin-bottom: 20px; flex-grow: 1; }

#why-us { background-color: var(--bg-body); }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-us-item { position: relative; padding-left: 30px; margin-bottom: 40px; border-left: 3px solid var(--border-light); transition: var(--transition); }
.why-us-item:hover { border-left-color: var(--accent); }
.why-us-item h4 { font-size: 1.4em; margin-bottom: 8px; }
.why-us-image { width: 100%; height: 400px; border-radius: 4px; overflow: hidden; }
.why-us-image img { width: 100%; height: 100%; object-fit: cover; }

#reviews { background-color: var(--bg-secondary); }
.review-card { background: #fff; padding: 40px; box-shadow: var(--shadow-card); transition: var(--transition); }
.review-card:hover { transform: translateY(-5px); }
.review-header { display: flex; align-items: center; margin-bottom: 20px; }
.review-header h4 { margin: 0; font-size: 1.1em; flex-grow: 1; }
.review-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9em; }
.review-card p { font-style: italic; font-size: 1.05em; line-height: 1.6; color: var(--text-secondary); }

#contact { background-color: var(--bg-body); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-top: 50px; }
.contact-info { padding-right: 30px; }

/* --- CONTACT FORM 7 --- */
.wpcf7-form {
    background: #fff; padding: 40px 40px 10px 40px; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); display: flex; flex-direction: column; height: 100%;
}
.wpcf7-response-output:empty, .screen-reader-response { display: none !important; }
.wpcf7-form.sent .wpcf7-response-output, .wpcf7-form.invalid .wpcf7-response-output { display: block !important; margin: 15px 0 0 0 !important; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]), .wpcf7 textarea, .wpcf7 select {
    width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; background-color: #fcfcfc; color: var(--text-main); font-family: 'DM Sans', sans-serif; font-size: 1em; border-radius: 0; box-sizing: border-box; outline: none; transition: var(--transition);
}
.wpcf7 select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 20px center; background-size: 16px; padding-right: 45px; cursor: pointer;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--accent); background-color: #fff; }

/* ЧЕКБОКС */
.form-agreement { margin-bottom: 25px; }
.form-agreement label { display: flex !important; align-items: center !important; gap: 12px !important; cursor: pointer; width: 100%; margin: 0 !important; }
.form-agreement .wpcf7-form-control-wrap, .form-agreement .wpcf7-acceptance, .form-agreement .wpcf7-list-item { display: contents !important; }
.form-agreement input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0 !important; padding: 0 !important; border: 1px solid #ddd; background-color: #fcfcfc; flex-shrink: 0; display: block; position: relative; top: 0; }
.form-agreement .wpcf7-list-item-label { display: inline-block !important; font-size: 14px !important; line-height: 1.4 !important; color: #505050 !important; margin: 0 !important; padding: 0 !important; visibility: visible !important; }
.form-agreement a { color: var(--text-main); text-decoration: underline; }
.form-agreement a:hover { text-decoration: none; }

/* КНОПКА */
.wpcf7 input[type="submit"] { width: 100%; background-color: var(--accent); color: #ffffff; border: 2px solid var(--accent); font-family: 'DM Sans', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; padding: 16px 0; cursor: pointer; transition: var(--transition); margin: 0; -webkit-appearance: none; display: block; }
.wpcf7 input[type="submit"]:hover { background-color: #fff; color: var(--accent); }

/* FOOTER & MOBILE */
.site-footer { background-color: var(--accent); color: #fff; padding: 80px 0 40px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-content h4 { color: #fff; font-size: 1.1em; margin-bottom: 25px; letter-spacing: 0.05em; opacity: 0.9; }
.footer-content p, .footer-content a { color: #cccccc; font-size: 0.95em; transition: var(--transition); display: block; margin-bottom: 10px; text-decoration: none; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-content a:hover { color: #fff; }
.footer-social .social-icons { display: flex; gap: 15px; }
.footer-social .social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: #fff; margin: 0; transition: var(--transition); }
.footer-social .social-icons a:hover { background-color: #fff; color: var(--accent); }
.footer-copyright { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; }
.burger-menu-button { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1100; }
.burger-menu-button span { width: 100%; height: 2px; background-color: var(--accent); transition: var(--transition); }
.burger-menu-button.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu-button.active span:nth-child(2) { opacity: 0; }
.burger-menu-button.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #fff; z-index: 1050; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.mobile-nav.active { transform: translateY(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-nav ul li { margin: 15px 0; }
.mobile-nav ul li a { font-size: 1.5em; font-family: 'Poppins', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--text-main); }
.mobile-nav .mobile-phone { margin-top: 20px; font-weight: 700; font-size: 1.2em; color: var(--text-main); }
.mobile-social-icons { display: flex; gap: 20px; margin-top: 30px; }
.mobile-social-icons a { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--text-main); }
@media (max-width: 992px) {
    h1 { font-size: 3em; } h2 { font-size: 2em; } .header-nav { display: none; } .header-contacts { display: flex; margin-left: auto; margin-right: 20px; } .header-contacts .social-icons { display: none; } .header-phone { display: none; } .burger-menu-button { display: flex; } .header-content { padding: 0 24px; } .grid-3 { grid-template-columns: 1fr; gap: 30px; } .contact-grid { grid-template-columns: 1fr; } .why-us-grid { grid-template-columns: 1fr; } .why-us-image { height: 250px; order: -1; } .footer-content { flex-direction: column; }
    .cooperation-grid { grid-template-columns: 1fr; } .cooperation-image { order: -1; }
    .contact-page-grid { grid-template-columns: 1fr; }
    
    /* Адаптив для сеток */
    .map-form-grid { grid-template-columns: 1fr; }
    .google-map-container { height: 400px; }
    .contacts-header { padding: 80px 0; } 
    .course-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    h1 { font-size: 2.5em; } section { padding: 60px 0; } .container { padding: 0 20px; } .courses-grid { grid-template-columns: 1fr; } .header-phone { display: none; }
}
