/* 
  RespectIT - Базовые стили 
*/

:root {
    --primary-color: #0d47a1; /* Темно-синий корпоративный */
    --secondary-color: #ff6d00; /* Акцентный оранжевый */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #1a233a;
    --border-color: #e0e0e0;
    --radius: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary-color);
}

.section-line {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-header.center .section-line {
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0a357a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e66200;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-dark);
}

.logo span {
    color: var(--secondary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы на фоне */
.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13,71,161,0.05) 0%, rgba(13,71,161,0) 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bg-dark);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card.highlight {
    background-color: var(--bg-dark);
    color: #fff;
}

.service-card.highlight .service-title {
    color: #fff;
}

.service-card.highlight .service-list li::before {
    color: var(--secondary-color);
}

.service-card.highlight .service-list li {
    color: #ddd;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 25px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Как мы работаем (Шаги) */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    width: 18%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step-item:hover .step-number {
    background-color: var(--primary-color);
    color: #fff;
}

.step-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.step-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Тарифы */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-title {
    font-size: 24px;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    min-height: 40px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    position: relative;
    padding-left: 25px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-btn {
    margin-top: auto;
}

/* CTA секция */
.cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #0a357a 100%);
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--bg-dark);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.form {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.form-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #a0aec0;
    margin-top: 20px;
    max-width: 300px;
}

.footer-brand .logo {
    color: #fff;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: #a0aec0;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #111827;
    padding: 20px 0;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 991px) {
    .about-grid, .contacts-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .steps-container::before {
        display: none;
    }
    .step-item {
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header .btn {
        display: none; /* Скрываем кнопку в шапке на мобильных */
    }
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav.active {
        right: 0;
    }
    .nav-link {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
}