/* ============================================================
   ДАВИНЧИ — студия искусства и музыки
   Editorial / magazine feel: крупная типографика, тёмный фон,
   неоновые акценты, много воздуха.
   ============================================================ */

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

:root {
    --primary: #FF3366;
    --secondary: #00FF88;
    --accent: #FFD700;
    --dark: #0A0A0A;
    --gray-2: #141414;
    --light: #FAFAFA;
    --muted: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* ============================================================ NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    color: var(--light);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-cta {
    color: var(--light);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ============================================================ BUTTONS */
.btn-primary {
    display: inline-block;
    padding: 22px 52px;
    background: var(--primary);
    color: var(--light);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.12em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 50px rgba(255, 51, 102, 0.35);
}

.btn-outline-light {
    display: inline-block;
    padding: 22px 52px;
    background: transparent;
    color: var(--light);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.12em;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================ HERO */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.3;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 120px 20px 60px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 100px;
    padding: 10px 26px;
    margin-bottom: 36px;
    animation: fadeInUp 1s ease-out;
}

.hero-philosophy {
    font-size: clamp(1.2rem, 2.5vw, 1.9rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    margin-bottom: 24px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(4rem, 13vw, 11rem);
    line-height: 0.9;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    opacity: 0.9;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.55s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.stat-item h3 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--accent);
}

.stat-item p {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

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

/* ============================================================ MANIFESTO */
.manifesto {
    padding: 150px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.manifesto-text {
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 1.05;
    text-align: center;
    color: var(--light);
    font-weight: 900;
}

.manifesto-text span {
    display: block;
    animation: slideIn 1s ease-out;
}

.manifesto-text span:nth-child(2) { animation-delay: 0.15s; }
.manifesto-text span:nth-child(3) { animation-delay: 0.3s; }

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

/* ============================================================ ABOUT */
.about {
    padding: 150px 0;
    background: var(--dark);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    margin-bottom: 40px;
    color: var(--secondary);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-text p {
    margin-bottom: 20px;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.about-visual:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-visual img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

/* ============================================================ CHILDREN */
.children {
    padding: 150px 0;
    background: #141414;
    position: relative;
}

.children-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.children-title {
    margin-bottom: 40px;
    color: var(--accent);
}

.children-text-p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 26px;
    opacity: 0.9;
}

.children-highlight {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--secondary);
    margin-top: 36px;
    line-height: 1.4;
}

.children-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    order: -1;
}

.children-image img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

/* ============================================================ ADULTS (ГИТАРА) */
.adults {
    padding: 150px 0;
    background: var(--dark);
    position: relative;
}

.adults-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.adults-title {
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adults-text-p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 26px;
    opacity: 0.9;
}

.adults-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.adults-image img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

/* ============================================================ TEAM */
.team {
    padding: 150px 0;
    background: var(--secondary);
    color: var(--dark);
    position: relative;
}

.team-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.team-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.team-card {
    background: var(--dark);
    color: var(--light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.team-card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.team-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.team-card-text {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* ============================================================ APPROACH */
.approach {
    padding: 150px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.approach-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.approach-title {
    text-align: center;
    margin-bottom: 80px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

/* Бегущая строка "ЗДЕСЬ МОЖНО" */
.approach-marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.approach-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.approach-marquee:hover .approach-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.approach-set {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.approach-item {
    background: #141414;
    padding: 40px 46px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
    position: relative;
}

.approach-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.8;
}

.approach-item:hover {
    background: var(--primary);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 40px rgba(255, 51, 102, 0.35);
}

.approach-item:hover .approach-num {
    color: var(--light);
}

/* ============================================================ DIRECTIONS */
.directions {
    padding: 150px 0;
    background: #141414;
}

.directions-title {
    text-align: center;
    margin-bottom: 80px;
    color: var(--accent);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.direction-card {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.direction-card:hover::before {
    transform: scaleX(1);
}

.direction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.3);
}

.direction-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.direction-content {
    padding: 40px 30px;
    text-align: center;
}

.direction-icon {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.direction-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.direction-text {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.7;
}

/* ============================================================ COMMUNITY */
.community {
    padding: 150px 0;
    background: var(--dark);
    position: relative;
}

.community-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.community-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.community-title {
    margin-bottom: 50px;
    color: var(--secondary);
}

.community-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.community-feature-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.community-feature-text {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================ CTA */
.cta {
    padding: 200px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.cta-title {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 30px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    line-height: 1.05;
}

.cta-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    margin-bottom: 60px;
    color: var(--dark);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

.cta-button {
    display: inline-block;
    padding: 28px 76px;
    background: var(--dark);
    color: var(--light);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================ FORM */
.form-section {
    padding: 150px 0;
    background: var(--dark);
    position: relative;
}

.form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 16px;
}

.form-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 60px;
}

.form-error {
    display: none;
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    background: #141414;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--secondary);
}

.checkbox-row label {
    font-size: 0.85rem;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    margin: 0;
}

.checkbox-row label a {
    color: var(--secondary);
}

.form-submit {
    width: 100%;
    margin-top: 28px;
    padding: 22px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 51, 102, 0.35);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--secondary);
}

.form-success p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ============================================================ TEXT MODULE */
.text-module {
    padding: 100px 0;
    background: var(--dark);
}

.text-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.text-content h2, .text-content h3 {
    margin: 24px 0 12px;
    color: var(--light);
}

.text-content a {
    color: var(--secondary);
}

/* ============================================================ FOOTER */
.footer {
    padding: 80px 0 40px;
    background: var(--dark);
    border-top: 2px solid #141414;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.8;
    color: var(--light);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #141414;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ============================================================ SCROLL ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual img {
        min-height: 300px;
    }

    .adults-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .adults-image img {
        min-height: 300px;
    }

    .children-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .children-image {
        order: 0;
    }

    .children-image img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .manifesto-text {
        font-size: 2.6rem;
    }

    .cta-button {
        padding: 20px 44px;
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary, .btn-outline-light {
        padding: 18px 36px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}