/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Safari на iPhone уголемява текста при завъртане в хоризонтално
       положение, ако това не е изрично изключено. */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    overflow-x: hidden;
    background: #faf8f5;
}

/* Котвите не бива да сядат под закачената лента отгоре. */
section[id] {
    scroll-margin-top: 80px;
}

/* Изображенията никога не изкарват хоризонтален скрол. */
img,
iframe,
video {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #8b6f47;
    background: linear-gradient(135deg, #8b6f47, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    gap: 10px;
}



.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b6f47, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8b6f47;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc8 50%, #d4c4a8 100%);
    color: #4a4a4a;
    min-height: 100vh;
    /* На телефон 100vh включва и лентата с адреса, тоест е по-високо от
       видимото. Резултатът е отрязано съдържание и подскачащо оформление,
       когато лентата се скрие при скрол. svh мери реално видимото. */
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%238b6f47" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}



.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #6b5b47;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #5a5a5a;
    line-height: 1.8;
}

/* Hero Benefits */
.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.benefit-item i {
    color: #8b6f47;
    font-size: 1.1rem;
    width: 20px;
}

.benefit-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a4a4a;
}

/* Hero Highlights */
.hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.highlight-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #8b6f47;
    margin-bottom: 10px;
}

.highlight-text ul {
    list-style: none;
    padding: 0;
}

.highlight-text li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #6b5b47;
    position: relative;
    padding-left: 15px;
}

.highlight-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b6f47;
    font-weight: bold;
}

/* Hero CTA Section */
.hero-cta {
    text-align: center;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 0.9rem;
    color: #8b6f47;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(139, 111, 71, 0.1);
    border-radius: 10px;
    border-left: 4px solid #8b6f47;
}

.stock-info {
    font-size: 0.85rem;
    color: #6b5b47;
    margin-top: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: inline-block;
}

/* Hero Price */
.hero-price {
    display: flex;
    align-items: center;
    /* wrap — на тесен екран „безплатна доставка" слиза на нов ред,
       вместо да свива цената или да излиза извън екрана. */
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-price-amount {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #8b6f47;
}

.free-shipping {
    background: rgba(139, 111, 71, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #8b6f47;
}

.cta-button {
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 111, 71, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product Badges */
.product-showcase {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge.new {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.badge.popular {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(139, 111, 71, 0.2);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #faf8f5 0%, #f0ede8 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #4a4a4a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 111, 71, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.feature-card p {
    color: #6b5b47;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: white;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc8 100%);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 111, 71, 0.1);
}

.product-video {
    width: 100%;
    height: auto;
    display: block;
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Order Section */
.order {
    padding: 80px 0;
    background: linear-gradient(135deg, #faf8f5 0%, #f0ede8 100%);
}

.order-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.order-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6b6357;
}

/* Тънка рамка в топъл сив тон. Двупикселовата синьо-сива рамка правеше
   всяко поле да изглежда като изскачащ бутон и се биеше с останалия сайт. */
.form-group input,
.form-group select,
.form-group textarea,
.locator-manual-fields input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd5c8;
    border-radius: 10px;
    /* 16px навсякъде — под тази стойност iOS зумва при фокус. */
    font-size: 16px;
    font-family: inherit;
    color: #3f3a33;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

/* Стрелката на падащото меню изчезва с appearance: none — рисуваме я. */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b7d68' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.locator-manual-fields input::placeholder {
    color: #b3aa9b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.locator-manual-fields input:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.12);
}

.order-summary {
    background: #faf8f5;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.summary-item.total {
    border-top: 2px solid #e1e5e9;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #8b6f47;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
}

/* Изпращането минава през мрежата и записване на файл — без индикация
   бутонът изглежда мъртъв и клиентът натиска втори път. */
.submit-button:disabled {
    cursor: progress;
    opacity: 0.85;
}

.submit-button:disabled:hover {
    transform: none;
}

.submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: submit-spin 0.7s linear infinite;
}

.submit-button.is-loading .submit-spinner {
    display: inline-block;
}

.submit-button.is-loading .submit-icon {
    display: none;
}

@keyframes submit-spin {
    to { transform: rotate(360deg); }
}

/* Въртящото се колело е декорация — при изключени анимации остава статично,
   а текстът "Изпращане…" носи информацията. */
@media (prefers-reduced-motion: reduce) {
    .submit-spinner {
        animation: none;
    }
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 111, 71, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.2);
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a4a4a;
}

.info-card p {
    color: #6b5b47;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #4a4a4a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d4c4a8;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.2);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Видимостта се управлява с клас, не с inline style — така медия заявката
   може да смени display на flex за телефон, без !important. */
.modal.is-open {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #8b6f47;
    font-size: 1.3rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

/* Office Selection Styles */
/* ---------------------------------------------------------------
   Избор на куриер и офис
   Адресната доставка отпадна — клиентът избира куриер, после офис
   от iframe картата на съответния куриер.
   --------------------------------------------------------------- */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a4a4a;
}

.courier-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.courier-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.courier-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.courier-option-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    min-height: 64px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.courier-option-body strong {
    font-size: 1.05rem;
    color: #4a4a4a;
}

.courier-option-body small {
    font-size: 0.8rem;
    color: #777;
}

.courier-option input:checked + .courier-option-body {
    border-color: #8b6f47;
    background: #faf7f2;
}

/* Клавиатурна навигация — иначе фокусът е невидим, защото radio-то е скрито. */
.courier-option input:focus-visible + .courier-option-body {
    outline: 2px solid #8b6f47;
    outline-offset: 2px;
}

.locator-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.locator-hint {
    font-size: 0.88rem;
    color: #6b6b6b;
    line-height: 1.5;
    margin: 0;
}

.locator-frame-shell {
    position: relative;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f5f1;
    min-height: 420px;
}

.locator-frame-shell iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.locator-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
    background: #f7f5f1;
}

.locator-loading[hidden] {
    display: none;
}

.locator-manual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.locator-manual-fields label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a4a4a;
}

/* Блокът стои винаги, дори празен.
   Ако се появяваше чак при избор на офис, картата и бутонът под нея
   подскачаха надолу точно в момента, в който клиентът е докоснал пин —
   най-лошият момент за разместване на страницата. */
.selected-office-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 14px 16px;
    background: #f6f5f2;
    border: 1px dashed #d8d3c8;
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.selected-office-display.is-selected {
    background: #f1f7f1;
    border-style: solid;
    border-color: #cfe3cf;
}

.selected-office-empty {
    font-size: 0.9rem;
    color: #8a8578;
}

/* След избор картата се прибира. Остава само потвърждението с бутон за
   промяна — така високият панел на куриера не разтяга страницата. */
.locator-group.is-confirmed .locator-frame-shell,
.locator-group.is-confirmed .locator-hint,
.locator-group.is-confirmed .locator-manual-toggle {
    display: none;
}

.change-office-btn {
    align-self: flex-start;
    margin-top: 10px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #b9d2b9;
    border-radius: 10px;
    background: #fff;
    color: #3f6b3f;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.change-office-btn:hover {
    background: #f4faf4;
}

.selected-office-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4c7a4c;
}

.selected-office-name {
    font-size: 1rem;
    color: #2f4f2f;
}

.selected-office-address {
    font-size: 0.88rem;
    color: #55705a;
}

/* ---------------------------------------------------------------
   Двойно обозначаване на цената (EUR водещо, BGN справочно)
   --------------------------------------------------------------- */
.price-secondary {
    font-size: 1.05rem;
    font-weight: 500;
    color: #7a6a55;
}

.summary-secondary {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-top: -6px;
}

/* ---------------------------------------------------------------
   Мобилна навигация
   --------------------------------------------------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    margin: 0 auto;
    background: #6b5535;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   Закачена лента с цена и бутон (само телефон)
   --------------------------------------------------------------- */
.sticky-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease;
}

.sticky-bar.is-hidden {
    transform: translateY(110%);
}

.sticky-bar-price strong {
    display: block;
    font-size: 1.25rem;
    color: #6b5535;
}

.sticky-bar-price small {
    font-size: 0.75rem;
    color: #777;
}

.sticky-bar-button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* ---------------------------------------------------------------
   Многостраничен сайт — общи елементи
   --------------------------------------------------------------- */
.logo {
    text-decoration: none;
}

.nav-links a.is-active {
    color: #8b6f47;
    font-weight: 600;
}

/* Бутонът „Купи" в менюто е основното действие — различава се визуално. */
.nav-cta {
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: #fff !important;
    font-weight: 600;
}

.page-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc8 100%);
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #6b5535;
    margin-bottom: 14px;
}

.page-lead {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #5a5a5a;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #8a7c66;
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: #8b6f47;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---- Карти към отделните страници (начална) ---- */
.explore {
    padding: 70px 0;
    background: #faf8f5;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.explore-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(139, 111, 71, 0.14);
}

.explore-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: #fff;
    font-size: 1.2rem;
}

.explore-card h3 {
    font-size: 1.25rem;
    color: #4a4a4a;
}

.explore-card p {
    color: #6b5b47;
    line-height: 1.6;
}

.explore-link {
    margin-top: auto;
    font-weight: 600;
    color: #8b6f47;
}

/* ---- Доверие ---- */
.trust {
    padding: 60px 0;
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* ---- Финален призив ---- */
.final-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc8 100%);
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    color: #6b5535;
    margin-bottom: 10px;
}

.final-cta p {
    color: #5a5a5a;
    margin-bottom: 26px;
}

.final-cta .cta-button,
.hero-cta .cta-button {
    display: inline-flex;
    text-decoration: none;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.88rem;
    color: #6b5b47;
    line-height: 1.6;
}

/* ---- Таблица със спецификация ---- */
.spec-section {
    padding: 60px 0;
    background: #fff;
}

/* Таблицата скролва в собствения си контейнер, а не изкарва цялата
   страница настрани на тесен екран. */
.spec-table-wrap {
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee7dc;
}

.spec-table th {
    width: 42%;
    font-weight: 600;
    color: #6b5535;
}

.spec-table td {
    color: #5a5a5a;
}

/* ---- Приложения ---- */
.usecases {
    padding: 60px 0;
    background: #faf8f5;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.usecase {
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.07);
}

.usecase h3 {
    font-size: 1.1rem;
    color: #6b5535;
    margin-bottom: 8px;
}

.usecase p {
    color: #6b5b47;
    line-height: 1.6;
}

.gallery-item figcaption {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #6b5b47;
    background: #fff;
}

.video-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.88rem;
    color: #6b5b47;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.footer-links a:hover,
.footer-contact:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   Страница с поръчката
   --------------------------------------------------------------- */
.checkout {
    padding: 100px 0 60px;
    background: #faf8f5;
}

.checkout-container {
    max-width: 720px;
}

.checkout-title {
    font-size: 2rem;
    color: #6b5535;
    margin-bottom: 20px;
}

/* Какво купувам и за колко — най-отгоре, преди да се пише каквото и да е. */
.checkout-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid #ece5d9;
    border-radius: 14px;
}

.checkout-product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-product-info strong {
    font-size: 1.05rem;
    color: #4a4a4a;
}

.checkout-product-info > span {
    font-size: 0.88rem;
    color: #8a8071;
}

.checkout-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #8b6f47;
    white-space: nowrap;
}

.checkout-product-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #9a9184;
}

/* Стъпките разбиват формата на смилаеми части — на телефон разликата
   между „едно дълго поле след поле" и три стъпки е осезаема. */
.form-step {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
}

.form-step legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b5535;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b6f47, #a67c52);
    color: #fff;
    font-size: 0.9rem;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #8a8578;
}

/* Ръчните полета са резервен вариант — скрити зад details, за да не
   утежняват основния път. */
.locator-manual-toggle summary {
    cursor: pointer;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #8b6f47;
}

.locator-manual-toggle[open] summary {
    margin-bottom: 10px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 24px 0;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #6b5535;
}

.modal-body {
    padding: 12px 24px 28px;
}

.modal-body p {
    margin-bottom: 10px;
    color: #5a5a5a;
}

.modal-body .cta-button {
    margin-top: 12px;
}

.close {
    font-size: 1.8rem;
    line-height: 1;
    color: #a9a293;
    cursor: pointer;
    padding: 0 4px;
}

.close:hover {
    color: #6b5535;
}

/* ---------------------------------------------------------------
   Responsive
   Телефонът е водещият сценарий — тук се правят и по-едрите
   цели за докосване, и пренареждането на hero-то.
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero-то вече не се разтяга на цял екран. Снимката е първа, а под нея
       следват предимствата — да заемат точно толкова, колкото им трябва. */
    .hero {
        min-height: auto;
        padding: 90px 0 40px;
    }

    /* Плаващата анимация е 6-секунден безкраен цикъл. На телефон е
       разсейваща и държи GPU-то будно за нищо. */
    .product-showcase {
        animation: none;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .features,
    .gallery,
    .video-section,
    .order {
        padding: 50px 0;
    }

    /* 300px висока снимка на телефон изяжда половин екран за галерия. */
    .gallery-item img {
        height: 220px;
    }

    .gallery-grid,
    .footer-content {
        gap: 20px;
    }

    /* Иконите за социални мрежи бяха 40px — под минимума за пръст. */
    .social-links a {
        width: 44px;
        height: 44px;
    }

    /* Попъпът беше с margin: 15% auto — на нисък екран излизаше надолу.
       Центрираме го и му даваме таван с вътрешен скрол. */
    .modal.is-open {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        max-height: 85svh;
        overflow-y: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transition: max-height 0.25s ease;
    }

    .nav-links.is-open {
        max-height: 300px;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
    }

    .sticky-bar {
        display: flex;
    }

    /* Лентата отдолу не бива да покрива края на страницата. */
    body {
        padding-bottom: 76px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Снимката отива преди стената от текст — на телефон продуктът
       трябва да се види, без да се скролва. */
    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo-text {
        font-size: 20px;
    }

    .order-container {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-text {
        text-align: left;
    }

    .product-badges {
        top: 10px;
        left: 10px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Полетата стават 16px, иначе iOS зумва при фокус и клиентът
       остава с уголемена страница насред формата. */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 15px;
    }

    .submit-button,
    .cta-button {
        width: 100%;
        min-height: 52px;
    }

    /* Картата на куриера е най-важната стъпка от поръчката — по-ниска от
       това и в нея не се вижда нищо освен пинове. */
    /* Панелът на куриера с работно време и бутони е висок — под 460px
       се показва наполовина и клиентът скролва вътре в iframe-а. */
    .locator-frame-shell,
    .locator-frame-shell iframe {
        min-height: 460px;
        height: 460px;
    }

    .locator-manual {
        grid-template-columns: 1fr;
    }

    .courier-option-body {
        min-height: 56px;
        padding: 14px 16px;
    }

    .order-summary {
        font-size: 1.05rem;
    }

    .nav-links a {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .order-form {
        padding: 20px;
    }

    .hero-benefits,
    .hero-highlights {
        margin-bottom: 20px;
    }

    .benefit-item {
        padding: 10px 12px;
    }

    .benefit-item span {
        font-size: 0.85rem;
    }

    .highlight-text h3 {
        font-size: 0.9rem;
    }

    .highlight-text li {
        font-size: 0.85rem;
    }

    .cta-text {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .stock-info {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* На тесен екран двете карти за куриер не се събират една до друга. */
    .courier-choice {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* ---------------------------------------------------------------
   Responsive — многостраничната част
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-hero {
        padding: 95px 0 30px;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }

    .page-lead {
        font-size: 1rem;
    }

    .explore,
    .trust,
    .final-cta,
    .spec-section,
    .usecases {
        padding: 45px 0;
    }

    .explore-grid,
    .trust-grid,
    .usecase-grid {
        gap: 16px;
    }

    .final-cta h2 {
        font-size: 1.6rem;
    }

    /* Менюто е вертикално — бутонът „Купи" не бива да е на цял ред
       с фон, който изглежда като заглавие. */
    .nav-cta {
        display: inline-block;
        margin: 12px 0;
        text-align: center;
    }

    .checkout {
        padding: 90px 0 40px;
    }

    .checkout-title {
        font-size: 1.7rem;
    }

    .checkout-product img {
        width: 68px;
        height: 68px;
    }

    .checkout-product-price {
        font-size: 1.15rem;
    }

    /* Формата заема цялата ширина — рамка и сянка само крадат място. */
    .order-form {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .form-step {
        padding: 18px 16px;
        margin-bottom: 18px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(139, 111, 71, 0.07);
    }

    .spec-table th,
    .spec-table td {
        padding: 12px 10px;
        font-size: 0.92rem;
    }

    .spec-table th {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.7rem;
    }

    .checkout-product {
        gap: 12px;
        padding: 12px;
    }

    .explore-card {
        padding: 22px 18px;
    }
}

/* ---------------------------------------------------------------
   Въпроси и отговори
   Всеки въпрос е h2 в собствен article — така търсачките разпознават
   структурата и без JSON-LD, а екранните четци я обхождат нормално.
   --------------------------------------------------------------- */
.faq {
    padding: 60px 0;
    background: #fff;
}

.faq-container {
    max-width: 800px;
}

.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid #eee7dc;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #6b5535;
    margin-bottom: 8px;
}

.faq-item p {
    color: #5a5a5a;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq {
        padding: 40px 0;
    }

    .faq-item {
        padding: 18px 0;
    }

    .faq-item h2 {
        font-size: 1.05rem;
    }
}

/* ---------------------------------------------------------------
   Страници по приложения
   --------------------------------------------------------------- */
.spec-section .faq-container p {
    margin-bottom: 16px;
    color: #5a5a5a;
    line-height: 1.75;
}

.spec-section .faq-container h2 {
    margin: 32px 0 12px;
    font-size: 1.4rem;
    color: #6b5535;
}

.spec-section .faq-container h2.section-title {
    margin-top: 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    color: #5a5a5a;
    line-height: 1.7;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b6f47;
    font-weight: 700;
}

/* Картите с другите приложения са линкове, не просто блокове. */
a.usecase {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.usecase:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(139, 111, 71, 0.13);
}

@media (max-width: 768px) {
    .spec-section .faq-container h2 {
        margin: 26px 0 10px;
        font-size: 1.2rem;
    }
}
