/* Smooth Scroll для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* Дополнительные стили для плавного скролла */
* {
    scroll-behavior: smooth;
}

/* Стили для якорных ссылок */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Улучшенный плавный скролл с JavaScript поддержкой */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Стили для активных якорных ссылок */
a[href^="#"]:focus {
    outline: 2px solid #f6ad55;
    outline-offset: 2px;
}

/* Плавная анимация при переходе к якорю */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Fallback для браузеров без поддержки scroll-behavior */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Base Styles для Tilda - общие стили */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    font-size: 16px;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a365d;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Параграфы */
p {
    margin-bottom: 1rem;
    color: #4a5568;
}

/* Ссылки */
a {
    color: #f6ad55;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ed8936;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #f6ad55 !important;
    color: #1a365d !important;
    border-color: #f6ad55 !important;
}

.btn-primary:hover {
    background: #ed8936 !important;
    border-color: #ed8936 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.3);
}

.btn-secondary {
    background: #f6ad55 !important;
    color: #1a365d !important;
    border-color: #f6ad55 !important;
}

.btn-secondary:hover {
    background: #ed8936 !important;
    color: #1a365d !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.2);
}

.btn-outline {
    background: #f6ad55 !important;
    color: #1a365d !important;
    border: 2px solid #f6ad55 !important;
}

.btn-outline:hover {
    background: #ed8936 !important;
    color: #1a365d !important;
    transform: translateY(-2px);
}

/* Секции */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Списки */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Формы */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #f6ad55;
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Скрытие элементов для мобильных */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}
