/* ================= HERO ================= */

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 100px;
    min-height: 82vh;
    background-color: var(--ivory);
}

.hero-left {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero-left h1 {
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero-left h1 .accent {
    font-style: normal;
    font-weight: 500;
    background: linear-gradient(100deg, var(--gold) 10%, var(--gold-soft) 50%, var(--gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-left p {
    margin-top: 28px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 460px;
}

.hero-actions {
    display: flex;
    align-items: center;
    margin-top: 44px;
    flex-wrap: wrap;
    gap: 30px 0;
}

.phone {
    margin-left: 40px;
}

.phone span {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.phone strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
}

.hero-right {
    position: relative;
    z-index: 1;
}

.hero-right::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(184,145,47,0.28) 0%, rgba(184,145,47,0.1) 45%, transparent 72%);
    filter: blur(4px);
    z-index: 0;
    pointer-events: none;
}

.hero-figure-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 340px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.5));
}

/* ================= FADE UP ANIMATION HERO ================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========== WATERMARK =========== */
.watermark {
    position: absolute;
    bottom: -10px;
    left: 100px;
    font-family: var(--font-display);
    font-size: 130px;
    color: rgba(243,236,218,0.045);
    pointer-events: none;
    z-index: 0;
}

/* ================= SERVICES ================= */

.services {
    padding: 20px 100px 130px;
    background: var(--ivory);
}

.services-grid {
    display: block;
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    counter-reset: service-counter;
}

.service-card {
    counter-increment: service-counter;
    width: 100%;
    min-height: 0;
    height: auto;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 44px 10px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: 0.35s ease;
    cursor: default;
    overflow: hidden;
    position: relative;

    opacity: 0;
    transform: translateY(28px);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
    content: "0" counter(service-counter);
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--gold);
    width: 40px;
    flex-shrink: 0;
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.35s ease, background 0.35s ease;
}

.service-card img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
    transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.service-card p {
    margin: 0;
    flex: 1;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    transition: 0.3s ease;
}

.service-card::after {
    content: "→";
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.35s ease;
    flex-shrink: 0;
}

.service-card:hover {
    padding-left: 22px;
    padding-right: 0;
    box-shadow: inset 3px 0 0 var(--gold);
}

.service-card.highlight {
    box-shadow: inset 3px 0 0 var(--gold-dim);
}

.service-card:hover .service-icon {
    border-color: var(--gold);
    background: rgba(184,145,47,0.08);
}

.service-card:hover img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(45%) saturate(500%) hue-rotate(0deg);
    opacity: 1;
    transform: scale(1.08);
}

.service-card:hover p {
    color: var(--gold-soft);
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ================= ABOUT SECTION ================= */

.about {
    position: relative;
    padding: 130px 100px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/about-bg-collage.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.045;
    filter: grayscale(0.3);
    pointer-events: none;
    z-index: 0;
}

.about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--paper) 0%, transparent 25%, transparent 75%, var(--paper) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-header,
.about-content {
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 90px;
}

.about-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.about-header h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    margin-top: 18px;
    line-height: 1.3;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* LEFT SIDE */

.about-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.big-number {
    font-family: var(--font-display);
    font-size: 190px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Divider */

.divider {
    width: 1px;
    height: 260px;
    background: var(--line);
    margin: 0 80px;
}

/* RIGHT SIDE */

.about-right {
    max-width: 480px;
}

.about-right h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-right p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 28px;
}

.more-link {
    display: inline-block;
    margin-bottom: 40px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    transition: 0.3s;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.more-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}


/* ===== SECTION ===== */

.process-section {
    padding: 140px 10%;
    background: var(--ivory);
    text-align: center;
    position: relative;
}

.process-header span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.process-header h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    margin: 18px 0 100px;
}

.process-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
}
.process-line path {
    stroke: var(--line) !important;
}

.process-item {
    width: 22%;
    position: relative;
    z-index: 2;
}

.circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 1px var(--gold-dim), 0 0 0 6px var(--navy-900);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.number {
    position: absolute;
    top: -8px;
    left: 28%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background: var(--navy-900);
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.number span {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    position: relative;
}

.process-item:hover .number {
    background: var(--gold);
    color: var(--navy-900);
}

.process-item:hover .number span {
    animation: numberFlash 0.5s ease;
}

@keyframes numberFlash {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}


.process-item h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 14px;
}

.process-item p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}


.circle::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: 0;
    transform-origin: center;
}

.process-item:hover .circle::after {
    opacity: 1;
    animation: rotateDashed 6s linear infinite;
}

@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =========== REVIEWS SECTION =========== */

.reviews-section {
    display: flex;
    padding: 0;
    background: var(--navy-900);
}

.reviews-container {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.reviews-image {
    width: 42%;
    position: relative;
    border-right: 1px solid var(--gold-dim);
}

.reviews-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,18,25,0.15), rgba(10,18,25,0.55));
}

.reviews-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-content {
    width: 58%;
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.reviews-content h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 500;
    color: var(--ink);
    margin: 18px 0 50px;
    line-height: 1.3;
}

.review-slider {
    position: relative;
    min-height: 200px;
}

.review {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review.active {
    opacity: 1;
    position: relative;
}

.quote {
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1;
    color: var(--gold);
}

.review h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
}

.review .text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted-light);
    margin-bottom: 20px;
}

.stars {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
}

/* =========== rev controls =========== */

.reviews-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 11;
}

.reviews-controls button {
    background: none;
    border: 1px solid var(--line-dark);
    color: var(--ink);
    padding: 9px 16px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}

.reviews-controls button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-900);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 6px;
    height: 6px;
    background: var(--line-dark);
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: var(--gold);
}

/* ======== 1200px< ======== */


@media (max-width: 1200px) {
    .hero {
        display: flex;
        flex-direction: column-reverse;
        padding: 40px 20px 60px;
        text-align: center;
        min-height: auto;
    }
    .hero-left {
        max-width: 100%;
        margin-top: 30px;
    }
    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-figure-img {
        width: 200px;
    }
    .hero-right::before {
        width: 320px;
        height: 320px;
    }
    .hero-left h1 {
        font-size: 52px;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .phone {
        margin-left: 0;
    }
    .services {
        padding: 0 20px 60px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        padding: 80px 30px;
    }
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .divider {
        display: none;
    }

    .watermark {
        left: 5%;
        font-size: 70px;
    }

    .reviews-content {
        padding: 60px 50px;
    }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
    .hero-left h1 {
        font-size: 38px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .service-card {
        padding: 28px 4px;
        gap: 16px;
    }

    .service-card::before {
        width: 30px;
        font-size: 14px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-card img {
        width: 22px;
        height: 22px;
    }

    .service-card p {
        font-size: 19px;
    }

    .service-card::after {
        display: none;
    }

    /* Секция "О нас" */
    .about-header h2{
        font-size: 30px;
        font-weight: 500;
    }
    .big-number {
        font-size: 110px;
    }

    .about-right h3 {
        font-size: 24px;
    }

    .about-right p {
        font-size: 16px;
    }

    /* Секция процесса */
    .process-section {
        padding: 70px 8%;
    }
    .process-header h2 {
        margin: 18px 0 60px;
        font-size: 30px;
    }
    .process-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .process-item {
        width: 100%;
    }

    .process-line {
        display: none;
    }
    /* Отзывы */
    .reviews-container {
        flex-direction: column;
    }

    .reviews-image {
        width: 100%;
        height: 260px;
    }
    .reviews-content {
        width: 100%;
    }

    .reviews-content {
        padding: 50px 24px;
    }
    .reviews-content h2 {
        font-size: 28px;
    }

    .review .text {
        font-size: 16px;
    }
}
/* Маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 32px;
    }

    .gold-btn {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
    }

    .side-menu {
        width: 100%;
    }
}
