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

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --red-color: #ef4444;
    --red-dark: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
}

.logo-image {
    height: 50px;
    width: auto;
}

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

.logo-accent {
    color: var(--accent-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--primary-dark);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 30px 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 30px;
    padding: 8px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-mockup {
    position: relative;
    width: 240px;
    height: 480px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

/* Изображение карты в телефоне */
.hero-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Без затемнения - оригинальная яркость */
}

/* Оверлей поверх изображения */
.hero-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Фолбэк если изображение не загрузилось */
.hero-map-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-map-pins {
    position: relative;
    width: 160px;
    height: 160px;
}

.hero-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--red-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    animation: pinBounce 2s infinite ease-in-out;
}

.hero-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 18px;
}

.hero-pin-1 {
    top: 20px;
    left: 30px;
    opacity: 0.85;
    animation-delay: 0s;
}

.hero-pin-2 {
    top: 50px;
    right: 20px;
    opacity: 0.85;
    animation-delay: 0.3s;
}

.hero-pin-3 {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 1;
    animation-delay: 0.6s;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

@keyframes pinBounce {
    0%, 100% {
        transform: translateX(-50%) rotate(-45deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(-45deg) translateY(-10px);
    }
}

.hero-yandex-badge {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    z-index: 10;
}

.hero-yandex-badge i {
    color: #FC3F1D;
    font-size: 20px;
}

.hero-stats-float {
    position: absolute;
    top: 60px;
    right: -15px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--secondary-color);
    animation: floatUp 3s infinite ease-in-out;
    z-index: 3;
}

.hero-stats-float i {
    font-size: 16px;
}

.hero-rating-float {
    position: absolute;
    bottom: 80px;
    left: -25px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-color);
    animation: floatUp 3s infinite ease-in-out;
    animation-delay: 1.5s;
    z-index: 3;
}

.hero-rating-float i {
    font-size: 16px;
}

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

.hero-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-image-badge i {
    color: var(--secondary-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    grid-column: 1 / -1;
    margin-top: 40px;
}

.hero-feature {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: var(--transition);
}

.hero-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.hero-feature-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.hero-feature-text span {
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-cta-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-cta-note i {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 18px 35px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.text-red {
    color: var(--red-color);
}

/* Problem Section */
.problem-section {
    background: var(--bg-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.problem-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.problem-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-color);
}

.problem-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.problem-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stat-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 18px;
    line-height: 1.5;
}

/* Solution Section */
.solution-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.solution-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.solution-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.solution-point {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.solution-point i {
    color: var(--secondary-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.solution-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
}

.solution-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.solution-card-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.solution-card-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Services Section */
.services-section {
    background: var(--bg-gray);
}

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

.service-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.bonus-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid var(--accent-color);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.1);
}

.bonus-card .service-number {
    color: rgba(245, 158, 11, 0.3);
    font-size: 40px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.bonus-card .service-icon {
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-list li i {
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.services-cta {
    text-align: center;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.portfolio-stat i {
    color: var(--accent-color);
}

.portfolio-info {
    padding: 25px;
}

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

.portfolio-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.portfolio-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
}

.portfolio-cta-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.expertise-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.expertise-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How We Work Section */
.how-we-work-section {
    background: var(--bg-gray);
}

.steps-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 25px;
    align-items: start;
    transition: var(--transition);
}

.step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-dark) 100%);
    color: white;
}

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

.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.cta-list li i {
    color: var(--secondary-color);
    font-size: 20px;
}

/* Form */
.cta-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group label span {
    color: var(--text-light);
    font-weight: 400;
}

.form-group input {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
}

.form-note i {
    color: var(--secondary-color);
}

/* Contacts Section */
.contacts-section {
    background: var(--bg-gray);
}

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

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    line-height: 1.6;
}

.footer-links,
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-links a,
.footer-contacts a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-success {
    text-align: center;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), #34d399);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-wrapper,
    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-phone {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

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

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .problems-grid,
    .services-grid,
    .expertise-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .stat-block {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .cta-form {
        padding: 30px 20px;
    }

    .cta-title,
    .solution-title {
        font-size: 28px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-large {
        padding: 15px 25px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .solution-card-number {
        font-size: 28px;
    }

    /* Hero badge - увеличиваем щит */
    .hero-badge {
        padding: 12px 24px;
    }

    .hero-badge i {
        font-size: 20px;
    }

    /* Service cards mobile layout */
    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-number {
        position: static;
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
        font-size: 32px;
        background: rgba(37, 99, 235, 0.05);
        border-radius: 12px;
    }

    .bonus-card .service-number {
        display: none;
    }

    .service-icon {
        order: 0;
        margin: 0 auto 20px;
    }

    .service-title {
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .bonus-card .service-title::before {
        content: '\f06b';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        color: var(--accent-color);
        font-size: 24px;
    }

    .service-list {
        order: 2;
        text-align: left;
    }
}