/* ==========================================================================
   Головна сторінка
   ========================================================================== */

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface-bright) 0%, var(--surface) 55%, var(--surface-container-low) 100%);
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--gutter);
    align-items: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 56px;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.hero__text {
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
    max-width: 620px;
    margin-bottom: var(--space-md);
}

.hero__art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.hero__art-shape {
    position: relative;
    width: 240px;
    height: 240px;
}

.hero__art-glow {
    position: absolute;
    inset: 0;
    background-color: var(--terracotta);
    opacity: 0.10;
    border-radius: var(--radius-full);
    filter: blur(28px);
}

.hero__art-ring {
    position: absolute;
    inset: 28px;
    border: 2px dashed var(--navy);
    border-radius: var(--radius-full);
    opacity: 0.5;
    animation: hero-spin 24s linear infinite;
}

.hero__art-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background-color: var(--terracotta);
    border-radius: 50% 50% 50% 6px;
    transform: rotate(45deg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__art-pin::after {
    content: '';
    width: 22px;
    height: 22px;
    background-color: var(--surface-bright);
    border-radius: var(--radius-full);
}

@keyframes hero-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__art-ring { animation: none; }
}

@media (max-width: 900px) {
    .hero { padding: var(--space-lg) 0 var(--space-md); }
    .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 0 var(--margin-mobile); }
    .hero__title { font-size: 32px; line-height: 40px; }
    .hero__text { font-size: 16px; line-height: 26px; margin-left: auto; margin-right: auto; }
    .hero__art { min-height: 200px; }
    .hero__art-shape { width: 160px; height: 160px; }
}

/* --- Список міст --- */
.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* --- Переваги --- */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}

.benefit--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
}

.benefit__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.benefit__text {
    font-size: 15px;
    line-height: 24px;
    color: var(--on-surface-variant);
}

@media (max-width: 900px) {
    .benefits__grid { grid-template-columns: 1fr; }
    .benefit--wide { grid-column: span 1; flex-direction: column; }
}

/* --- Послуги --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    display: block;
    background-color: var(--surface-container-lowest);
    border: 1px solid rgba(221, 192, 182, 0.30);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-md);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
    border-color: rgba(181, 80, 31, 0.5);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.service-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(197, 212, 253, 0.5);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s, color 0.25s;
}

.service-card:hover .service-card__icon {
    background-color: rgba(181, 80, 31, 0.10);
    color: var(--terracotta);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.service-card__arrow {
    color: var(--outline-variant);
    transition: color 0.25s;
}

.service-card:hover .service-card__arrow { color: var(--terracotta); }

.service-card__arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.service-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.service-card__text {
    font-size: 15px;
    line-height: 24px;
    color: var(--on-surface-variant);
}

@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .services__grid { grid-template-columns: 1fr; } }

/* --- Кроки --- */
.steps {
    position: relative;
}

.steps__line {
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--outline-variant);
    z-index: 0;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--navy);
    background-color: var(--surface);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--navy);
}

@media (max-width: 900px) {
    .steps__line { display: none; }
    .steps__grid { grid-template-columns: 1fr; gap: var(--space-sm); }
    .step { flex-direction: row; text-align: left; align-items: center; }
}

/* --- Регіональний блок довіри --- */
.region-trust {
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    color: var(--inverse-on-surface);
    padding: var(--space-xl) 0;
}

.region-trust::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 50%, var(--terracotta) 0%, transparent 55%);
    opacity: 0.12;
    pointer-events: none;
}

.region-trust__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.region-trust__title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.region-trust__text {
    font-size: 17px;
    line-height: 28px;
    color: rgba(243, 240, 236, 0.88);
    border-left: 4px solid var(--terracotta);
    padding-left: var(--space-md);
}

.region-trust__text + .region-trust__text {
    margin-top: var(--space-sm);
}

.region-trust__badge {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 1px solid rgba(252, 249, 245, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}

.region-trust__badge svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

@media (max-width: 900px) {
    .region-trust { padding: var(--space-lg) 0; }
    .region-trust__inner { flex-direction: column; padding: 0 var(--margin-mobile); }
    .region-trust__badge { display: none; }
    .region-trust__text { font-size: 16px; line-height: 26px; padding-left: var(--space-sm); }
}

/* --- Фінальний CTA --- */
.final-cta {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.final-cta__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.final-cta__text {
    font-size: 16px;
    line-height: 26px;
    color: var(--on-surface-variant);
    max-width: 680px;
    margin: 0 auto var(--space-md);
}

@media (max-width: 900px) {
    .final-cta__title { font-size: 22px; }
}

/* --- Останні статті на головній --- */
.latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}
