/* ---------- Базовые стили ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Sticky Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    padding: 16px 0;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eef2f6;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF5A5F, #FF8A65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo i {
    background: none;
    color: #FF5A5F;
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
    font-size: 16px;
}

.nav-links a:hover {
    color: #FF5A5F;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2937;
}

/* ---------- Кнопки ---------- */
.btn-primary {
    background: linear-gradient(135deg, #FF5A5F, #FF8A65);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(255, 90, 95, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid #3B82F6;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    color: #3B82F6;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #EFF6FF;
}

.btn-secondary:active {
    background-color: #DBEAFE;
    transform: scale(0.98);
}

/* ---------- Hero ---------- */
.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 80%);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 90, 95, 0.1);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #FF5A5F;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #1e293b, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-utp {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.utp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.utp-item i {
    color: #FF5A5F;
    font-size: 20px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-card {
    background: linear-gradient(145deg, #ffffff, #fef9f0);
    border-radius: 48px;
    padding: 20px;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(255, 90, 95, 0.2);
    transition: transform 0.3s;
    max-width: 380px;
}

.mascot-card:hover {
    transform: translateY(-6px);
}

.mascot-img {
    font-size: 140px;
    background: #FFF2E6;
    border-radius: 60px;
    padding: 20px;
    margin-bottom: 16px;
}

.mascot-card p {
    font-weight: 600;
    color: #FF5A5F;
}

/* ---------- Статистика и доверие ---------- */
.stats {
    background: white;
    padding: 48px 0;
    border-bottom: 1px solid #f1f5f9;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF5A5F, #FF8A65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-cloud {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s;
}

.logo-cloud span {
    font-size: 20px;
    font-weight: 700;
    color: #475569;
    transition: 0.2s;
    cursor: default;
}

.logo-cloud span:hover {
    filter: grayscale(0);
    color: #FF5A5F;
}

/* ---------- Услуги ---------- */
.services {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s;
    border: 1px solid #eef2ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 30px -12px rgba(255, 90, 95, 0.2);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    color: #FF5A5F;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* ---------- Полоса гарантий ---------- */
.guarantee-strip {
    background: linear-gradient(95deg, #111827, #1f2a3e);
    color: white;
    padding: 48px 0;
}

.guarantee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.guarantee-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guarantee-item i {
    font-size: 32px;
    color: #FF8A65;
}

/* ---------- Темная полоса (масштаб сети) ---------- */
.dark-strip {
    background: #0b1120;
    padding: 56px 0;
    text-align: center;
}

.dark-strip h2 {
    font-size: 44px;
    font-weight: 800;
    color: white;
}

.dark-strip p {
    color: #94a3b8;
    font-size: 18px;
    margin-top: 12px;
}

/* ---------- Этапы (таймлайн) ---------- */
.process {
    padding: 80px 0;
    background: #F9FAFB;
}

.timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.timeline-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF5A5F, #FF8A65);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-weight: 800;
    font-size: 24px;
}

/* ---------- Портфолио с фильтрами ---------- */
.portfolio {
    padding: 80px 0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.2s;
    font-size: 15px;
}

.filter-btn.active {
    background: #FF5A5F;
    color: white;
    box-shadow: 0 6px 12px rgba(255, 90, 95, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
    position: relative;
    cursor: pointer;
}

.portfolio-img {
    background: #f1f5f9;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    transition: 0.2s;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    color: white;
    font-weight: 600;
    gap: 12px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-caption {
    padding: 16px;
    font-weight: 600;
}

/* ---------- Форма калькулятора ---------- */
.calculator {
    background: linear-gradient(135deg, #F0F9FF, #ffffff);
    padding: 80px 0;
}

.form-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1.5px solid #D1D5DB;
    background: #F9FAFB;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-btn {
    width: 100%;
    justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
    background: #111827;
    color: #9CA3AF;
    padding: 56px 0 32px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #FF8A65;
}

.social-icons {
    display: flex;
    gap: 16px;
    font-size: 22px;
    cursor: pointer;
}

.social-icons i {
    transition: color 0.2s;
}

.social-icons i:hover {
    color: #FF8A65;
}

.copyright {
    text-align: center;
    border-top: 1px solid #1f2937;
    padding-top: 32px;
}

/* ---------- Адаптивность (mobile) ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
    }
    .timeline {
        flex-direction: column;
        align-items: center;
    }
    .guarantee-grid {
        flex-direction: column;
    }
    .hero-grid {
        flex-direction: column-reverse;
    }
}