* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.4;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: rgba(116, 116, 116, 0);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.top-bar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    background-color: rgba(102, 102, 102, 0);
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.callback-btn {
    background: none;
    border: 2px solid #000;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.callback-btn:hover {
    background: #000;
    color: #fff;
}

.phone-number {
    color: #000;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

/* Кнопка теми */
.theme-toggle {
    background: none;
    border: 2px solid currentColor;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.4s ease, border-color 0.4s ease;
    flex-shrink: 0;
    color: inherit;
    padding: 0;
}

.theme-toggle:hover {
    transform: rotate(25deg) scale(1.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    padding: 100px 0 180px;
    position: relative;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.6)),
        url('mainimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    transition: background 0.4s ease;
}

.hero .main-title,
.hero .main-title span,
.hero .sub-title,
.hero .price-tag,
.hero .description-block h3,
.hero .description-block p,
.hero .feature {
    color: #fff;
}

.hero .feature:before { color: #fff; }

.hero .calculator-btn {
    background: #fff;
    color: #000;
}

.hero .calculator-btn:hover {
    background: #f0f0f0;
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

.message-container { margin: 20px 0; }

.message-sending,
.message-error,
.message-success {
    padding: 10px 0;
    font-size: 16px;
}

.message-sending { color: #ccc; }
.message-error   { color: #ff6b6b; }
.message-success { color: #6bff9e; }

.main-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 30px 0 20px;
    text-transform: uppercase;
    max-width: 900px;
    transition: color 0.4s ease;
}

.sub-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
    transition: color 0.4s ease;
}

.sub-title span {
    font-size: 36px;
    font-weight: 600;
    display: block;
}

.price-tag {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    margin: 30px 0;
    transition: color 0.4s ease;
}

.calculator-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    margin: 30px 0;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.4s ease, color 0.4s ease;
}

.calculator-btn:hover { background: #333; }

.description-block { margin: 40px 0; }

.description-block h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.description-block p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    transition: color 0.4s ease;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.feature {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 25px;
    transition: color 0.4s ease;
}

.social-links {
    display: flex;
    flex-direction: column;  /* зверху вниз */
    gap: 16px;
    margin-top: 40px;
    align-items: flex-end;   /* притиснути вправо */
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.faq-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.faq-left {
    flex: 1;
}

.faq-right {
    display: flex;
    align-items: flex-end;
    padding-top: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.social-link svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex-shrink: 0;
}

/* На мобільному — переноситься під текст */
@media (max-width: 768px) {
    .faq-content {
        flex-direction: column;
    }

    .social-links {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Instagram — лише обводка, без заливки кола */
.social-link svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.social-link svg circle:first-of-type {
    fill: none;
}

.feature:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-size: 18px;
    transition: color 0.4s ease;
}

/* Products Section */
.products {
    padding: 40px 0;
    background: #fff;
    transition: background 0.4s ease;
}

.products .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    border: 1px solid #e0e0e0;
    padding: 30px;
    transition: box-shadow 0.3s ease, background 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card h4,
.product-card h5,
.product-card h6 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.product-card h5 { font-size: 22px; }
.product-card h6 { font-size: 20px; }

.product-price {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin: 20px 0;
    transition: color 0.4s ease;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
    min-height: 120px;
    transition: color 0.4s ease;
}

.details-btn {
    background: none;
    border: 2px solid #000;
    padding: 15px 0;
    width: 100%;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    font-family: 'Montserrat', sans-serif;
}

.details-btn:hover {
    background: #000;
    color: #fff;
}

.top-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s, color 0.4s ease;
    font-family: 'Montserrat', sans-serif;
}

.nav-link:hover { opacity: 0.5; }

/* FAQ Section */
.faq-section {
    background: rgb(0, 0, 0);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    padding: 80px 0;
    margin-top: 40px;
    transition: background 0.4s ease;
}

.faq-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.faq-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 500;
}

.phone-bottom { margin: 40px 0; }

.phone-large {
    color: #fff;
    text-decoration: none;
    font-size: 48px;
    font-weight: 800;
    transition: opacity 0.3s;
}

.phone-large:hover { opacity: 0.8; }

.bottom-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin-top: 40px;
}

/* ================================
   ТЕМНА ТЕМА
   ================================ */
body.dark {
    background-color: #111;
    color: #fff;
}

body.dark .top-bar {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .phone-number { color: #fff; }
body.dark .nav-link { color: #fff; }

body.dark .products { background: #111; }

body.dark .product-card {
    border-color: #333;
    background: #1a1a1a;
}

body.dark .product-card h4,
body.dark .product-card h5,
body.dark .product-card h6,
body.dark .product-price {
    color: #fff;
}

body.dark .product-description { color: #aaa; }

body.dark .details-btn {
    border-color: #fff;
    color: #fff;
}

body.dark .details-btn:hover {
    background: #fff;
    color: #000;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
body.dark .hero::after { background: #111; }

body.dark .faq-section { background: #0a0a0a; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .theme-toggle { margin-left: 0; }

    .phone-number { font-size: 20px; }
    .main-title { font-size: 28px; }
    .sub-title { font-size: 36px; }
    .sub-title span { font-size: 28px; }
    .price-tag { font-size: 32px; }
    .calculator-btn { padding: 15px 40px; font-size: 20px; }
    .faq-title { font-size: 36px; }
    .phone-large { font-size: 32px; }
    .features { flex-direction: column; gap: 20px; }
    .products .container { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 150px; }
    .top-nav { gap: 15px; }
    .nav-link { font-size: 14px; }
}

@media (max-width: 480px) {
    .phone-number { font-size: 18px; }
    .main-title { font-size: 24px; }
    .sub-title { font-size: 28px; }
    .sub-title span { font-size: 22px; }
    .price-tag { font-size: 26px; }
    .faq-title { font-size: 28px; }
    .phone-large { font-size: 24px; }
    .product-price { font-size: 28px; }
}