* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-dark: #1a1209;
            --bg-light: #f5f0e8;
            --accent-gold: #c9a86c;
            --accent-caramel: #b87333;
            --text-dark: #2c1810;
            --text-light: #faf8f5;
            --font-heading: 'Playfair Display', serif;
            --font-body: 'Inter', sans-serif;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background: var(--bg-light);
            color: var(--text-dark);
            overflow-x: hidden;
        }

        /* ===== HERO ===== */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(
                rgba(26, 18, 9, 0.3) 0%,
                rgba(26, 18, 9, 0.1) 40%,
                rgba(26, 18, 9, 0.7) 100%
            ), url('Avatar.jfif');
            background-size: cover;
            background-position: center;
            color: var(--text-light);
            padding: 30px 20px 50px;
            text-align: center;
        }

        .logo {
            font-size: 14px;
            letter-spacing: 6px;
            text-transform: uppercase;
            opacity: 0.9;
            margin-top: 10px;
        }

        .hero-content {
            margin-bottom: 20px;
        }

        .hero h1 {
            font-size: clamp(36px, 10vw, 64px);
            font-weight: 300;
            letter-spacing: 2px;
            margin-bottom: 10px;
            text-shadow: 0 2px 20px rgba(0,0,0,0.5);
        }

        .hero .profession {
            font-size: clamp(16px, 4vw, 22px);
            letter-spacing: 4px;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .scroll-hint {
            animation: bounce 2s infinite;
            font-size: 24px;
            opacity: 0.7;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(10px); }
        }

        /* ===== ОБО МНЕ ===== */
        .about {
    background: #f5f0e8;
    padding: 40px 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #c9a86c;
    margin: 10px auto 0;
}

/* Имя и профессия */
.about-name {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.about-name .highlight {
    text-decoration: underline;
    text-decoration-color: #b87333;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* Линия опыта — жёсткая структура */
.experience-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    font-size: 15px;
    width: 100%;
    
}

.exp-left {
    white-space: nowrap;
    line-height: 1;
    
}

.exp-right {
    white-space: nowrap;
    color: #b87333;
    font-weight: 500;
    line-height: 1;
}

.exp-line {
    display: block;
    width: 50px;
    height: 2px;
    background: #c9a86c;        /* золотой цвет оформления */
    flex-shrink: 0;
    align-self: center;
    border-radius: 1px;          /* слегка скруглённые края */
}

/* Текст — каждое предложение отдельной строкой */
.about-text {
    margin-top: 20px;
}


.about-text p strong {
    font-weight: 600;
    color: #2c1810;
}

.about-text .last {
    margin-top: 12px;
    font-weight: 500;
    color: #2c1810;
}
.about-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 10px 0;
    text-align: center;
}

.about-text .emoji {
    display: inline-block;      /* эмодзи как единый блок */
    white-space: nowrap;       /* запрет переноса */
    margin-left: 4px;          /* небольшой отступ */
}

.about-text .last {
    margin-top: 15px;
    font-weight: 500;
    color: #2c1810;
}

        /* ===== УСЛУГИ ===== */
        .services {
            background: var(--bg-dark);
            color: var(--text-light);
            padding: 50px 25px;
            text-align: center;
        }

        .services .section-title::after {
            background: var(--accent-gold);
        }

        .services-list {
            list-style: none;
            margin-top: 30px;
            max-width: 350px;
            margin-left: auto;
            margin-right: auto;
        }

        .services-list li {
            padding: 15px 0;
            border-bottom: 1px solid rgba(201, 168, 108, 0.2);
            font-size: 17px;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .services-list li:last-child {
            border-bottom: none;
        }

        .service-icon {
            font-size: 22px;
        }

        /* ===== ПОРТФОЛИО ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 25px auto 0;        /* центрируем */
    max-width: 400px;
    padding-bottom: 10px;       /* дополнительный отступ */
}

.portfolio-item {
    height: 200px;              /* фиксированная высота вместо aspect-ratio */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.portfolio .section-title {
    text-align: center;
    display: block;             /* убираем inline-block если был */
    margin-left: auto;
    margin-right: auto;
}
.portfolio {
    padding: 50px 20px 70px;    /* было 50px 20px, добавили 70px снизу */
    text-align: center;
    background: var(--bg-light);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* обрезает лишнее, сохраняет пропорции */
    display: block;
}

 /* Отзовы */

.reviews {
    background: #1a1209;
    color: #faf8f5;
    padding: 50px 20px 60px;
    text-align: center;
}

.reviews-slider {
    max-width: 400px;
    margin: 30px auto 0;
    position: relative;
    min-height: 180px;
    cursor: grab;           /* показывает, что можно тянуть */
    user-select: none;     /* не выделять текст при свайпе */
    touch-action: pan-y;   /* вертикальный скролл работает, горизонтальный — наш */
}

.reviews-slider:active {
    cursor: grabbing;
}

.reviews .section-title::after {
    background: #c9a86c;
}

.reviews-slider {
    max-width: 400px;
    margin: 30px auto 0;
    position: relative;
    min-height: 180px;
}

.review-card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.review-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-stars {
    color: #c9a86c;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 15px;
    padding: 0 10px;
}

.review-author {
    font-size: 14px;
    color: #c9a86c;
    font-weight: 500;
}

.review-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 168, 108, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #c9a86c;
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 18, 9, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1002;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 1002;
}

.lightbox-prev { left: 5px; }
.lightbox-next { right: 5px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
}
        /* ===== КОНТАКТЫ ===== */
        .contacts {
            background: var(--bg-dark);
            color: var(--text-light);
            padding: 50px 25px 100px;
            text-align: center;
        }

        .contacts-list {
            margin-top: 30px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            max-width: 320px;
            margin-left: auto;
            margin-right: auto;
        }

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #faf8f5;
    font-size: 15px;
    transition: all 0.3s ease;     /* плавность */
    border: 1px solid transparent;  /* рамка по умолчанию прозрачная */
}

.contact-item:hover {
    background: rgba(201, 168, 108, 0.15);  /* золотистый фон */
    border-color: #c9a86c;                   /* золотая рамка */
    transform: translateX(8px);              /* сдвиг вправо */
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.2);
}

.contact-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.3);                   /* иконка увеличивается */
}

        .address {
            margin-top: 25px;
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.6;
        }

        /* ===== STICKY КНОПКА ===== */
        .sticky-btn {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--accent-gold);
            color: var(--text-dark);
            text-align: center;
            padding: 16px;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-decoration: none;
            z-index: 100;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
        }

        /* ===== АНИМАЦИИ ===== */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }