/* Основные стили и сброс */
:root {
    --primary-color: #2f90e0;
    --primary-dark: #2067a1;
    --secondary-color: #72959f;
    --accent-color: #f8c300;
    --text-color: #3a3a3b;
    --text-light: #111;
    --background-color: #f8fcfe;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    /*background: url("/img/backgroundfhd.jpg");*/
    line-height: 1.6;
    overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/backgroundfhd.jpg");
  opacity: 0.5; /* Only affects the pseudo-element */
  z-index: -1; /* Puts it behind the content */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.program-card {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid #e5dfd7;
}
/*h1 {
    font-size: 2.1rem;
    font-weight: 500;
    color: #3f2e1e;
    letter-spacing: -0.01em;
    border-left: 8px solid #b38b5f;
    padding-left: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
}*/
.lead {
    font-size: 1.2rem;
    background-color: #faf7f2;
    padding: 1.2rem 2rem;
    border-radius: 48px;
    color: #4d3e30;
    margin-bottom: 2rem;
    border: 1px dashed #dac09a;
    font-weight: 400;
}
/*h2 {
    font-size: 1.8rem;
    font-weight: 450;
    color: #573f2b;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e7d9ca;
    padding-bottom: 0.4rem;
}
h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #735e48;
    margin: 1.8rem 0 1rem 0;
}*/
.section-subhead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #7b5f42;
    margin: 1.5rem 0 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-subhead::before {
    content: "▍";
    font-size: 1.6rem;
    color: #b38b5f;
}
.theme-list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin: 1.2rem 0 1.8rem 0;
}
.theme-list li {
    background-color: #efebe6;
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    font-size: 1rem;
    border: 1px solid #d9cdbe;
    color: #3f3329;
}
.plan-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1.5rem;
}
.year-block {
    background: #fcf9f5;
    border-radius: 32px;
    padding: 1.6rem 2rem;
    border: 1px solid #e0d3c4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.year-title {
    font-size: 1.7rem;
    font-weight: 450;
    color: #5e4430;
    margin-bottom: 0.25rem;
}
.semester {
    margin-top: 1.5rem;
}
.semester h4 {
    font-weight: 600;
    font-size: 1.2rem;
    color: #86694c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dacbbd;
    padding-bottom: 5px;
    margin-bottom: 1rem;
}
.topic-list {
    list-style: none;
}
.topic-list li {
    padding: 0.4rem 0 0.4rem 1.8rem;
    position: relative;
    font-size: 1rem;
    color: #2c241e;
    line-height: 1.5;
}
.topic-list li::before {
    content: "●";
    color: #b7773c;
    font-weight: bold;
    position: absolute;
    left: 0.2rem;
    font-size: 1.2rem;
}
.topic-list li strong {
    font-weight: 600;
    color: #4d3522;
}
.topic-list em {
    color: #a7622b;
    font-style: italic;
    background: #fff0e0;
    padding: 0.1rem 0.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 0.5rem;
}
.badge-lesson {
    background-color: #d9c5b0;
    color: #2a1f16;
    border-radius: 30px;
    padding: 0.15rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.7rem;
    display: inline-block;
}
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, #c6ad8f, transparent);
    margin: 2rem 0 1rem 0;
}
.note {
    background-color: #efe5da;
    border-radius: 20px;
    padding: 0.8rem 2rem;
    color: #534434;
    font-style: italic;
    display: inline-block;
    margin-top: 1rem;
}
.test-mark {
    background-color: #d4c1ae;
    color: #1e1610;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 0.5rem;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .program-card { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
    .year-block { padding: 1rem 1.2rem; }
}
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary-color);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.about-section{
    /*padding-top: 150px;*/
}
.logo-subtext {
    font-size: 0.8rem;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-inner ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-inner a {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-menu-inner a.active {
    color: var(--primary-color);
}

.mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-contacts a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Герой секция */
.hero-section {
    padding: 150px 0 80px;
    /*background: linear-gradient(135deg, #f8fcfe 0%, #e6f2ff 100%);*/
    /*background: url("/img/backgroundfhd.jpg");*/
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
}

.image-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.image-frame:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(47, 144, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

/* Курсы */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-features {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

/* Процесс обучения */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* О преподавателе */
.about-inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Лицензии */

.licenses-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 50px;
    scrollbar-width: thin;
}

.license-item {
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.license-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.license-item p {
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

/* FAQ */
.faq-list {
    max-width: 1200px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Контакты и форма */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 144, 224, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-notice {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 20px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.success-message i {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(47, 144, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#map {
    width: 100%;
    height: 100%;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-nav h4,
.footer-contacts h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h4:after,
.footer-contacts h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #bdc3c7;
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-phone,
.footer-email {
    display: block;
    color: #bdc3c7;
}

.footer-phone:hover,
.footer-email:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

/* Кнопка "Наверх" */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-inner {
        flex-direction: column;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .advantages-grid,
    .courses-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav h4:after,
    .footer-contacts h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}