/* コトバスタジオ — Main Stylesheet */
:root {
    --primary: #00acdc;
    --secondary: #f36e1a;
    --accent: #005d1b;
    --heading: #333333;
    --body-text: #76787b;
    --body-bg: #f2f2f2;
    --white: #ffffff;
    --dark: #313131;
    --link: #2b7bb9;
    --orange-hover: #f7941d;
    --border: #cccccc;
    --border-active: #bbbbbb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--body-text);
    background: var(--white);
}

a { color: var(--link); text-decoration: none; -webkit-transition: color .3s; -moz-transition: color .3s; -o-transition: color .3s; transition: color .3s; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading);
    line-height: 1.2;
    margin: 0;
}
h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }

p { margin-bottom: 15px; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    -webkit-transition: all .3s; -moz-transition: all .3s; -o-transition: all .3s; transition: all .3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo svg { width: 44px; height: 44px; }
.site-logo span { font-size: 20px; font-weight: 700; color: var(--heading); letter-spacing: -0.5px; }
.site-logo span em { color: var(--primary); font-style: normal; }

.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: #757575;
    text-decoration: none;
    -webkit-transition: color .3s; -moz-transition: color .3s; -o-transition: color .3s; transition: color .3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-cta {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    -webkit-transition: background .3s; -moz-transition: background .3s; -o-transition: background .3s; transition: background .3s;
}
.nav-cta:hover { background: var(--orange-hover) !important; color: var(--white) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; -webkit-transition: all .3s; -moz-transition: all .3s; -o-transition: all .3s; transition: all .3s; }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: url('../uploads/hero-bg.webp') center center / cover no-repeat;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(73,73,74,0.82);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: left;
}
.hero-content h1 { color: var(--white); font-size: 42px; margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.88); font-size: 18px; margin-bottom: 30px; }
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    -webkit-transition: background .3s; -moz-transition: background .3s; -o-transition: background .3s; transition: background .3s;
}
.btn-primary:hover { background: var(--orange-hover); color: var(--white); }
.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 12px;
    -webkit-transition: all .3s; -moz-transition: all .3s; -o-transition: all .3s; transition: all .3s;
}
.btn-outline:hover { background: var(--white); color: var(--heading); }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--body-bg); }
.section-dark { background: var(--dark); }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: var(--heading); margin-bottom: 12px; }
.section-title p { color: var(--body-text); max-width: 600px; margin: 0 auto; }
.section-title .fl-heading-text { color: var(--heading); }

/* ---- CARDS: курсы ---- */
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    -webkit-transition: transform .3s, box-shadow .3s; -moz-transition: transform .3s, box-shadow .3s; -o-transition: transform .3s, box-shadow .3s; transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.course-card img { width: 100%; height: 200px; object-fit: cover; }
.course-card-body { padding: 20px; }
.course-card-body h3 { font-size: 18px; color: var(--heading); margin-bottom: 10px; }
.course-card-body p { font-size: 14px; color: var(--body-text); line-height: 1.6; margin-bottom: 15px; }
.course-card-body .price { font-size: 20px; font-weight: 700; color: var(--primary); }
.course-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.course-tag.orange { background: var(--secondary); }

/* ---- WHY US ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item { text-align: center; padding: 30px 20px; }
.why-item i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.why-item h3 { margin-bottom: 10px; font-size: 18px; }
.why-item p { font-size: 14px; }

/* ---- 2-COL (about split) ---- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-section img { border-radius: 6px; width: 100%; height: 380px; object-fit: cover; }
.split-text h2 { color: var(--heading); margin-bottom: 20px; }
.split-text p { margin-bottom: 15px; }
.split-text ul { margin-left: 0; }
.split-text ul li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; color: var(--body-text); }
.split-text ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--primary); font-size: 14px; top: 8px; }

/* ---- TESTIMONIALS ---- */
.testimonials-wrap { max-width: 800px; margin: 0 auto; }
.testimonial-slide { text-align: center; padding: 40px; background: var(--white); border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin: 0 15px; }
.testimonial-slide blockquote { font-size: 18px; font-style: italic; color: var(--dark); line-height: 1.7; margin-bottom: 20px; }
.testimonial-slide cite { font-size: 14px; font-weight: 600; color: var(--primary); font-style: normal; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}
.faq-question i { color: var(--primary); -webkit-transition: transform .3s; -moz-transition: transform .3s; -o-transition: transform .3s; transition: transform .3s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 20px; color: var(--body-text); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ---- STATS ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { padding: 30px 15px; }
.stat-number { font-size: 42px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--body-text); }

/* ---- CTA BAND ---- */
.cta-band {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 15px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 30px; font-size: 17px; }
.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 14px 34px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    -webkit-transition: background .3s; -moz-transition: background .3s; -o-transition: background .3s; transition: background .3s;
}
.btn-white:hover { background: var(--body-bg); color: var(--primary); }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--dark);
    color: #aaa;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: #aaa; -webkit-transition: color .3s; -moz-transition: color .3s; -o-transition: color .3s; transition: color .3s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.footer-logo svg { width: 36px; height: 36px; }
.footer-logo span { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-logo span em { color: var(--primary); font-style: normal; }

.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #aaa;
    font-size: 15px;
    -webkit-transition: background .3s, color .3s; -moz-transition: background .3s, color .3s; -o-transition: background .3s, color .3s; transition: background .3s, color .3s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-item i { color: var(--primary); margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-contact-item span { font-size: 14px; line-height: 1.5; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { font-size: 13px; color: #757575; margin: 0; }

/* ---- INNER PAGE HEADER ---- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    padding: 80px 20px;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 17px; }

/* ---- CONTENT PAGE ---- */
.content-section { padding: 80px 0; }
.content-section .inner { max-width: 860px; margin: 0 auto; }
.content-section h2 { color: var(--heading); margin: 40px 0 15px; font-size: 24px; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: var(--body-text); margin-bottom: 15px; line-height: 1.7; }
.content-section ul { margin: 0 0 15px 20px; list-style: disc; }
.content-section ul li { color: var(--body-text); margin-bottom: 8px; line-height: 1.7; }

/* ---- CONTACT FORM ---- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-item i { color: var(--primary); font-size: 20px; width: 24px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item div h4 { font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.contact-info-item div p { font-size: 14px; color: var(--body-text); margin: 0; }

.form-card { background: var(--white); padding: 40px; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.form-card h3 { margin-bottom: 25px; color: var(--heading); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--body-text);
    outline: none;
    line-height: 1.3;
    -webkit-transition: border-color .3s; -moz-transition: border-color .3s; -o-transition: border-color .3s; transition: border-color .3s;
    margin-top: 10px;
    margin-bottom: 0;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--border-active); }
.form-group textarea { height: 130px; resize: vertical; }
.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    -webkit-transition: background .3s; -moz-transition: background .3s; -o-transition: background .3s; transition: background .3s;
}
.form-submit:hover { background: var(--orange-hover); }
.form-required { color: #790000; margin-left: 4px; }
.form-note { font-size: 12px; color: var(--body-text); margin-top: 10px; }

/* ---- COOKIES ALERT ---- */
#cookie-alert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #ccc;
    padding: 18px 30px;
    z-index: 9999;
    display: none;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: #ccc; margin: 0; }
.cookie-inner a { color: var(--primary); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    -webkit-transition: background .3s; -moz-transition: background .3s; -o-transition: background .3s; transition: background .3s;
}
.btn-cookie-accept:hover { background: #0098c4; }
.btn-cookie-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

/* ---- ABOUT PAGE ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; margin: 0 auto 15px; }
.team-card h3 { font-size: 18px; margin-bottom: 5px; }
.team-card p { font-size: 14px; color: var(--body-text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .split-section img { height: 260px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--border); }
    .main-nav a { display: block; padding: 12px 0; }
    .hamburger { display: block; }
    .header-inner { position: relative; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; }
    .btn-outline { display: none; }
    .courses-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 50px 0; }
    .team-grid { grid-template-columns: 1fr; }
}
