﻿/* ========================================
   HOME PAGE STYLES
   Стили блоков главной страницы
======================================== */

/* ----------------------------------------
   HERO — главный экран
---------------------------------------- */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
}

.hero-image-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.65) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 3;
    padding: clamp(60px, 10vh, 120px) 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: white;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    white-space: normal;
    display: inline-block;
    overflow: hidden;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 12px;
    cursor: default;
    text-align: center;
    min-width: clamp(140px, 20vw, 180px);
    max-width: clamp(140px, 20vw, 180px);
    min-height: 120px;
    flex: 0 0 auto;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.hero-feature::before { display: none; }

.hero-feature-icon {
    color: #2A5298;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.hero-feature span:last-child {
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta {
    text-align: center;
    position: relative;
}

.hero-cta-note {
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hero-cta-note::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z' fill='%23C48B9F'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-cta-note:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.hero-image {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    z-index: 1;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ----------------------------------------
   SERVICES PREVIEW — превью услуг
---------------------------------------- */
.services-preview {
    background-color: #F0F4FB;
    background-image: radial-gradient(circle, rgba(27, 58, 107, .1) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    padding: var(--section-padding);
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.services-preview-card {
    background: var(--background-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
}

.services-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.services-card-link:hover { color: inherit; }

.services-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Левая часть — картинка */
.services-card-image {
    position: relative;
    width: 180px;
    min-width: 180px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.services-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: none;
}

.services-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.8), rgba(42, 82, 152, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.services-preview-card:hover .services-card-overlay { opacity: 1; }

.services-card-icon {
    color: white;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.services-preview-card:hover .services-card-icon { transform: scale(1); }

/* Правая часть — контент */
.services-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.services-card-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform var(--transition-fast);
}

.service-item:hover { transform: translateX(4px); }

.service-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 82, 152, 0.12);
    border-radius: 50%;
    font-size: 0.75rem;
}

.service-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.services-card-cta {
    margin-top: 1.25rem;
}

/* ----------------------------------------
   FOR WHO — для кого
---------------------------------------- */
.for-who.section { background-color: #FFFFFF; padding: var(--section-padding); }

.for-who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.for-who-card {
    background: var(--background-white);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.for-who-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.85), rgba(42, 82, 152, 0.7));
    transition: opacity var(--transition-normal);
}

.for-who-card:hover::before { opacity: 0.9; }

.for-who-card-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.for-who-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.for-who-card-icon { margin-bottom: 0.5rem; flex-shrink: 0; }

.for-who-number {
    display: inline-flex;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.for-who-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.for-who-card-title {
    color: white;
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 1px 1px 2px rgba(0,0,0,0.5), 0 0 8px rgba(0,0,0,0.3);
}

.for-who-card-description {
    color: white;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.for-who-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.for-who-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.9) 0%, rgba(42, 82, 152, 0.8) 50%, rgba(15, 35, 71, 0.9) 100%);
    z-index: 1;
}

.for-who-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50%       { transform: rotate(180deg) scale(1.1); opacity: 0.1; }
}

.for-who-cta > * { position: relative; z-index: 2; }

.for-who-cta-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.3;
}

/* ----------------------------------------
   PROJECTS — наши работы
---------------------------------------- */
.projects.section { background-color: #FFFFFF; padding: var(--section-padding); }

.projects-tabs { margin-bottom: 3rem; }

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: var(--background-white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(27, 58, 107, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
}

.projects-content { position: relative; }

.tab-content { display: none; opacity: 0; transition: opacity var(--transition-normal); }
.tab-content.active { display: block; opacity: 1; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.project-year {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-location,
.project-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-location svg,
.project-capacity svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.project-details-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
}

/* ----------------------------------------
   FAQ — часто задаваемые вопросы (на главной)
---------------------------------------- */
.faq { background: linear-gradient(135deg, #F5F6FA 0%, #F4F5FA 100%); padding: var(--section-padding); }

.faq-container { margin-bottom: 3rem; }

.faq-item {
    background: var(--background-white);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(27, 58, 107, 0.1);
    border: 2px solid rgba(27, 58, 107, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(27, 58, 107, 0.3);
    box-shadow: 0 6px 25px rgba(27, 58, 107, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0%, rgba(42, 82, 152, 0.05) 100%);
}

.faq-question-text {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform var(--transition-normal);
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 58, 107, 0.1);
}

.faq-toggle.active {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); }
.faq-answer.active { max-height: 200px; }

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    border-top: 1px solid rgba(27, 58, 107, 0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.faq-answer p { color: var(--text-secondary); line-height: 1.7; margin: 0; }

.faq-contact {
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.08) 0%, rgba(42, 82, 152, 0.12) 100%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(27, 58, 107, 0.15);
    text-align: center;
    border: 2px solid rgba(27, 58, 107, 0.2);
}

.faq-contact h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.8rem; }
.faq-contact p  { margin-bottom: 2rem; color: var(--text-secondary); font-size: 1.1rem; }

.faq-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* конец home.css */

/* ─────────────────────────────────────────
   SECTION BACKGROUNDS — визуальное разнообразие
───────────────────────────────────────── */

/* For-who — белый с диагональными полосами */
.for-who.section {
    background-color: #fff;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(27, 58, 107, .03) 40px,
        rgba(27, 58, 107, .03) 80px
    );
}

/* Projects — светлый нейтральный */
.projects.section {
    background: #F4F6FB;
}

/* FAQ — тёплый кремовый с тонкой сеткой */
.faq {
    background-color: #F5F6FA;
    background-image:
        linear-gradient(rgba(27, 58, 107, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 58, 107, .04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ========================================
   FOR-WHO — редизайн "Наши преимущества"
======================================== */
.for-who.section {
    background:
        radial-gradient(ellipse 65% 45% at 15% -10%, rgba(201,168,76,0.11) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 95% 110%, rgba(42,82,152,0.22) 0%, transparent 50%),
        linear-gradient(160deg, #0F1E3D 0%, #0A1628 60%, #111E3F 100%);
    position: relative;
    overflow: hidden;
}

.for-who.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Золотая горизонтальная линия снизу */
.for-who.section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5) 50%, transparent);
    pointer-events: none;
    z-index: 0;
}

.fw-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Левая колонка */
.fw-label {
    display: inline-block;
    background: rgba(255,215,0,.15);
    color: var(--secondary-color);
    border: 1px solid rgba(255,215,0,.25);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.1rem;
}

.fw-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}

.fw-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.fw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.fw-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: background .2s;
}

.fw-stat:hover { background: rgba(255,255,255,.1); }

.fw-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: .3rem;
    letter-spacing: -1px;
}

.fw-stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    line-height: 1.3;
}

/* Правая колонка — карточки */
.fw-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.fw-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    transition: transform .25s, background .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.fw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform .3s;
}

.fw-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

.fw-card:hover::before { transform: scaleX(1); }

.fw-card-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(27, 58, 107, .3);
}

.fw-card-icon svg { width: 20px; height: 20px; }

.fw-card-title {
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: .6rem;
    letter-spacing: .3px;
    line-height: 1.25;
}

.fw-card-desc {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin: 0;
}

/* Адаптив — см. responsive.css */

