/* Базовые сбросы и настройка */
:root {
    --primary: #374593;
    --secondary: #F8F7F5;
    --accent-gradient: linear-gradient(135deg, #374593 0%, #4a5bc0 100%);
    --shadow: 0 20px 40px rgba(55, 69, 147, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--secondary);
    color: #1a1a1a;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Современный глассморфизм */
.glass {
    background: rgba(248, 247, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.glass-dark {
    background: rgba(55, 69, 147, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(55, 69, 147, 0.25);
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

/* Хедер - динамичный и стильный */
.header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    padding: 20px 40px;
    transition: var(--transition);
}

.header.scrolled {
    top: 15px;
    width: 95%;
    padding: 15px 35px;
    box-shadow: 0 10px 30px rgba(55, 69, 147, 0.1);
}

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

/* Логотип-картинка */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Навигация */
.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

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

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #4a5bc0;
}

/* ШИРОКАЯ КНОПКА "Позвонить" - УВЕЛИЧЕНЫ ГОРИЗОНТАЛЬНЫЕ ОТСТУПЫ */
.cta-button {
    padding: 16px 52px;
    background: var(--accent-gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 20px rgba(55, 69, 147, 0.25);
    letter-spacing: 0.3px;
    line-height: 1.4;
    text-align: center;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 180px;
}

.cta-button::after {
    display: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(55, 69, 147, 0.35);
    animation: none;
    color: white !important;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(55, 69, 147, 0.1);
}

/* Герой-секция с динамикой */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 247, 245, 0.9) 0%, rgba(248, 247, 245, 0.7) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: var(--accent-gradient);
    opacity: 0.05;
    border-radius: 40% 60% 60% 40%;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: var(--accent-gradient);
    opacity: 0.03;
    border-radius: 60% 40% 40% 60%;
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--primary);
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

/* Большая кнопка в герое - отдельные стили */
.hero-cta-button {
    padding: 20px 60px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 10px 25px rgba(55, 69, 147, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 220px;
}

.hero-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(55, 69, 147, 0.4);
    animation: none;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease-out;
    min-height: 600px;
    width: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 2;
}

/* ИСПРАВЛЕННОЕ РАСПОЛОЖЕНИЕ КАРТОЧЕК */
.card-1 {
    top: 5%;
    right: 10%;
    width: 250px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    left: 5%;
    width: 230px;
    z-index: 2;
    animation: float 7s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}

.card-3 {
    top: 45%;
    right: 15%;
    width: 220px;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Дополнительная карточка для баланса */
.card-4 {
    bottom: 5%;
    right: 5%;
    width: 200px;
    z-index: 2;
    animation: float 6.5s ease-in-out infinite reverse;
    animation-delay: 0.7s;
    opacity: 0.9;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(55, 69, 147, 0.2);
    z-index: 10;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-icon i {
    color: white;
    font-size: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Секция "О нас" */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    display: none;
}

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

.about-text {
    font-size: 18px;
    line-height: 1.8;
}

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

.highlight-box {
    background: var(--accent-gradient);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
    animation: fadeUp 0.8s ease-out;
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-main {
    width: 100%;
    height: 400px;
    background: var(--accent-gradient);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    opacity: 0.2;
}

/* Услуги */
.services-section {
    background: linear-gradient(135deg, #f0f0f5 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

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

.service-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    animation: fadeUp 0.8s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-gradient);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 60px rgba(55, 69, 147, 0.2);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-top: 25px;
}

.service-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Контакты */
.contacts-section {
    position: relative;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
    min-height: 680px;
}

.contact-info {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}

.contact-info h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    display: none;
}

.contact-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(55, 69, 147, 0.1);
}

.contact-item:hover {
    background: rgba(55, 69, 147, 0.05);
    transform: translateX(10px);
    border-color: rgba(55, 69, 147, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 20px;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-details p, .contact-details a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary);
}

/* Карта офиса в блоке контактов */
.office-map {
    flex: 1;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: linear-gradient(135deg, rgba(55, 69, 147, 0.1) 0%, rgba(55, 69, 147, 0.05) 100%);
    border: 1px solid rgba(55, 69, 147, 0.1);
    margin-top: 10px;
}

.office-map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 69, 147, 0.1) 0%, rgba(55, 69, 147, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
}

.map-overlay i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.map-overlay .map-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    opacity: 0.9;
    line-height: 1.5;
}

.map-overlay .map-metro {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.map-metro i {
    font-size: 16px;
    color: #d62b2b;
    margin: 0;
}

/* СТИЛИ ДЛЯ СИНЕЙ ФОРМЫ ОБРАТНОЙ СВЯЗИ */
.contact-form-container {
    background: var(--primary);
    background: var(--accent-gradient);
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.form-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.form-title::after {
    display: none;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 2;
    position: relative;
    flex: 1;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.form-label span {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 3px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    resize: vertical;
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-input.error, .form-textarea.error, .form-select.error {
    border-color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
    padding-right: 50px;
    color: white;
}

.form-select option {
    background-color: var(--primary);
    color: white;
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-button {
    padding: 20px 40px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.form-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-button-loading .button-text {
    visibility: hidden;
}

.form-button-loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(55, 69, 147, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeUp 0.8s ease-out;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-top: auto;
    flex: 1;
}

.form-success.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 36px;
    color: var(--primary);
}

.form-success h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.form-success p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: white;
}

.agreement-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.agreement-text a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.agreement-text a:hover {
    text-decoration: underline;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    animation: slideDown 0.4s ease-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.notification.success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
    border-left: 4px solid #27ae60;
}

.notification.error {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border-left: 4px solid #c0392b;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    opacity: 0.9;
}

/* Футер */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="0" cy="0" r="50" fill="white" opacity="0.03"/><circle cx="100" cy="100" r="60" fill="white" opacity="0.03"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.footer-logo-link img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.footer-logo-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-logo {
    display: none;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 15px;
    transition: var(--transition);
    font-size: 15px;
    position: relative;
    z-index: 2;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Модальное окно политики конфиденциальности */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.privacy-modal.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeUp 0.4s ease-out;
}

.privacy-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--secondary);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.5s ease-out;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.privacy-modal.active .privacy-modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.privacy-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(55, 69, 147, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.privacy-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.privacy-modal-title i {
    font-size: 24px;
}

.privacy-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.privacy-modal-content {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.privacy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-content::-webkit-scrollbar-track {
    background: rgba(55, 69, 147, 0.05);
    border-radius: 4px;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
    background: rgba(55, 69, 147, 0.2);
    border-radius: 4px;
}

.privacy-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 69, 147, 0.3);
}

.privacy-modal-content h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(55, 69, 147, 0.1);
}

.privacy-modal-content h3:first-child {
    margin-top: 0;
}

.privacy-modal-content p {
    margin-bottom: 15px;
}

.privacy-modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-modal-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.privacy-modal-content li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.privacy-modal-content strong {
    color: var(--primary);
    font-weight: 600;
}

.privacy-modal-footer {
    padding: 25px 40px;
    border-top: 1px solid rgba(55, 69, 147, 0.1);
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    background: rgba(248, 247, 245, 0.9);
}

.privacy-modal-button {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    min-width: 180px;
}

.privacy-modal-button-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(55, 69, 147, 0.25);
}

.privacy-modal-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(55, 69, 147, 0.35);
}

.privacy-modal-button-secondary {
    background: white;
    color: var(--primary);
    border-color: rgba(55, 69, 147, 0.2);
}

.privacy-modal-button-secondary:hover {
    background: rgba(55, 69, 147, 0.05);
    transform: translateY(-3px);
}

.privacy-modal-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(55, 69, 147, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

/* Анимация печати */
@keyframes printAnimation {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.privacy-modal.printing .privacy-modal-container {
    animation: printAnimation 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 54px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-visual {
        min-height: 550px;
    }
    
    .floating-card {
        width: 220px !important;
    }
    
    .card-1 {
        top: 8%;
        right: 8%;
    }
    
    .card-2 {
        bottom: 12%;
        left: 8%;
    }
    
    .card-3 {
        top: 50%;
        right: 10%;
    }
    
    .card-4 {
        bottom: 8%;
        right: 8%;
    }
    
    .cta-button {
        padding: 15px 45px;
        font-size: 16px;
        height: 50px;
        min-width: 170px;
    }
    
    .hero-cta-button {
        padding: 18px 52px;
        font-size: 18px;
        min-width: 200px;
    }
    
    .contact-form-container {
        padding: 40px;
    }
    
    .contacts-wrapper {
        min-height: 600px;
        gap: 60px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .office-map {
        min-height: 250px;
    }
    
    .footer-content {
        gap: 60px;
    }
    
    .footer-logo-link img {
        height: 45px;
    }
}

@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .floating-card {
        position: relative !important;
        margin: 20px auto;
        width: 100% !important;
        max-width: 300px;
        animation: none !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        opacity: 1 !important;
    }
    
    .hero-visual {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        order: -1;
        margin-bottom: 40px;
    }
    
    .floating-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-button {
        padding: 14px 40px;
        font-size: 16px;
        height: 48px;
        min-width: 160px;
    }
    
    .hero-cta-button {
        padding: 16px 45px;
        font-size: 18px;
        min-width: 180px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 35px;
    }
    
    .form-title {
        font-size: 32px;
    }
    
    .contacts-wrapper {
        min-height: auto;
    }
    
    .office-map {
        min-height: 200px;
    }
    
    .footer-logo-link img {
        height: 40px;
    }
    
    .privacy-modal-header,
    .privacy-modal-content,
    .privacy-modal-footer {
        padding: 25px;
    }
    
    .privacy-modal-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(248, 247, 245, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 15px 25px;
        width: calc(100% - 30px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 16px;
        height: 48px;
        min-width: 150px;
    }
    
    .hero-cta-button {
        padding: 16px 40px;
        font-size: 17px;
        min-width: 170px;
    }
    
    .notification {
        top: 80px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .office-map {
        min-height: 180px;
    }
    
    .footer-logo-link img {
        height: 35px;
    }
    
    .privacy-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .privacy-modal-footer {
        flex-direction: column;
    }
    
    .privacy-modal-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .service-card {
        padding: 40px 25px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
        height: 48px;
        min-width: 140px;
        width: 100%;
        text-align: center;
    }
    
    .hero-cta-button {
        padding: 16px 35px;
        font-size: 17px;
        min-width: 160px;
        width: 100%;
        text-align: center;
    }
    
    .logo {
        height: 35px;
    }
    
    .form-input, .form-textarea, .form-select {
        padding: 16px 18px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .office-map {
        min-height: 150px;
    }
    
    .map-overlay {
        font-size: 16px;
        padding: 15px;
    }
    
    .map-overlay i {
        font-size: 36px;
    }
    
    .map-overlay .map-address {
        font-size: 14px;
    }
    
    .footer-logo-link img {
        height: 30px;
    }
    
    .privacy-modal-header,
    .privacy-modal-content,
    .privacy-modal-footer {
        padding: 20px;
    }
    
    .privacy-modal-title {
        font-size: 20px;
        gap: 10px;
    }
    
    .privacy-modal-title i {
        font-size: 20px;
    }
    
    .privacy-modal-content {
        font-size: 14px;
    }
    
    .privacy-modal-content h3 {
        font-size: 18px;
    }
}