/* Тематика снов - ночная палитра */
:root {
    --primary-color: #6B7FD7;
    --secondary-color: #B8A9D4;
    --accent-color: #9B8FC7;
    --bg-light: #F8F7FC;
    --bg-white: #FFFFFF;
    --bg-dark: #2D2B3D;
    --text-dark: #2D2B3D;
    --text-medium: #5A5768;
    --shadow-soft: rgba(107, 127, 215, 0.15);
    --shadow-medium: rgba(107, 127, 215, 0.25);
    --border-color: #E5E3ED;
    --gradient-dream: linear-gradient(135deg, #6B7FD7 0%, #B8A9D4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header с логотипом */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 20px var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-dream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.logo-text {
    background: var(--gradient-dream);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    background: var(--gradient-dream);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(45, 43, 61, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 20px 40px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.mobile-menu a:hover {
    background: var(--gradient-dream);
    border-color: var(--secondary-color);
    transform: translateX(10px);
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

h1 {
    background: var(--gradient-dream);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-white);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-dream);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-medium);
    margin-top: 0.5rem;
    line-height: 1.7;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.card a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Sections */
.section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.intro {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.05) 0%, rgba(184, 169, 212, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.intro::after {
    content: '🌙';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.intro img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #3D3B4D 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

/* Back to top button - красивая кнопка */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-dream);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: all 0.3s;
    z-index: 999;
    font-size: 1.5rem;
    cursor: pointer;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.back-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(107, 127, 215, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

.btn-submit {
    background: var(--gradient-dream);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

/* Interactive Lists - только для контентных списков, не для навигации */
.section ul:not(nav ul):not(.mobile-menu ul),
.section ol,
.intro ul:not(nav ul):not(.mobile-menu ul),
.intro ol {
    list-style: none;
    padding-left: 0;
}

.section ul:not(nav ul):not(.mobile-menu ul) li,
.section ol li,
.intro ul:not(nav ul):not(.mobile-menu ul) li,
.intro ol li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    padding-left: 2.5rem;
}

.section ul:not(nav ul):not(.mobile-menu ul) li::before,
.section ol li::before,
.intro ul:not(nav ul):not(.mobile-menu ul) li::before,
.intro ol li::before {
    content: '✨';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: transform 0.3s;
}

.section ul:not(nav ul):not(.mobile-menu ul) li:hover,
.section ol li:hover,
.intro ul:not(nav ul):not(.mobile-menu ul) li:hover,
.intro ol li:hover {
    background: linear-gradient(90deg, rgba(107, 127, 215, 0.1) 0%, var(--bg-light) 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 12px var(--shadow-soft);
    border-left-color: var(--accent-color);
}

.section ul:not(nav ul):not(.mobile-menu ul) li:hover::before,
.section ol li:hover::before,
.intro ul:not(nav ul):not(.mobile-menu ul) li:hover::before,
.intro ol li:hover::before {
    transform: translateY(-50%) scale(1.2) rotate(15deg);
}

/* Contact Info Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}


.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-hours {
    text-align: left;
}

.contact-hours p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 3px solid var(--border-color);
    padding-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    nav.desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    .intro {
        padding: 2.5rem 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .intro {
        padding: 2rem 1rem;
    }

    .section {
        padding: 1.2rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}
