* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Общие стили */
html {
    height: 100%;
    overflow-x: hidden;     /* ← Добавлено */
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('img/background10.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* Хедер */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
}

/* ЛОГО */
.logo {
    height: 90px;
    transition: 0.3s;
}
.logo:hover {
    transform: scale(1.05);
}

/* ТЕЛЕФОН */
.header-phone {
    font-family: 'Times New Roman', Times, serif;
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.header-phone:hover {

    color: #ffa500;
}

/* ===== NAV DESKTOP ===== */
.site-nav {
    display: flex;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.site-nav a {
    color: #ffd700;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: 0.3s;
}

.site-nav a:hover::after {
    width: 100%;
}

/* ===== BURGER ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
    transition: 0.3s;
}

/* АНИМАЦИЯ БУРГЕРА */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== OVERLAY (затемнение) ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 90;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .header-phone {
        display: none;
    }

    .logo {
        height: 55px;
    }

    .burger {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 80px);

        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);

        display: flex;
        justify-content: center;
        align-items: center;

        transition: 0.3s;
        z-index: 100;
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .site-nav a {
        font-size: 1.4rem;
    }
}
/* Раздел калькулятора */
.calculator-section {
    padding: 100px 20px 60px;
    background-image: url('img/background10.jpeg');
    flex: 1;
    padding-top: 100px;   /* отступ от fixed хедера */
    padding-bottom: 60px;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.calculator-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
}

.gold-line {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.calculator-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Форма */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.calc-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.calc-form input,
.calc-form select {
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.calc-form input:focus,
.calc-form select:focus {
    border-color: #ffa500;
    outline: none;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Кнопка рассчитать */
.calc-btn {
    background: linear-gradient(90deg, #ffd700, #ffa500);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Результат */
.calc-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff8dc;
    border-radius: 10px;
    border: 1px solid #ffd700;
    font-size: 1.3rem;
}

.calc-result h3 {
    margin-top: 0;
    color: #ff8c00;
}

/* Футер */
footer {
    margin-top: auto;
    background-color: #000;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 20px;
}

/* Контейнер */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
    flex-wrap: wrap;
}

/* Блок */
.footer-block {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ссылки */
.footer-block a {
    color: #d4af37;
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: underline;
}
/* Адаптив */
@media (max-width: 768px) {

    .calculator-container {
        padding: 0 20px;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 👈 одинаково */
    gap: 30px;
    align-items: stretch;
}

/* карточки */
.calc-left > * {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px;
}

/* отступы между карточками */
.calc-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-right {
    display: flex;
}

.price-box {
    width: 100%;
    background: #fff;
    border: 2px solid #d4af37;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-box p {
    font-size: 14px;
    color: #777;
}

.price-box h2 {
    font-size: 40px;
    margin: 10px 0;
    color: #111;
    font-weight: 700;
}

.price-box small {
    color: #999;
}
.order-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    transform: scale(1.03);
}

/* МОДАЛКА */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#sendBtn {
    background: #d4af37;
    color: white;
}

#closeModal {
    background: #ccc;
}
select {
    margin-top: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: 0.2s;
}

/* стрелка */
select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* hover */
select:hover {
    border-color: #d4af37;
}

/* focus */
select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

input[type="number"] {
    width: 120px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    gap: 10px;
    cursor: pointer;
}
/* адаптив */
@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }

    .calc-right {
        position: static;
    }
}
.hidden {
    display: none;
}

.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== МОБИЛКА ===== */
@media (max-width: 768px) {

    /* отступ сверху (из-за fixed header) */
    .calculator-section {
        padding-top: 140px;
    }

    /* заголовок */
    .calculator-title {
        font-size: 2rem;
    }

    .calculator-text {
        font-size: 1rem;
    }

    /* ГЛАВНОЕ — меняем порядок */
    .calc-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* 👉 цена СВЕРХУ */
    .calc-right {
        order: -1;
    }

    /* карточка цены */
    .price-box {
        padding: 20px;
    }

    .price-box h2 {
        font-size: 28px;
    }

    /* карточки */
    .calc-left > * {
        padding: 15px;
    }

    /* инпуты */
    input[type="number"] {
        width: 100%;
    }

    select {
        font-size: 14px;
        padding: 10px;
    }

    /* чекбоксы */
    .checkbox-group {
        gap: 8px;
    }

    /* слайдер */
    .range-slider input[type="range"] {
        height: 10px;
    }

    /* увеличим зону клика */
    .range-slider input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .range-slider input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }

    /* футер */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
}
.range-slider {
    margin: 25px 0;
}

.range-slider label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px; /* ← теперь реально работает */
    font-weight: 600;
}

.range-slider span {
    color: #d4af37;
    font-weight: 700;
}

/* СЛАЙДЕР */
.range-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    outline: none;
}

/* бегунок */
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ffa500;
    cursor: pointer;
    margin-top: -7px;
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ffa500;
}