:root {
    --bg-dark: #080808;
    --bg-light: #f4f4f4;
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --gold-start: #ffe5a0;
    --gold-end: #e6b763;
    --card-bg: #ffffff;
    --border-rad: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILS */
.btn-gold {
    background: linear-gradient(180deg, var(--gold-start) 0%, var(--gold-end) 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    color: #3b2800;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-gold:hover {
    filter: brightness(1.1);
}

.btn-gold:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid #d4a550;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    background: #ffeebf;
}

.title-main,
.title-center {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    border: 2px solid white;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    font-size: 14px;
    text-transform: uppercase;
}

.nav-desktop a:hover {
    color: var(--gold-end);
}

.header-contacts {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.header-contacts .phone {
    font-size: 18px;
    font-weight: bold;
}

.header-contacts .email {
    font-size: 12px;
    color: var(--text-grey);
}

.header-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin: 5px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: 0.3s;
    display: inline-block;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon.wa {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2325D366" xmlns="http://www.w3.org/2000/svg"><path d="M12.031 6.172c-3.181 0-5.767 2.586-5.768 5.766-.001 1.298.38 2.27 1.019 3.287l-.582 2.128 2.182-.573c.978.58 1.913.928 3.145.929 3.178 0 5.767-2.587 5.768-5.766.001-3.187-2.575-5.77-5.764-5.771zm3.392 5.291l-3.55 1.764c-.1.05-.18.06-.27.06-.09 0-.17-.03-.25-.09l-1.46-1.11c-.13-.1-.17-.28-.1-.44s.28-.23.44-.13l.97.74 3.01-1.5c.16-.08.35-.02.43.14.08.15.02.34-.14.42z"/><path d="M12 0a12 12 0 1 1 0 24 12 12 0 0 1 0-24zm0 2c-5.523 0-10 4.477-10 10 0 1.791.46 3.486 1.258 4.98L2.094 21.65l5.045-1.324A9.956 9.956 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2z"/></svg>');
}

.social-icon.tg {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%232AABEE" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.06-.14-.04-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.77-1.15 3.35-1.35 3.73-1.35.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .24z"/></svg>');
}

/* HERO */
.hero {
    background: url('assets/hero-bg.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.hero-feat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-feat img {
    width: 50px;
}

.hero-feat span {
    font-size: 14px;
    line-height: 1.3;
}

.hero-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-action p {
    max-width: 250px;
    font-size: 13px;
    color: #ddd;
}

/* PROBLEMS */
.section-dark {
    padding: 80px 0;
    background: var(--bg-dark);
}

.title-main {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.subtitle-right {
    text-align: right;
    max-width: 400px;
    margin-left: auto;
    color: var(--text-grey);
    margin-top: -80px;
    margin-bottom: 60px;
    font-size: 14px;
}

.prob-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.prob-card {
    text-align: center;
    padding: 20px;
}

.prob-card img {
    height: 120px;
    margin: 0 auto 20px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
}

.prob-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.prob-card p {
    font-size: 13px;
    color: var(--text-grey);
}

.prob-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prob-card-large {
    text-align: center;
}

.prob-card-large img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.prob-card-large h3 {
    text-transform: uppercase;
    font-size: 16px;
}

/* MIDDLE FORM */
.section-form-middle {
    padding: 40px 0;
    background: var(--bg-dark);
}

.form-card-wide {
    background: white;
    color: black;
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.form-text {
    max-width: 300px;
}

.form-text h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
}

.horizontal-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.horizontal-form input {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 200px;
}

.form-note {
    width: 100%;
    text-align: right;
    margin-top: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* SERVICES */
.title-center {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.serv-card {
    border-radius: var(--border-rad);
    overflow: hidden;
    background: white;
    color: black;
}

.serv-header {
    background: var(--gold-start);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.serv-body {
    padding: 20px;
}

.serv-time,
.serv-price {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.serv-price {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.serv-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ADVANTAGES */
.adv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.adv-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
}

.adv-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.adv-row {
    background: white;
    color: black;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

.adv-row.reverse {
    flex-direction: row-reverse;
}

.adv-text {
    padding: 40px;
    flex: 1;
}

.adv-text h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.adv-row img {
    width: 40%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

/* STEPS */
.section-steps {
    background: url('assets/door-bg.jpg') no-repeat right center/cover;
    padding: 100px 0;
    position: relative;
}

.section-steps::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, transparent 100%);
}

.steps-container {
    position: relative;
    z-index: 2;
}

.steps-content {
    max-width: 600px;
}

.steps-content h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.step-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    font-size: 18px;
}

/* REVIEWS */
.section-light {
    padding: 80px 0;
    background: var(--bg-light);
    color: black;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.review-item:hover {
    transform: translateY(-5px);
}

.review-item img {
    width: 100%;
    display: block;
}

/* FOOTER */
.section-footer {
    background: #050505;
    padding: 80px 0;
}

.footer-layout {
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

.footer-form-card {
    background: white;
    color: black;
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    text-align: center;
}

.vertical-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.vertical-form input {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

.footer-info h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

.info-item {
    margin-bottom: 15px;
    font-size: 18px;
}

.phone-big {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
}

.copyright {
    color: #444;
    margin-top: 50px;
    font-size: 14px;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .subtitle-right {
        text-align: left;
        margin-top: 0;
    }

    .horizontal-form {
        flex-direction: column;
        width: 100%;
    }

    .horizontal-form input {
        width: 100%;
    }

    .form-card-wide {
        justify-content: center;
        text-align: center;
    }

    .adv-row,
    .adv-row.reverse {
        flex-direction: column-reverse;
    }

    .adv-row img {
        width: 100%;
        height: 200px;
    }

    .footer-layout {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .footer-form-card {
        width: 100%;
    }

    .nav-desktop {
        display: none;
    }

    /* Спрятал меню на мобилках пока */
    .section-steps::before {
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Status Messages */
.form-status {
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

/* FOOTER SOCIALS */
.footer-socials {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-btn {
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-btn:hover {
    opacity: 0.9;
}

.wa-btn {
    background: #25D366;
}

.tg-btn {
    background: #229ED9;
}

/* STICKY MOBILE BAR */
.sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .sticky-bar {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        /* Align items to bottom */
        gap: 15px;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        z-index: 1000;
        pointer-events: none;
        /* Allow clicks through the container area */
    }

    .sticky-btn {
        pointer-events: auto;
        /* Re-enable clicks on buttons */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        transition: 0.2s;
        text-decoration: none;
    }

    .sticky-btn:active {
        transform: scale(0.9);
    }

    .sticky-btn.call {
        background: linear-gradient(180deg, var(--gold-start) 0%, var(--gold-end) 100%);
        width: 60px;
        height: 60px;
        font-size: 24px;
        animation: pulse-gold 2s infinite;
        color: #3b2800;
        z-index: 1002;
    }

    .sticky-btn.wa {
        background: #25D366;
    }

    .sticky-btn.tg {
        background: #229ED9;
    }

    @keyframes pulse-gold {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 229, 160, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(255, 229, 160, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(255, 229, 160, 0);
        }
    }
}