/* ====== Базовые переменные бренда (близко к gk-europeya.ru) ====== */
:root {
    --brand: #153a44;
    /* темно-бирюзовый */
    --accent: #e1a12e;
    /* золотисто-оранжевый */
    --bg: #0e2430;
    /* темный фон геро */
    --text: #0b1020;
    /* основной текст */
    --muted: #5b6477;
    /* вторичный текст */
    --card: #ffffff;
    /* фон карточек */
    --surface: #f6f8fb;
    /* светлый фон секций */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: #fff;
}

a {
    color: var(--brand);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== Хедер (структура статична, данные — из JSON) ====== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid #e5eaf2;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 220px;
    height: 60px;
    object-fit: contain;
}

.brand-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.call {
    display: flex;
    align-items: center;
    gap: 10px;
}

.call a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #dbe1ee;
}

.call a:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(225, 161, 46, .25);
}

/* ====== Hero ====== */
.hero {
    background: radial-gradient(1200px 500px at 20% 0%, #12323d 0%, var(--bg) 70%);
    color: #fff;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 52px 0;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.1;
    margin: 0 0 12px;
}

.hero p {
    color: #c7e0ea;
    margin: 0 0 20px;
    max-width: 56ch;
}

.hero .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.hero-main-title {
    font-size: 40px !important;    
}

/* ====== Hero Services Grid ====== */
.hero-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.service-card:hover .service-text {
    transform: translateY(-4px);
}

.service-text {
    position: relative;
    z-index: 2;
    color: #fff;
    transition: transform 0.3s ease;
    width: 100%;
}

.service-text h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.service-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    color: #e8e8e8;
}

/* ====== Адаптив для service cards ====== */
@media (max-width: 1024px) {
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 40px;
    }

    .service-card {
        min-height: 220px;
        padding: 16px;
    }

    .service-text h3 {
        font-size: 15px;
    }

    .service-text p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    .brand img {
        width: 110px;
        height: 30px;
    }

    .call {
        margin: 5px 5px;
    }

    .call a {
        font-size: 14px !important;
        padding: 5px 7px; 
    }

    .nav {
        padding: 6px 10px;
    }

    .hero-main-title {
        font-size: 18px !important;    
    }

    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 32px;
    }

    .service-card {
        min-height: 200px;
        padding: 14px;
    }

    .service-text h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .service-text p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 24px;
    }

    .service-card {
        min-height: 180px;
        padding: 12px;
    }

    .service-text h3 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .service-text p {
        font-size: 10px;
    }
}

/* ====== Секции ====== */
section {
    padding: 24px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(20px, 3.3vw, 28px);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid #e7ecf7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img.media {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #eef2ff;
}

.card .body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pill {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #1b1b1b;
    font-weight: 600;
}

.list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.row {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 3fr 4fr 3fr 2fr;
    align-items: center;
    border: 1px solid #e7ecf7;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
}

.row strong {
    font-weight: 600;
}

.surface {
    background: var(--surface);
}

/* ====== Футер ====== */
footer {
    background: #0f2730;
    color: #e2e8f0;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.footer-col {
    grid-column: span 12;
}

.footer-col h4 {
    margin: 0 0 8px;
}

.footer-col a {
    color: #ffffff;
}

/* ====== Адаптив ====== */
@media (min-width: 720px) {
    .card {
        grid-column: span 6;
    }

    .footer-col {
        grid-column: span 6;
    }
}

@media (min-width: 1024px) {
    .card {
        grid-column: span 4;
    }

    .footer-col {
        grid-column: span 4;
    }
}

@media (max-width: 840px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .row {
        grid-template-columns: 1.5fr 2fr 1.5fr 1fr;
    }
}

.accordion-container {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: var(--radius);
}

.accordion-slider {
    display: flex;
    height: 100%;
    position: relative;
}

.accordion-slide {
    flex: 1;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    filter: grayscale(0.5);
}

.accordion-slide:hover {
    filter: grayscale(0);
}

.accordion-slide.accordion-slide--active {
    flex: 2.5;
    filter: grayscale(0);
}

.accordion-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 80%);
}

.accordion-slide--active::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 1) 100%);
}

.accordion-slide-content {
    position: absolute;
    bottom: 60px;
    left: 30px;
    right: 30px;
    color: white;
    z-index: 2;
}

.accordion-slide.accordion-slide--active .accordion-slide-content {
    width: 80%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.accordion-slide-content__price {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    position: absolute;
    top: 36px;
    left: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-slide.accordion-slide--active .accordion-slide-content__price {
    top: calc(100% - 36px - 1em);
}

.accordion-slide-content__name {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-slide.accordion-slide--active .accordion-slide-content__name {
    font-size: 24px;
    font-weight: 600;
}

.accordion-slide-content-details {
    opacity: 0;
    position: absolute;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.accordion-slide.accordion-slide--active .accordion-slide-content-details {
    opacity: 1;
    position: relative;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.accordion-slide-content-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-slide.accordion-slide--active .accordion-slide-content-details-row {
    opacity: 1;
    transform: translateX(0);
}

.accordion-slide-content-details-row__label {
    color: rgba(255, 255, 255, 0.9);
}

.accordion-slide-content-details-row__value {
    color: white;
    font-weight: 600;
}

.accordion-slide__expand-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 3;
}

.accordion-slide__expand-button::before,
.accordion-slide__expand-button::after {
    content: "";
    position: absolute;
    background: var(--accent);
    transition: all 0.4s ease;
}

.accordion-slide__expand-button::before {
    width: 12px;
    height: 2px;
}

.accordion-slide__expand-button::after {
    width: 2px;
    height: 12px;
    transform: rotate(0deg);
}

.accordion-slide.accordion-slide--active .accordion-slide__expand-button::before {
    transform: rotate(0deg);
}

.accordion-slide.accordion-slide--active .accordion-slide__expand-button::after {
    opacity: 0;
    transform: scale(0);
}

.accordion-navigation-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 4;
}

.accordion-navigation-previous {
    left: 20px;
}

.accordion-navigation-next {
    right: 20px;
}

.accordion-navigation-arrows:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

@media (max-width: 768px) {

    .accordion-container {
        height: auto;
    }

    .accordion-slider {
        flex-direction: column;
    }

    .accordion-slide {
        flex: 1;
        min-height: 200px;
    }

    .accordion-slide--active {
        min-height: 300px;    
    }

    .accordion-slide.accordion-slide--active {
        flex: 2;
    }

    .accordion-slide-content__name {
        font-size: 20px;
        font-weight: 300;
    }

    .accordion-slide.accordion-slide--active .accordion-slide-content__name {
        font-size: 24px;
        font-weight: 600;
    }
}