:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #2b6cb0;
    --accent-hover: #3182ce;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    --gradient-accent: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
    --gradient-dark: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --gray-color: #4a5568;
    --gray-light: #a0aec0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
    min-height: 100vh;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gradient-dark);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Стили для кнопки "Подробнее" на карточках направлений */
.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 40px;
    border: 1px solid rgba(43, 108, 176, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-detail span,
.btn-detail svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-detail svg {
    transition: transform 0.3s ease;
}

.btn-detail:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.25), 0 0 0 4px rgba(43, 108, 176, 0.1);
    transform: translateY(-2px);
}

.btn-detail:hover::before {
    opacity: 1;
}

.btn-detail:hover span {
    color: white;
}

.btn-detail:hover svg {
    transform: translateX(4px);
    stroke: white;
}

.btn-detail:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
}

/* Шапка */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Номер телефона в хэдере - красивый и лаконичный */
.header-phone {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 40px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: var(--transition);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.phone-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.phone-link:hover::before {
    opacity: 0.05;
}

.phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3);
    transition: var(--transition);
}

.phone-link:hover .phone-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(66, 153, 225, 0.4);
}

.phone-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.phone-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.phone-link:hover .phone-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навигация */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: #edf2f7;
}

/* Выпадающее меню - ПРОСТОЙ ВАРИАНТ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 220px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Меню видимо только когда у родителя есть класс dropdown-open */
.nav-item.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    gap: 10px;
}

.dropdown-menu a:hover {
    background: #f7fafc;
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

.dropdown-menu a i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.dropdown-menu a.active {
    background: #f7fafc;
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

/* Стрелки для выпадающего меню */
.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-item.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* УМЕНЬШЕННАЯ ГЕРОЙ-СЕКЦИЯ */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: var(--gradient-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(66, 153, 225, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Преимущества */
.advantages {
    background: var(--light-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.advantage-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    background: var(--gradient-dark);
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Серый текст для пояснений */
.gray-text {
    color: #718096 !important;
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    margin-top: 8px;
}

/* Направления */
.directions {
    background: #f8fafc;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.direction-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #e2e8f0;
}

.direction-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.direction-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.direction-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.direction-content {
    padding: 32px;
    position: relative;
}

.direction-number {
    position: absolute;
    top: -28px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.direction-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.direction-content p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.direction-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.feature-tag {
    background: #edf2f7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.05);
}

/* О компании */
.about {
    background: white;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 28px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Подвал */
footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 32px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.footer-logo span {
    color: #63b3ed;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #63b3ed;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Стили для формы */
.contact-form-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-label .required {
    color: #e53e3e;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: #f7fafc;
    color: var(--dark-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.form-input:hover {
    border-color: #cbd5e1;
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    pointer-events: none;
    font-size: 0.8rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: #edf2f7;
    border-radius: 20px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #e2e8f0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--gradient-accent);
    border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .btn-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-group.with-icon {
    position: relative;
}

.form-group.with-icon .form-input {
    padding-left: 48px;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-input:focus + .form-icon {
    color: var(--accent-color);
}

.form-input.error {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.05);
}

.form-input.success {
    border-color: #38a169;
    background: rgba(56, 161, 105, 0.05);
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition);
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: var(--gradient-accent);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: block;
}

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

.loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .loading {
    display: block;
}

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

/* Анимации для формы */
.form-group {
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

/* Стили для отзывов */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--gray-light);
    line-height: 1.4;
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.star {
    color: #FFD700;
    font-size: 0.9rem;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .header-phone {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px 24px;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 0;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 !important;
    }

    .nav-item:not(:first-child) {
        margin-top: 0 !important;
    }

    .nav-item:nth-child(2) a {
        padding-top: 14px !important;
        margin-top: 0 !important;
    }

    .nav-item:nth-child(3) a {
        padding-top: 14px !important;
        margin-top: 0 !important;
    }

    .nav-links a::after {
        display: none;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100% !important;
        margin-left: 0 !important;
        left: 0 !important;
        min-width: auto !important;
    }

    .dropdown-menu.active {
        max-height: 200px;
        margin-bottom: 10px;
    }

    .dropdown-menu a {
        padding: 10px 0 10px 15px !important;
        color: var(--gray-color);
        border-left: none;
        border-bottom: none;
        font-size: 1rem;
        margin-left: 0 !important;
        justify-content: flex-start;
        width: 100% !important;
        display: block !important;
        border-left: 3px solid transparent;
    }

    .dropdown-menu a:hover {
        background: #f7fafc;
        padding-left: 20px !important;
        border-left-color: var(--accent-color);
    }

    .dropdown-menu a .nav-icon {
        display: none !important;
    }

    .dropdown-menu::before {
        display: none;
    }
    
    .nav-item.dropdown-open .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-left: 0;
    }

    .hero {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .advantages-grid,
    .directions-grid {
        grid-template-columns: 1fr;
    }

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

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

    section {
        padding: 80px 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu a {
        padding: 8px 0 8px 12px !important;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 16px !important;
    }
    
    .nav-links a {
        padding: 12px 0;
    }

    .hero {
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 16px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .submit-btn {
        padding: 16px;
    }

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

@media (max-width: 768px) {
    .nav-item .dropdown-menu {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        transform: none !important;
        top: auto !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .nav-item .dropdown-menu a {
        margin: 0 !important;
        padding: 12px 0 12px 10px !important;
        width: 100% !important;
        display: block !important;
        text-align: left !important;
        font-size: 1rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .nav-item.dropdown-open .dropdown-menu,
    .nav-item.dropdown-open .dropdown-menu.active {
        transform: none !important;
        left: 0 !important;
        position: static !important;
    }
    
    .nav-item .dropdown-menu a:last-child {
        border-bottom: none !important;
    }
    
    .nav-links a .nav-icon {
        margin-right: 10px;
        min-width: 24px;
        text-align: center;
    }
}