/* ============================================================ */
/* БАЗОВЫЕ СТИЛИ */
/* ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fcfaf7;
    font-family: 'Inter', sans-serif;
    color: #1e1a16;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* ============================================================ */
/* ШАПКА */
/* ============================================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 12px;
    border-bottom: 1px solid #e6dfd7;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo em {
    font-style: italic;
    font-weight: 300;
    color: #a68b75;
    font-size: 20px;
}

/* ============================================================ */
/* ГЛАВНЫЙ БЛОК (текст слева, фото справа) */
/* ============================================================ */

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0 20px;
}

.hero-text {
    flex: 1 1 380px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-text h1 strong {
    font-weight: 600;
}

.hero-text h1 span {
    color: #a68b75;
    font-style: normal;
    font-weight: 400;
}

.hero-text .bio {
    font-size: 16px;
    color: #3d322a;
    max-width: 520px;
    margin-bottom: 20px;
    background: #f4efe9;
    padding: 18px 22px;
    border-radius: 18px;
    border-left: 4px solid #cbb5a4;
}

/* ============================================================ */
/* ФОТО (справа) */
/* ============================================================ */

.hero-photo {
    flex: 0 0 auto;
}

.hero-photo .photo-wrapper {
    position: relative;
    display: inline-block;
}

/* Орбита вокруг фото */
.hero-photo .photo-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 1.5px dashed rgba(166, 139, 117, 0.3);
    animation: spinOrbit 30s linear infinite;
}

/* Декоративные точки на орбите */
.hero-photo .photo-wrapper::after {
    content: '✦ ✦ ✦';
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 12px;
    color: #a68b75;
    opacity: 0.5;
}

.hero-photo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a68b75;
    box-shadow: 0 8px 32px rgba(166, 139, 117, 0.2);
    transition: all 0.4s ease;
    position: relative;
    display: block;
}

.hero-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(166, 139, 117, 0.35);
}

@keyframes spinOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================ */
/* КНОПКИ (оставлены на случай, если понадобятся) */
/* ============================================================ */

.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.btn {
    display: inline-block;  
    padding: 12px 38px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid #a68b75;
    cursor: pointer;
    background: transparent;
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #2d2620;
}

.btn:hover {
    background: #a68b75;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 139, 117, 0.3);
}

/* ============================================================ */
/* УСЛУГИ */
/* ============================================================ */

.services-wrapper {
    margin: 20px 0 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 20px 0;
    text-align: center;
}

.section-title span {
    background: #f4efe9;
    padding: 0 24px;
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    justify-items: center;
}

.service-item {
    background: #fff;
    padding: 12px 18px;
    border-radius: 60px;
    border: 1px solid #ece5dd;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
    width: 100%;
    max-width: 240px;
}

.service-item:hover {
    background: #f9f5f0;
    border-color: #cbb5a4;
    transform: translateX(4px);
}

.service-item .num {
    background: #f4efe9;
    border-radius: 30px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6a5a4b;
    min-width: 28px;
    text-align: center;
}

/* ============================================================ */
/* БЛОК "ДЛЯ ЗАКАЗА" */
/* ============================================================ */

.order-info {
    background: #f4efe9;
    border-radius: 28px;
    padding: 32px 38px;
    margin: 40px 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.order-info h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 6px;
}

.order-info .list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 15px;
    color: #2d2620;
}

.order-info .list span {
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 16px;
    border-radius: 60px;
    backdrop-filter: blur(2px);
}

.order-badge {
    font-size: 15px;
    color: #4d3f34;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 22px;
    border-radius: 60px;
    white-space: nowrap;
}

/* ============================================================ */
/* МЕССЕНДЖЕРЫ */
/* ============================================================ */

.messengers-title {
    text-align: center;
    margin: 10px 0 8px;
}

.messengers-title p {
    font-size: 17px;
    color: #3d322a;
}

.messengers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 30px 0 40px;
}

.messengers a {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 60px;
    background: #fff;
    border: 1px solid #dcd2c8;
    color: #2d2620;
    font-weight: 500;
    text-decoration: none;
    transition: 0.25s;
    font-size: 15px;
    text-align: center;
    flex: 0 1 auto;
}

.messengers a:hover {
    background: #a68b75;
    color: #fff;
    border-color: #a68b75;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(166, 139, 117, 0.25);
}

/* ============================================================ */
/* ФУТЕР */
/* ============================================================ */

.footer {
    border-top: 1px solid #e6dfd7;
    padding: 32px 0 20px;
    margin-top: 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6dfd7;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
}

.footer-brand .sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #7a6c5e;
    display: block;
    margin-top: 4px;
}

.footer-legal {
    font-size: 13px;
    color: #7a6c5e;
    line-height: 1.8;
    text-align: left;
}

.footer-legal .ip {
    font-weight: 500;
    color: #2d2620;
}

.footer-legal .legal-name {
    font-size: 12px;
    color: #7a6c5e;
}

.footer-legal .inn {
    display: block;
    margin-top: 2px;
}

.footer-legal .email {
    margin-top: 4px;
    font-size: 14px;
    color: #2d2620;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #a09082;
    padding-top: 12px;
    margin-top: 6px;
}

/* ============================================================ */
/* МОДАЛЬНОЕ ОКНО */
/* ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    background: #fff;
    border-radius: 28px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 45px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7a6c5e;
    transition: 0.2s;
    padding: 4px 8px;
    border-radius: 30px;
}

.modal-close:hover {
    color: #1e1a16;
    background: #f4efe9;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #1e1a16;
}

.modal-body {
    font-size: 16px;
    line-height: 1.8;
    color: #3d322a;
}

.modal-body p {
    margin-bottom: 18px;
}

.modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    background: #f4efe9;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2d2620;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 6px;
}

.btn-close-modal {
    border: none;
    background: transparent;
    color: #7a6c5e;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 8px 12px;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-close-modal:hover {
    color: #1e1a16;
}

/* ============================================================ */
/* АДАПТИВ ДЛЯ ТЕЛЕФОНА */
/* ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px 18px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .logo em {
        font-size: 17px;
    }

    /* На телефоне меняем порядок: фото сверху, текст снизу */
    .hero {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        padding: 10px 0 10px;
    }

    .hero-text {
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .bio {
        font-size: 15px;
        padding: 14px 16px;
        max-width: 100%;
    }

    .hero-photo .photo-wrapper::before,
    .hero-photo .photo-wrapper::after {
        display: none;
    }

    /* 🔽 УВЕЛИЧЕНО: 140px → 180px */
    .hero-photo img {
        width: 300px;
        height: 300px;
        border-width: 2px;
        box-shadow: 0 4px 16px rgba(166, 139, 117, 0.2);
    }

    .hero-photo img:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 24px rgba(166, 139, 117, 0.3);
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 14px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title span {
        padding: 0 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: stretch;
    }

    .service-item {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 40px;
    }

    .order-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 22px;
        border-radius: 20px;
        gap: 14px;
    }

    .order-info h3 {
        font-size: 20px;
    }

    .order-info .list {
        gap: 10px 16px;
        font-size: 14px;
    }

    .order-info .list span {
        padding: 4px 14px;
    }

    .order-badge {
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .messengers {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 20px 0 30px;
    }

    .messengers a {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-legal {
        text-align: left;
        width: 100%;
    }

    .modal {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-body {
        font-size: 15px;
    }

    .modal-info {
        flex-direction: column;
        gap: 6px;
        font-size: 14px;
    }
}

/* ============================================================ */
/* ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 400px) */
/* ============================================================ */

@media (max-width: 400px) {
    .container {
        padding: 10px 14px;
    }

    /* 🔽 УВЕЛИЧЕНО: 100px → 140px */
    .hero-photo img {
        width: 300px;
        height: 300px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text .bio {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .service-item {
        font-size: 13px;
        padding: 8px 14px;
    }

    .order-info h3 {
        font-size: 18px;
    }

    .modal {
        padding: 20px 16px;
    }

    .modal-title {
        font-size: 20px;
    }
}