/* =========================================
   HOMEPAGE-SECTIONS.CSS
   Полный CSS для всех секций главной страницы
   ========================================= */

/* === ОБЩИЕ КОНТЕЙНЕРЫ === */
.services-hero,
.about-hero,
.tariffs-section,
.services-grid-section,
.about-story,
.contact-section {
    width: 100%;
}

.services-hero-container,
.services-container,
.tariffs-container,
.about-hero-container,
.about-container,
.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* === ГЕРОЙ СЕКЦИИ УСЛУГ === */
.services-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    z-index: 0;
}

.services-hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.services-hero-description {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* === СЕТКА УСЛУГ НА ГЛАВНОЙ === */
.services-grid-section {
    padding: 4rem 0;
}

.services-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card_dop {
    background-color: #111827;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card_dop:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Иконки услуг */
.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon.blue { background-color: rgba(59, 130, 246, 0.1); }
.service-icon.purple { background-color: rgba(168, 85, 247, 0.1); }
.service-icon.green { background-color: rgba(34, 197, 94, 0.1); }

.icon { width: 1.5rem; height: 1.5rem; }
.service-icon.blue .icon { color: #3b82f6; }
.service-icon.purple .icon { color: #a855f7; }
.service-icon.green .icon { color: #22c55e; }

.service-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
}

.service-card-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.feature-item::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.service-card_dop:nth-child(1) .feature-item { color: #3b82f6; }
.service-card_dop:nth-child(2) .feature-item { color: #a855f7; }
.service-card_dop:nth-child(3) .feature-item { color: #22c55e; }

/* === СЕКЦИЯ ТАРИФОВ === */
.tariffs-section {
    padding: 5rem 0;
}

.tariffs-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3rem;
    text-align: left;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tariff-card {
    background-color: #111827;
    border-radius: 1rem;
    border: 1px solid #1f2937;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tariff-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.tariff-image {
    height: 12rem;
    background-color: #374151;
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111827, transparent);
    z-index: 10;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.placeholder-icon {
    width: 4rem;
    height: 4rem;
}

.tariff-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tariff-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.old-price {
    color: #6b7280;
    text-decoration: line-through;
    font-size: 0.875rem;
}

.current-price {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.tariff-name {
    font-weight: bold;
    font-size: 1.125rem;
    color: white;
    margin-bottom: 0.25rem;
}

.tariff-article {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.tariff-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tariff-details p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.detail-label {
    color: #6b7280;
}

.tariff-button {
    text-decoration: none;
    padding: 0.75rem;
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tariff-button:hover {
    background-color: #3b82f6;
}

.button-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* === СЕКЦИЯ "О КОМПАНИИ" === */
.about-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    z-index: 0;
}

.about-hero-container {
    text-align: center;
}

.about-hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.about-hero-description {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.about-story {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-text-description:last-of-type {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item { text-align: left; }
.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* === СЕКЦИЯ КОНТАКТОВ === */
.contact-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    z-index: 0;
}

.contact-card {
    background: linear-gradient(to bottom right, #111827, #1f2937);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.contact-header { margin-bottom: 2rem; }
.contact-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.contact-description {
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-text {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.contact-form {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #374151;
    backdrop-filter: blur(4px);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.form-input::placeholder {
    color: #6b7280;
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Кнопка отправки — ОДНО кратное определение */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.form-notice {
    font-size: 0.625rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* === ОБЩИЕ СТИЛИ === */
.text-gradient,
.text-highlight-gradient {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.interactive-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interactive-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.6s ease-out both;
}

/* === МЕДИА-ЗАПРОСЫ === */

@media (min-width: 640px) {
    .services-hero-container,
    .services-container,
    .tariffs-container,
    .about-hero-container,
    .about-container,
    .contact-container {
        padding: 0 1.5rem;
    }
    
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        padding: 3rem;
    }
}

@media (min-width: 768px) {
    .services-hero-title,
    .about-hero-title {
        font-size: 3rem;
    }
    
    .contact-title {
        font-size: 2.25rem;
    }
    
    .tariffs-title {
        font-size: 2.25rem;
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        flex-direction: row;
        gap: 3rem;
    }
    
    .contact-info,
    .contact-form-container {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .services-hero-container,
    .services-container,
    .tariffs-container,
    .about-hero-container,
    .about-container,
    .contact-container {
        padding: 0 2rem;
    }
    
    .services-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tariffs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero-title,
    .about-hero-title {
        font-size: 1.75rem;
    }
    
    .services-hero-description,
    .about-hero-description {
        font-size: 1rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .tariffs-title {
        font-size: 1.5rem;
    }
    
    .about-text-title {
        font-size: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .services-hero,
    .about-hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .contact-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .service-card_dop,
    .tariff-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .submit-button {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}