/*
Theme Name: Savaniuk Theme V55
Theme URI: https://savaniukgroup.by
Author: Savaniuk Group
Description: Тема с интеграцией выпадающего меню языков Polylang.
Version: 5.5
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;
}

/* Стили для флагов */
.emoji-font {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

/* КНОПКА */
.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: 20px;
    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;
}

/* POLYLANG CUSTOM DROPDOWN */
.custom-lang-selector {
    position: relative;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    z-index: 1000;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-main);
    text-transform: uppercase;
    user-select: none;
    padding: 5px 0;
}

.current-lang i {
    font-size: 0.8em;
    transition: transform 0.3s;
    color: var(--accent);
}

.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-hover);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 65px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.lang-dropdown-list::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.custom-lang-selector:hover .lang-dropdown-list,
.custom-lang-selector.active .lang-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-lang-selector:hover .current-lang i,
.custom-lang-selector.active .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown-list li {
    text-align: center;
}

.lang-dropdown-list a {
    display: block;
    padding: 6px 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9em;
}

.lang-dropdown-list a:hover {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

.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-body);
}

.review-card {
    background: #fff;
    border: 1px solid #ddd;
    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-secondary);
}

.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;
    margin-left: 20px;
}

.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);
}

/* Gallery Section */
#gallery {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-toggle-container {
    text-align: center;
    margin-top: 30px;
}

.gallery-toggle-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-toggle-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-toggle-btn i {
    transition: transform 0.4s ease;
}

.gallery-grid.expanded + .gallery-toggle-container .gallery-toggle-btn i {
    transform: rotate(180deg);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.lightbox-close span {
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transition: transform 0.3s;
}

.lightbox-close span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.lightbox-close span:nth-child(2) {
    opacity: 0;
}

.lightbox-close span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .header-nav {
        display: none;
    }

    .header-contacts {
        display: flex;
        margin-left: auto;
    }

    .header-contacts .social-icons {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .burger-menu-button {
        display: flex;
    }

    .header-content {
        padding: 0 24px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2em;
    }

    .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: auto;
        aspect-ratio: 16 / 9;
        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,
    .page-header-section h1 {
        font-size: 1.8em;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .header-phone {
        display: none;
    }
}