/*
Modern Design - MOSENGLISH 2026
Clean version — no duplicates
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');
@import url(../css/icons.css);

:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52D5;
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #3F3D9E 100%);
    --secondary: #FF6584;
    --bg-light: #f8f9fe;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 12px rgba(108, 99, 255, 0.10);
    --shadow-md: 0 4px 24px rgba(108, 99, 255, 0.15);
    --shadow-hover: 0 16px 56px rgba(108, 99, 255, 0.30);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-top: 70px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

/* ===== ШРИФТЫ ===== */
h1, h2, h3, h4, h5, h6,
.slogan,
article.about p.description strong,
a h3,
.additionally h4 {
    font-family: 'Playfair Display', 'Inter', serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.slogan {
    font-style: italic !important;
}

body, p, li, a, .description, .review-list p, footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Контейнер */
#page-wrapper, .wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА (FIXED) ===== */
header {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== ЛОГОТИП ===== */
#logo {
    display: flex;
    align-items: center;
    gap: 12px;
    float: left;
    cursor: pointer;
}

.logo-icon {
    display: inline-block;
    flex-shrink: 0;
}

.logo-icon svg {
    display: block;
    transition: var(--transition);
}

#logo:hover .logo-icon svg {
    transform: rotate(-6deg) scale(1.05);
    filter: drop-shadow(0 6px 24px rgba(108, 99, 255, 0.5));
}

.logo-text {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    display: inline-block;
    transition: var(--transition);
}

.logo-text span:first-child {
    color: var(--primary);
    transition: var(--transition);
}

.logo-text span:last-child {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

#logo:hover .logo-text span:first-child {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#logo:hover .logo-text span:last-child {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    background: none;
}

#logo:hover .logo-text {
    transform: scale(1.02);
}

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 2px;
    -webkit-text-fill-color: var(--text-light);
    display: block;
    clear: both;
    font-family: 'Inter', sans-serif !important;
}

/* ===== НАВИГАЦИЯ ===== */
#navigation {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

#navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

#navigation ul li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
}

#navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

#navigation ul li a:hover::after {
    width: 60%;
}

#navigation ul li a:hover {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.06);
}

#navigation ul li a.active,
ul.home li.home a,
ul.about li.about a,
ul.programs li.programs a,
ul.methodics li.methodics a,
ul.contacts li.contacts a {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
}

/* ===== НОМЕР ТЕЛЕФОНА ===== */
.header-phone {
    float: right;
    margin-left: 20px;
    padding: 8px 20px;
    background: var(--primary-gradient);
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.25);
}

.header-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.45);
}

.header-phone a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif !important;
}

.header-phone a:hover {
    color: white;
}

/* ===== КОНТЕНТ ===== */
#content {
    padding: 20px 0 60px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

#content .wrapper {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

/* ===== СЕТКА ===== */
.span-3 { width: 33.333%; float: left; padding: 15px; }
.span-2 { width: 50%; float: left; padding: 15px; }
.span-1 { width: 100%; float: left; padding: 15px; }

/* ===== БЛОК "ОБО МНЕ" + ОТЗЫВЫ ===== */
.additionally {
    min-height: 330px;
    overflow: hidden;
}

.additionally .span-2 {
    width: 50% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding: 10px 25px 10px 10px !important;
}

.additionally .span-2:last-child {
    padding: 10px 10px 10px 25px !important;
}

.additionally .span-2:nth-child(odd) img {
    float: left;
    border-right: 10px solid transparent;
    max-width: 100%;
    border-radius: 12px;
}

.additionally h4 {
    color: var(--primary);
    font-size: 22px;
    font-family: 'Playfair Display', serif !important;
    padding: 0;
    margin: 0 0 15px;
}

.additionally .description {
    font-size: 18px;
    line-height: 30px;
    margin-top: -5px;
    word-wrap: break-word;
}

.additionally a {
    color: var(--primary);
}

/* ===== КАРТОЧКИ ===== */
.span-3 article,
.span-2 article,
.span-1 article {
    background: #ffffff;
    border: 1px solid rgba(108, 99, 255, 0.08) !important;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.span-3 article::after,
.span-2 article::after,
.span-1 article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.span-3 article:hover::after,
.span-2 article:hover::after,
.span-1 article:hover::after {
    opacity: 1;
}

.span-3 article:hover,
.span-2 article:hover {
    box-shadow: 0 12px 48px rgba(108, 99, 255, 0.12) !important;
    transform: translateY(-6px);
}

.span-3 article:hover i.large,
.span-2 article:hover i.large {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== ИКОНКИ УСЛУГ ===== */
.span-3 article i.large {
    background: var(--primary-gradient);
    border-radius: 50%;
    color: white;
    font-size: 44px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}

.span-3 article:hover i.large {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 12px 36px rgba(108, 99, 255, 0.5);
}

/* ===== ЗАГОЛОВКИ ===== */
a h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-dark);
    transition: var(--transition);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

a h3:hover {
    color: var(--primary);
    transform: scale(1.02);
}

/* ===== КНОПКИ ===== */
a.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.25);
    font-family: 'Inter', sans-serif !important;
    margin-top: 15px;
}

a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45);
    color: white;
}

a.btn:active {
    transform: scale(0.97);
}

/* ===== СЛОГАНЫ ===== */
.slogan {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin-top: 60px;
    line-height: 1.3;
    animation: pulseGlow 3s ease-in-out infinite;
    font-family: 'Playfair Display', serif !important;
    padding: 20px 0;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.4)); }
}

h3.slogan {
    font-size: 20px;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
    color: var(--text-dark);
    margin-top: 40px;
    animation: none;
    font-style: normal !important;
}

/* ===== ОТЗЫВЫ ===== */
.review-list p {
    display: block;
    padding: 8px 0;
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.6;
    transition: var(--transition);
}

.review-list p:hover {
    border-left-color: var(--secondary);
    padding-left: 20px;
}

.review-list a[href="/review"] {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

/* ===== ВИДЕО ===== */
.video-section {
    margin-top: 50px;
    padding: 20px 0;
    clear: both;
    width: 100%;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.video-grid iframe {
    width: 100% !important;
    height: 200px !important;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-grid iframe:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* ===== ЛЕВАЯ КОЛОНКА (ГЛАВНАЯ) ===== */
.about p.description b:first-child {
    font-family: 'Playfair Display', serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.about p.description b:first-child + br + br + b {
    font-family: 'Playfair Display', serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 5px;
    padding: 4px 0;
    border-bottom: 3px solid var(--primary);
}

.about p.description {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif !important;
}

/* ===== ABOUT — ОДНА КАРТОЧКА ===== */
.about-page {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 99, 255, 0.06);
}

.about-page .about-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 25px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.about-page .about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.2);
}

.about-page .about-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.about-page .about-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
}

.about-page .badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 20px;
}

.about-page .about-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 25px;
}

.about-page .about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-page .about-content p.lead {
    font-size: 18px;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}

.about-page .about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.about-page .highlight-item {
    background: var(--bg-light);
    padding: 24px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(108, 99, 255, 0.06);
    text-align: center;
}

.about-page .highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.08);
}

.about-page .highlight-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.about-page .highlight-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
}

.about-page .highlight-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-page .about-cta {
    text-align: center;
    padding: 30px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    color: white;
}

.about-page .about-cta p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-page .about-cta .btn {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.about-page .about-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: var(--primary);
}

.about-page .cta-phone {
    margin-top: 12px;
    font-size: 16px;
    opacity: 0.9;
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    clear: both;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

footer .wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

footer .copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    float: none !important;
    text-align: left !important;
    line-height: 1.6;
    order: 1;
}

footer .copyright span.green {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer .copyright span.white {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

footer .contacts {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    float: none !important;
    text-align: right !important;
    line-height: 1.6;
    order: 2;
}

footer .contacts a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .contacts a:hover {
    color: var(--primary-light);
}

.counters {
    display: none !important;
}

/* ===== ОТСТУПЫ ===== */
section#promo {
    margin-top: 20px !important;
    padding-top: 5px !important;
}

#content {
    padding-top: 5px !important;
}

@media (max-width: 768px) {
    section#promo { margin-top: 15px !important; }
}

@media (max-width: 480px) {
    section#promo { margin-top: 10px !important; }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    #page-wrapper, .wrapper { width: 95%; }
}

@media (max-width: 992px) {
    .span-3 { width: 50%; }
    .span-2 { width: 100%; }
    #navigation ul { flex-wrap: wrap; justify-content: flex-end; }
    #navigation ul li a { padding: 8px 14px; font-size: 12px; }
    .about-page .about-highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 80px; }
    #page-wrapper, .wrapper { width: 100%; padding: 0 15px; }
    header { padding: 12px 0; }
    header .wrapper { display: flex; flex-direction: column; align-items: center; gap: 10px; }

    #logo { float: none; text-align: center; justify-content: center; }
    .logo-text { font-size: 20px !important; }
    .logo-icon svg { width: 36px; height: 36px; }

    #navigation { float: none; text-align: center; width: 100%; justify-content: center; }
    #navigation ul { justify-content: center; flex-wrap: wrap; }
    #navigation ul li a { padding: 6px 12px; font-size: 11px; border-radius: 6px; }
    #navigation ul li a::after { display: none; }

    .header-phone { float: none; margin: 5px auto 0; display: inline-block; padding: 4px 14px; }
    .header-phone a { font-size: 12px; }

    .additionally { display: flex !important; flex-direction: column !important; gap: 20px !important; width: 100% !important; }
    .additionally .span-2 { width: 100% !important; max-width: 100% !important; float: none !important; padding: 10px 0 !important; flex: 1 1 100% !important; }
    .additionally .span-2:first-child { order: 1 !important; }
    .additionally .span-2:last-child { order: 2 !important; }

    .span-3 { width: 100% !important; float: none !important; padding: 10px 0 !important; }
    .span-2 { width: 100% !important; float: none !important; padding: 10px 0 !important; }

    .video-grid { grid-template-columns: 1fr 1fr; }
    .video-grid iframe { height: 180px !important; }

    #content .wrapper { padding: 20px; }
    #content { padding: 10px 0 40px; }
    .slogan { font-size: 20px; margin-top: 30px; }
    h3.slogan { font-size: 16px; margin-top: 20px; }

    .about-page { padding: 20px !important; }
    .about-page .about-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .about-page .about-photo img { width: 160px; height: 160px; }
    .about-page .about-title h1 { font-size: 28px; }
    .about-page .about-title h2 { font-size: 18px; }
    .about-page .about-content p.lead { font-size: 17px; border-left: none; padding-left: 0; }
    .about-page .about-highlights { grid-template-columns: 1fr; }
    .about-page .about-cta p { font-size: 17px; }

    footer .wrapper { flex-direction: column !important; text-align: center !important; gap: 10px; }
    footer .copyright { order: 2 !important; text-align: center !important; float: none !important; }
    footer .contacts { order: 1 !important; text-align: center !important; float: none !important; }
}

@media (max-width: 480px) {
    body { padding-top: 90px; }
    #navigation ul li a { padding: 4px 8px; font-size: 10px; }
    .span-3 article, .span-2 article, .span-1 article { padding: 16px; }
    .slogan { font-size: 17px; }
    article.about p.description strong { font-size: 18px !important; }
    a.btn { padding: 10px 20px; font-size: 12px; }
    .span-3 article i.large { width: 60px; height: 60px; font-size: 32px; }
    .video-grid { grid-template-columns: 1fr; }
    .video-grid iframe { height: 200px !important; }
    .logo-text { font-size: 16px !important; }
    .logo-icon svg { width: 32px; height: 32px; }
    .about-page { padding: 15px !important; }
    .about-page .about-photo img { width: 130px; height: 130px; }
    .about-page .about-title h1 { font-size: 24px; }
    .about-page .about-title h2 { font-size: 16px; }
    .about-page .about-content p { font-size: 15px; }
}
