/* =======================================
   1. ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦЫ
   ======================================= */
body {
    padding-top: 100px;
    background: var(--color-dark, #1b1411);
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-light, #fcfcfc);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: var(--color-text-light, #fcfcfc);
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: var(--color-text-light, #fcfcfc);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================================
   2. КОНТЕЙНЕРЫ
   ======================================= */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   3. ГЕРОЙ-БЛОК НА ВСЮ ШИРИНУ
   ======================================= */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--color-dark, #1b1411);
    position: relative;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    margin: 0;
}

.hero-content {
    max-width: 896px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto;
}

.hero-title {
    font-size: 70px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text-light, #fcfcfc);
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title .gold-text {
    color: var(--color-gold, #dd9f59);
    font-style: italic;
    font-weight: 400;
    display: inline-block;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-ivory, #fcfce7);
    max-width: 672px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    opacity: 0.9;
}

/* =======================================
   4. ДЕКОРАТИВНАЯ СТРЕЛКА
   ======================================= */
.decorative-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bounce 1s infinite;
    width: 24px;
    height: 24px;
    color: var(--color-gold, #dd9f59);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(-25%);
    }
    50% {
        transform: translateX(-50%) translateY(0);
    }
}

/* =======================================
   5. СЕКЦИЯ УСЛУГ
   ======================================= */
.services-section {
    padding: 40px 0 80px 0;
    margin: 0 auto;
    width: 100%;
    background-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
    color: var(--color-gold, #dd9f59);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(221, 159, 89, 0.2);
}

/* =======================================
   6. ГРИД КАРТОЧЕК
   ======================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

/* =======================================
   7. СОВРЕМЕННЫЕ КАРТОЧКИ В СТИЛЕ САЙТА
   ======================================= */
.service-card {
    width: 100%;
    padding: 35px;
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    border-radius: var(--border-radius, 12px);
    background: var(--color-dark-light, #251c18);
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(221, 159, 89, 0.3), transparent 60%, rgba(221, 159, 89, 0.3));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-medium, rgba(221, 159, 89, 0.4));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.service-card:hover::before {
    opacity: 0.8;
}

/* =======================================
   8. КРУЖОК С ЦИФРОЙ
   ======================================= */
.number-circle {
    width: 45px;
    height: 45px;
    background: rgba(221, 159, 89, 0.1);
    border: 2px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    color: var(--color-gold, #dd9f59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}

.service-card:hover .number-circle {
    transform: scale(1.1);
    background: rgba(221, 159, 89, 0.2);
    border-color: var(--color-gold-medium, rgba(221, 159, 89, 0.4));
}

/* =======================================
   9. ЗАГОЛОВОК КАРТОЧКИ
   ======================================= */
.service-card h3 {
    color: var(--color-gold, #dd9f59);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    line-height: 1.3;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    font-family: 'Cormorant Garamond', serif;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold, #dd9f59), transparent);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100px;
}

/* =======================================
   10. ОПИСАНИЕ КАРТОЧКИ
   ======================================= */
.service-card p {
    color: var(--color-text-light, #fcfcfc);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    opacity: 0.9;
    font-family: 'Open Sans', sans-serif;
}

/* =======================================
   11. КНОПКА "ВЫБРАТЬ"
   ======================================= */
.select-button {
    display: inline-block;
    background: transparent;
    color: var(--color-gold, #dd9f59);
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 50px;
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    text-align: center;
    margin-top: auto;
    font-weight: 500;
    width: auto;
    min-width: 150px;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Open Sans', sans-serif;
}

.select-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(221, 159, 89, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.select-button:hover {
    color: var(--color-ivory, #fcfce7);
    border-color: var(--color-gold, #dd9f59);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(221, 159, 89, 0.2);
}

.select-button:hover::before {
    width: 100%;
}

/* =======================================
   12. КНОПКИ НАВИГАЦИИ
   ======================================= */
.leon-buttons-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    margin-top: 40px;
    background-color: transparent;
    gap: 30px;
}

/* =======================================
   13. АНИМАЦИИ
   ======================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* =======================================
   14. АДАПТИВНОСТЬ
   ======================================= */

/* ПЛАНШЕТЫ - 2 В РЯД */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-title {
        font-size: 50px;
    }

    .service-card {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }
}

/* МОБИЛЬНЫЕ */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .hero-section {
        min-height: calc(100vh - 120px);
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .services-section {
        padding: 30px 0 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .services-grid {
        gap: 25px;
    }

    .service-card {
        padding: 25px;
        border-radius: var(--border-radius, 12px);
    }

    .service-card:hover {
        transform: translateY(-3px);
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .service-card p {
        font-size: 15px;
    }

    .number-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .select-button {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 140px;
    }

    .leon-buttons-container {
        padding: 50px 15px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .decorative-arrow {
        bottom: 15px;
        width: 20px;
        height: 20px;
    }
}

/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ */
@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .services-section {
        padding: 20px 0 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 20px;
    }

    .service-card {
        padding: 30px;
    }

    .service-card:hover {
        transform: translateY(-2px);
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .number-circle {
        width: 38px;
        height: 38px;
        font-size: 15px;
        margin-bottom: 18px;
    }

    .select-button {
        padding: 11px 22px;
        font-size: 13px;
        min-width: 130px;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .services-grid {
        max-width: 350px;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .service-card p {
        font-size: 14px;
    }

    .number-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .select-button {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 120px;
    }
}