/* CSS Variables */
:root {
    --primary: #16a085;
    --primary-dark: #0f7060;
    --primary-light: #1abc9c;
    --primary-pale: #e8f8f5;
    --accent: #f39c12;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.08);
    --radius: 0;
    --radius-lg: 0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 18px; line-height: 1.6; color: var(--text-dark); background: var(--bg-light); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header { background: var(--bg-white); box-shadow: 0 2px 10px var(--shadow); position: sticky; top: 0; z-index: 1000; }

/* Header brand wrapper */
.header-brand {
    display: flex;
    float: left;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: block; float: left; padding-left: 15px; }
.logo h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.1; }
.logo p { font-size: 0.9rem; color: var(--text-gray); margin: 0; font-weight: 600; line-height: 1.2; }
.nav { display: flex; gap: 8px; }
.nav a { 
    color: var(--text-dark); 
    font-weight: 700; 
    font-size: 1.1rem; 
    padding: 8px 14px; 
    position: relative;
    transition: all 0.3s ease;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav a:hover { 
    color: var(--primary); 
}
.nav a:hover::after {
    transform: scaleX(1);
}
.lang-switch a { padding: 6px 12px; border: 2px solid var(--primary); font-weight: 700; font-size: 1rem; }
.lang-switch a:hover { background: var(--primary); color: white; }
.section { padding: 60px 0; }
.section h2 { font-size: 2.4rem; text-align: center; margin-bottom: 40px; color: var(--text-dark); font-weight: 800; }
.hero { background: linear-gradient(135deg, var(--primary-pale) 0%, var(--bg-white) 100%); padding: 60px 0; }
.hero .container { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.hero-content h2 { font-size: 2.8rem; margin-bottom: 20px; text-align: left; color: var(--text-dark); font-weight: 800; }
.hero-content p { font-size: 1.1rem; margin-bottom: 16px; }
.quote { font-style: italic; color: var(--primary); font-weight: 500; margin-bottom: 24px; }
.hero-photo img { border: 3px solid var(--primary); box-shadow: 10px 10px 15px rgba(128,128,128,0.45); }
.btn { display: inline-block; background: var(--primary); color: white; padding: 16px 32px; border-radius: var(--radius); font-weight: 700; font-size: 1.2rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,160,133,0.3); }
.btn-outline { display: inline-block; background: transparent; color: var(--primary); padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; border: 2px solid var(--primary); transition: all 0.2s; }
.btn-outline:hover { background: var(--primary); color: white; }
.about { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; }
.status { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.status span { background: var(--primary-pale); color: var(--primary-dark); padding: 8px 16px; font-size: 1rem; font-weight: 700; }
.certificates h3 { margin-bottom: 16px; font-size: 1.2rem; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cert-thumb { height: 120px; object-fit: contain; background: white; cursor: pointer; transition: transform 0.2s; box-shadow: 0 2px 8px var(--shadow); }
.cert-thumb:hover { transform: scale(1.05); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.price-card { background: var(--bg-white); padding: 30px; border-radius: var(--radius-lg); box-shadow: 0 4px 20px var(--shadow); text-align: center; border: 2px solid transparent; transition: all 0.3s; display: flex; flex-direction: column; min-height: 320px; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--shadow); }
.price-card.featured { border-color: var(--primary); position: relative; }
.price-card.featured::before { content: 'Популярно'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 16px; font-size: 0.8rem; font-weight: 600; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-gray); }
.duration { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 16px; }
.price-card ul { text-align: left; margin-bottom: 20px; flex: 1; }
.price-card li { padding: 6px 0; border-bottom: 1px solid var(--bg-light); font-size: 0.95rem; }
.price-card li:last-child { border-bottom: none; }
.price-card .btn, .price-card .btn-outline { margin-top: auto; }
.sessions { background: var(--primary-pale); }
.section-desc { text-align: center; color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.sessions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.session-item { background: var(--bg-white); padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 600; font-size: 1.1rem; box-shadow: 0 2px 8px var(--shadow); transition: all 0.2s; }
.session-item:hover { background: var(--primary); color: white; transform: scale(1.03); }
.course { background: var(--bg-white); }
.course .pricing-grid { max-width: 900px; margin: 0 auto; }
.faq-list { max-width: 800px; margin: 0 auto; }
details { background: var(--bg-white); margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px var(--shadow); }
summary { padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
details[open] summary::after { content: '-'; }
.answer { padding: 0 24px 20px; line-height: 1.7; }
.answer p { margin-bottom: 12px; }
.reviews { background: var(--primary-pale); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.review-card { background: var(--bg-white); padding: 24px; border-radius: var(--radius-lg); box-shadow: 0 4px 16px var(--shadow); }
.review-card p { font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.review-card .author { font-weight: 600; color: var(--primary); font-style: normal; }
.social { background: var(--bg-white); }
.social-widgets { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.vk-widget, .ok-widget { min-width: 280px; }
.contact { background: var(--primary-pale); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { margin-bottom: 20px; font-size: 1.3rem; }
.contact-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.contact-item strong { color: var(--primary); margin-right: 8px; }
.note { margin-top: 20px; color: var(--text-gray); font-size: 0.95rem; }
.contact-form { background: var(--bg-white); padding: 30px; border-radius: var(--radius-lg); box-shadow: 0 4px 20px var(--shadow); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 16px; margin-bottom: 16px; border: 2px solid var(--border); font-size: 1.1rem; font-family: inherit; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; }
.flyers { background: var(--bg-white); }
.flyers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flyer-card { height: 280px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px var(--shadow); cursor: pointer; transition: transform 0.2s; }
.flyer-card:hover { transform: scale(1.02); }
.flyer-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer { background: var(--text-dark); color: white; padding: 40px 0; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo h3 { font-size: 1.3rem; margin-bottom: 4px; }
.footer-logo p { color: var(--text-gray); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--primary-light); }
.copyright { color: var(--text-gray); font-size: 0.85rem; }
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
@media (max-width: 992px) {
    .flyers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    
/* Header brand wrapper */
.header-brand {
    display: flex;
    align-items: center;
}
.header .container { flex-wrap: wrap; height: auto; padding: 12px 20px; }
    .nav { order: 3; width: 100%; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
    .nav a { font-size: 0.95rem; padding: 6px 10px; font-weight: 700; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-photo { order: -1; }
    .hero-content h2 { text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .social-widgets { flex-direction: column; align-items: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .flyers-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .section h2 { font-size: 1.6rem; }
    .hero-content h2 { font-size: 1.6rem; }
    .price { font-size: 2rem; }
}
/* Service message */
.service-message { background: var(--primary-pale); padding: 20px; border-radius: var(--radius); margin-top: 20px; border-left: 4px solid var(--primary); }
.service-message p { font-size: 1.05rem; margin-bottom: 8px; }

/* Course plan */
.course-plan { margin-top: 20px; text-align: left; }
.course-plan summary { padding: 12px 20px; background: var(--primary-pale); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.course-plan .answer { padding: 16px 20px; background: var(--bg-white); margin-top: 8px; border-radius: var(--radius); }
.course-plan .answer p { font-weight: 600; margin: 16px 0 8px; }
.course-plan .answer ul { margin-left: 20px; }
.course-plan .answer li { margin: 4px 0; font-size: 0.95rem; }

/* Sessions grid fix */
.sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.session-item { background: var(--bg-white); padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 600; font-size: 1.1rem; box-shadow: 0 2px 8px var(--shadow); transition: all 0.2s; cursor: pointer; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.session-item:hover { background: var(--primary); color: white; transform: scale(1.03); }

/* Social widgets equal size */
.social-widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; justify-items: center; }
.vk-widget, .ok-widget { width: 100%; max-width: 350px; min-height: 300px; }

/* Carousel styles */
.carousel { display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; width: 100%; }
.carousel-track .review-card { flex: 0 0 100%; min-width: 100%; padding: 0 10px; }
.carousel-btn { background: var(--primary); color: white; border: none; width: 40px; height: 40px; font-size: 18px; cursor: pointer; z-index: 10; transition: all 0.2s; }
.carousel-btn:hover { background: var(--primary-dark); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots .dot { width: 10px; height: 10px; background: var(--border); cursor: pointer; }
.carousel-dots .dot.active { background: var(--primary); }

/* Contact form removed - already styled above */

/* Responsive fix */
@media (max-width: 768px) {
    .social-widgets { grid-template-columns: 1fr; }
    .carousel-track .review-card { flex: 0 0 100%; }
    .sessions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sessions-grid { grid-template-columns: 1fr 1fr; }
}


/* Show more button for FAQ */
.show-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.show-more-btn:hover {
    background: var(--primary-dark);
}

/* Remove carousel, use grid instead */
.carousel { display: none; }
.carousel-btn { display: none; }
.carousel-dots { display: none; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.reviews-grid .review-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px var(--shadow);
}
.reviews-grid .review-card p {
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}
.reviews-grid .review-card .author {
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}


/* Hero contacts */
.hero-contacts-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(22,160,133,0.1);
    border: 1px solid rgba(22,160,133,0.2);
}
.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}
.hero-contact-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
}
.hero-contacts a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.hero-contacts a:hover {
    color: var(--primary);
}

/* Hero badges - vertical */
.hero-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}
.hero-badges .badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22,160,133,0.3);
}


/* Header logo image */
.header-logo {
    display: flex;
    align-items: center;
}
.header-logo-img {
    width: 50px;
    height: 50px;
    /* border-radius: 50%; */
    object-fit: cover;
    /* margin-right: 12px; */
    /* border: 2px solid var(--primary); */
}
