:root {
    --primary-orange: #E85D04;
    --primary-dark: #bd4d05;
    --dark-gray: #1A1A1A;
    --dark-gray2: #080808;
    --medium-gray: #4A4A4A;
    --light-gray: #F5F5F5;
    --telegram-blue: #0088cc;
    --telegram-dark-blue: #0170a7;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--white);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-gray);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--dark-gray);
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    overflow: hidden;

    /* Для ПК — горизонтальное фото 16:9 */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.75) 0%, rgba(45, 45, 45, 0.75) 100%),
                url('../img/hero-desktop.jpg') center/cover no-repeat;
}

/* Для мобильных — показываем фото полностью по ШИРИНЕ */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.75) 0%, rgba(45, 45, 45, 0.75) 100%),
                    url('../img/hero-mobile.jpg') center/cover no-repeat;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(232, 93, 4, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0 2.5rem;
    font-weight: 500;
}

/* Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary222:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-gray);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-secondary2 {
    background: var(--dark-gray);
    color: var(--white);
    border-color: var(--dark-gray);
}

.btn-secondary2:hover {
    background: var(--dark-gray2);
    border-color: var(--dark-gray2);
    transform: translateY(-2px);
}

.btn-telegram_button {
    background: var(--telegram-blue);
    color: var(--white);
    border-color: var(--telegram-blue);
}

.btn-telegram_button:hover {
    background: var(--telegram-dark-blue);
    border-color: var(--telegram-dark-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn svg {
    flex-shrink: 0;
}

/* Products Section */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.product-card.highlight {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-orange);
    color: var(--white);
}

.product-card.highlight h3,
.product-card.highlight p {
    color: var(--white);
}

.product-card.highlight .product-icon svg {
    stroke: var(--white);
}

.product-icon {
    margin-bottom: 1.5rem;
    display: block;
}

.product-icon svg {
    stroke: var(--primary-orange);
}

.product-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.product-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Delivery Section */
.delivery {
    background: var(--light-gray);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.delivery-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-orange);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.delivery-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.delivery-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    opacity: 0.2;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.delivery-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.delivery-card p {
    font-size: 0.9375rem;
}

/* Advantages Section */
.advantages {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.advantage-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.9375rem;
}

/* Audience Section */
.audience {
    background: var(--light-gray);
}

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

.audience-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.audience-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.audience-icon svg {
    stroke: var(--primary-orange);
}

.audience-card h3 {
    font-size: 1.125rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--primary-orange);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* Contacts Section */
.contacts {
    background: var(--light-gray);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contacts-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.contact-icon svg {
    stroke: var(--primary-orange);
}

.contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--primary-dark);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 0.75rem;
}

.link-arrow svg {
    stroke: var(--primary-orange);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
    border: 1px solid var(--border-color);

    /* Разрешаем touch-события для карты */
    touch-action: auto;
    -webkit-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;

    /* Разрешаем взаимодействие с картой */
    pointer-events: auto;
    touch-action: pan-x pan-y pinch-zoom;
}

/* Contact Form Section */
.contact-form {
    background: var(--dark-gray);
    color: var(--white);
}

.contact-form .section-header h2,
.contact-form .section-subtitle {
    color: var(--white);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
    animation: fadeInUp 0.5s ease-out;
}

.success-message svg {
    stroke: #22C55E;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--medium-gray);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0; /* Убрали 1.5rem с боков, оставили только сверху/снизу */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    padding: 0 1.5rem; /* Добавили padding в контейнер */
}

footer p {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp Button */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0088cc;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .products-grid,
    .delivery-grid,
    .advantages-grid,
    .audience-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .telegram-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }
    
    .advantage-number {
        font-size: 2.5rem;
    }
}

/* Product cards as links */
.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover h3 {
    color: var(--primary-orange);
}

/* Category page styles */
.category-hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    padding: 4rem 0 3rem;
    color: var(--white);
}

.category-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.products-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.product-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.product-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.product-item .unit {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.category-cta {
    background: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.category-cta h2 {
    margin-bottom: 1.5rem;
}

.category-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Product items with images */
.product-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.product-price {
    text-align: right;
}

@media (max-width: 768px) {
    .product-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .product-image {
        width: 80px;
        height: 80px;
    }

    .product-price {
        grid-column: 2;
        text-align: left;
        margin-top: 0.5rem;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    background: var(--white);
}

/* Lightbox (модальное окно для увеличения) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-orange);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .lightbox-close {
        right: 20px;
        font-size: 30px;
    }
}

/* Убираем синее выделение на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Запрещаем выделение только где не нужно */
a, button, .btn, .product-card, .gallery-item {
    -webkit-user-select: none;
    user-select: none;
}

/* Разрешаем выделение текста */
p, h1, h2, h3, span, li, input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Разрешаем всё для карты */
.map-container, .map-container * {
    -webkit-user-select: auto !important;
    user-select: auto !important;
    touch-action: auto !important;
}

/* Lightbox */
.lightbox {
    touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    touch-action: pinch-zoom;
}

.map-wrapper {
    position: relative;
    isolation: isolate;
}

/* Линия на весь экран (игнорируем padding) */
.footer-line {
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Developer Credit без border-top */
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding-bottom: 0.5rem;
}

.developer-credit span {
    color: rgba(255, 255, 255, 0.5);
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #FF8C5A;
    transform: scale(1.05); /* Увеличение на 5% */
}

.developer-link svg {
    flex-shrink: 0;
}