*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #999999;
    --accent: #dcb386;
    --border-color: #262626;
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body{
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 300;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h2{
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: lowercase;
}
h3{ font-size: 36px; font-weight: 500; }
h4{ font-size: 28px; font-weight: 400; }
p{ font-size: 20px; }

/* ===== Единый цвет SVG-иконок ===== */
.icon {
    width: 50px;
    height: 50px;
    /* Универсальный фильтр: любой исходный цвет → #dcb386 */
    filter: brightness(0) saturate(100%)
            invert(78%) sepia(19%) saturate(666%)
            hue-rotate(344deg) brightness(93%) contrast(87%);
    transition: transform .3s ease, filter .3s ease;
}
/* ===== Меню навигации ===== */
menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 150px;
    position: relative;
    z-index: 100;
}
.logo{ width: 50%; }
.logo img{ height: 30px; }

.burger{
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}
.burger span{
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    transition: transform .3s ease, opacity .3s ease;
}
.burger.active span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

.nav-menu{ max-width: 550px; width: 100%; }
ul{ display: flex; list-style: none; }
li{ margin: auto; }

a{
    text-decoration: none;
    font-size: 18px;
    color: var(--text-main);
    position: relative;
    transition: color .3s ease;
}

/* Подчёркивание-эффект для ссылок */
.nav-menu a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}
.nav-menu a:hover{ color: var(--accent); }
.nav-menu a:hover::after{ width: 100%; }

/* ===== Главная секция ===== */
.hero-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 150px;
    margin: 50px 0;
}
.hero-content{ text-align: left; width: 425px; flex-shrink: 0; }
.hero-content p{ font-size: 28px; }
.hero-content h1{
    font-size: 96px;
    font-weight: 500;
    line-height: 90px;
    margin-bottom: 30px;
}
.hero-title{ color: var(--accent); }
.hero-content h4{
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 50px;
    line-height: 30px;
}

.hero-btns{ display: flex; gap: 10px; flex-wrap: wrap; }
button{ font-family: inherit; cursor: pointer; }

.hero-btn-1, .hero-btn-2{
    font-size: 20px;
    padding: 15px 20px;
    border-radius: 30px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.hero-btn-1{
    background-color: var(--accent);
    border: none;
    color: #0a0a0a;
}
.hero-btn-2{
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent);
}
.hero-btn-1:hover, .hero-btn-2:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(220, 179, 134, 0.35);
}
.hero-btn-1:hover{ background: #e8c39a; }
.hero-btn-2:hover{ background: var(--accent); color: #0a0a0a; }

.hero-img img{
    max-width: 550px;
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--accent);
}

/* ===== Блок со статистикой ===== */
.stats { padding: 100px 150px; }
.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    padding: 30px 60px;
}
.block {
    text-align: center;
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: center;   /* центрируем иконку и текст по горизонтали */
    justify-content: center;
}
.block .icon {
    margin: 0 auto 10px;   /* дополнительная страховка + отступ снизу */
}
.block p { font-size: 24px; }

/* ===== Мои услуги ===== */
.services{ padding: 50px 150px; }
.services-container{ display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.card{
    flex: 1 1 300px;
    max-width: 360px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(220, 179, 134, 0.2);
}
.card p{ margin: 7px 0; }
.card-img{
    margin-top: 10px;
    max-height: 210px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(70%);
    transition: filter .3s ease;
}
.card:hover .card-img{ filter: brightness(95%); }
.card-btn{
    height: 60px;
    width: 60px;
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 8px 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, background .3s ease;
}
.card-btn img{ transform: rotate(180deg); width: 24px; }
.card-btn:hover{
    transform: scale(1.12) rotate(45deg);
    background: #e8c39a;
}

/* ===== Секция с работами ===== */
.stages-of-works-and-my-works{
    padding: 50px 150px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.stages-of-works-container{
    padding: 25px 25px 40px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    flex: 1 1 400px;
    max-width: 450px;
}
.stages{ margin-top: 30px; }
.stage{
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 10px;
}
.stage .icon{ width: 40px; height: 40px; flex-shrink: 0; }
.stage-info p{ font-size: 16px; }

.my-works-container{
    padding: 25px 25px 40px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    flex: 1 1 400px;
}
.my-works-grid{
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.website{
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--text-muted);
    transition: transform .35s ease, border-color .35s ease;
}
.website:hover{
    transform: scale(1.04);
    border-color: var(--accent);
}
.website img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Отзывы (адаптировано под тёмную тему) ===== */
.reviews{ margin: 0 150px; padding: 60px 0; }
.reviews__title{
    text-align: center;
    font-size: 40px;
    font-weight: 400;
    text-transform: lowercase;
    margin-bottom: 12px;
}
.reviews__subtitle{
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 48px;
}

.slider{
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px;
    cursor: grab;
}
.slider:active{ cursor: grabbing; }

.slider__track{
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review{
    flex: 0 0 calc((100% - 48px) / 3);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: border-color .3s ease, transform .3s ease;
}
.review:hover{
    border-color: var(--accent);
    transform: translateY(-4px);
}

.review__stars{
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.review__text{
    font-size: 15px;
    line-height: 1.65;
    color: #cfcfcf;
    flex-grow: 1;
    margin-bottom: 24px;
}
.review__author{
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.review__avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #b8916a);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review__name{
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}
.review__role{ font-size: 13px; color: var(--text-muted); }

/* Стрелки слайдера */
.slider__btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--card-bg);
    color: var(--accent);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    z-index: 10;
}
.slider__btn:hover:not(:disabled){
    background: var(--accent);
    color: #0a0a0a;
    transform: translateY(-50%) scale(1.08);
}
.slider__btn:disabled{ opacity: .35; cursor: not-allowed; }
.slider__btn--prev{ left: 8px; }
.slider__btn--next{ right: 8px; }

/* Точки */
.slider__dots{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}
.slider__dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a3a;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}
.slider__dot.is-active{
    background: var(--accent);
    width: 28px;
    border-radius: 6px;
}

/* ===== Призыв к действию ===== */
.call-to-action{ padding: 60px 150px; }
.cta-container{
    padding: 45px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border: 1px solid var(--accent);
    border-radius: 24px;
    background: linear-gradient(135deg, #141414 0%, #1c1712 100%);
    position: relative;
    overflow: hidden;
}
.cta-content{
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 720px;
}
.cta-title h3{
    font-size: 40px;
    line-height: 1.15;
    text-transform: lowercase;
}
.cta-title h3::first-letter{ text-transform: uppercase; }
.cta-info{
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-info p{
    font-size: 16px;
    color: var(--text-muted);
    max-width: 360px;
}
.cta-btn{
    font-size: 18px;
    padding: 16px 28px;
    border: none;
    border-radius: 30px;
    background: var(--accent);
    color: #0a0a0a;
    white-space: nowrap;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.cta-btn:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(220, 179, 134, .4);
    background: #e8c39a;
}
.cta-img{
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .4s ease;
}
.cta-img:hover{ transform:  scale(1.1); }
.cta-arrow{
    font-size: 56px;
    color: var(--accent);
    line-height: 1;
}

/* ===== Подвал ===== */
footer{
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding: 50px 150px 30px;
}
.footer-container{
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.soc-networks, .contacts, .copyright{
    flex: 1 1 200px;
}
.soc-networks h4, .contacts h4{
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--accent);
}
.footer-links{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li{ margin: 0; }
.footer-link{
    font-size: 16px;
    color: var(--text-muted);
    transition: color .3s ease, padding-left .3s ease;
}
.footer-link:hover{
    color: var(--accent);
    padding-left: 6px;
}
.copyright{
    text-align: right;
}
.footer-logo{
    height: 30px;
    margin-bottom: 12px;
    margin-left: auto;
}
.copyright p{
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Анимации появления при скролле ===== */
.reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible{
    opacity: 1;
    transform: translateY(0);
}

/* ===== Адаптив ===== */
@media (max-width: 1200px) and (min-width: 769px) {
    /* Масштабируем всю страницу, чтобы десктопная сетка поместилась */
    html {
        zoom: 0.82;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    html {
        zoom: 0.72;
    }
}

@media (max-width: 850px) and (min-width: 769px) {
    html {
        zoom: 0.64;
    }
}

/* ===== Мобильные: перестройка в одну колонку ===== */
@media (max-width: 768px) {
    menu, .hero-container, .stats, .services,
    .stages-of-works-and-my-works, .reviews,
    .call-to-action, footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    .reviews { margin: 0 24px; }

    /* Бургер-меню */
    .burger { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        max-width: 100%;
        transform: translateY(-150%);
        transition: transform .4s ease;
        z-index: 99;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu ul { flex-direction: column; padding: 20px 24px; }
    .nav-menu li { margin: 10px 0; }

    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { width: 100%; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-content h1 { font-size: 56px; line-height: 56px; }

    .review { flex: 0 0 calc((100% - 24px) / 2); }

    .cta-container { flex-direction: column; align-items: flex-start; }
    .cta-title h3 { font-size: 30px; }
    .copyright { text-align: left; }
    .footer-logo { margin-left: 0; }
}

@media (max-width: 620px) {
    menu, .hero-container, .stats, .services,
    .stages-of-works-and-my-works, .reviews,
    .call-to-action, footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .reviews { margin: 0 16px; }

    h2 { font-size: 30px; }
    h3 { font-size: 26px; }
    h4 { font-size: 20px; }
    p { font-size: 17px; }

    .hero-content h1 { font-size: 44px; line-height: 44px; }
    .hero-content p { font-size: 22px; }
    .hero-btn-1, .hero-btn-2 { font-size: 17px; padding: 13px 18px; width: 100%; }

    .stats-container { padding: 24px 20px; }
    .block p { font-size: 18px; }

    .my-works-grid { grid-template-columns: 1fr; }
    .review { flex: 0 0 100%; }
    .slider__btn { width: 40px; height: 40px; font-size: 18px; }
    .slider__btn--prev { left: 2px; }
    .slider__btn--next { right: 2px; }

    .cta-title h3 { font-size: 24px; }
    .cta-container { padding: 30px 24px; }
    .cta-img { width: 90px; height: 90px; }
    .cta-arrow { font-size: 36px; }

    footer { padding-bottom: 20px; }
}