html {
  scroll-behavior: smooth;
}

:root {
  /* Color Variables - Фирменный стиль */
  --primary: #FF5214;
  --primary-hover: #e63e00;
  --primary-light: #fff5f3;
  
  --secondary: #000000;
  --secondary-light: #333333;
  
  --beige: #EFE8DD;
  --beige-light: #F5F0E8;
  --beige-dark: #D4C4A8;
  
  --background: #FFFFFF;
  --background-alt: #F5F5F5;
  --background-dark: #f8f9fa;
  
  --gray-light: #F5F5F5;
  --gray-medium: #e8e8e8;
  --gray-dark: #666666;
  --gray-text: #999999;
  
  --white: #FFFFFF;
  --success: #27ae60;
  --success-dark: #229954;
  --success-light: #d4edda;
  --success-border: #c3e6cb;
  --success-text: #155724;
  --error: #e74c3c;
  --error-light: #f8d7da;
  --error-border: #f5c6cb;
  --error-text: #721c24;
  --warning: #f39c12;
  --warning-light: #fff3cd;
  --warning-text: #856404;
  --info-light: #d1ecf1;
  --info-text: #0c5460;
  --text-dark: #212529;
  --text-medium: #495057;
  
  /* Typography Variables */
  --font-primary: 'Arial', sans-serif;
  --font-heading: 'Arial Black', Arial, sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 4rem;
  --font-size-7xl: 5rem;
  --font-size-8xl: 8rem;
  
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  
  --letter-spacing-tight: -0.05em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  
  /* Spacing & Layout Variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
html {
  font-size: 16px;
}

body {
    background-color: #ffffff;
}

/* Header */
.header {
    font-family: 'Montserrat', sans-serif;
}

/* Ряд 1: Тёмная полоска */
.header__top {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
}

.header__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.header__tagline {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.header__client {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header__client a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.header__client a:hover {
    opacity: 0.8;
}

.header__client svg {
    flex-shrink: 0;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header__phone,
.header__email {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.header__phone:hover,
.header__email:hover {
    opacity: 0.8;
}

.header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.header__icon:hover {
    opacity: 0.8;
}

.header__icon svg {
    width: 13px;
    height: 13px;
}

/* Ряд 2: Белая навигация */
.header__nav {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header__nav .nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 50px;
}

.header__nav .nav__logo img {
    height: 100%;
    width: auto;
}

.header__nav .nav__menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header__nav .nav__menu li a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.header__nav .nav__menu li a:hover {
    color: #FF5214;
    transform: translateY(-2px);
}

/* Responsive Header */
@media (max-width: 992px) {
    .header__container {
        gap: 15px;
    }

    .header__tagline {
        font-size: 12px;
    }

    .header__phone,
    .header__email {
        font-size: 12px;
    }

    .header__contacts {
        gap: 12px;
    }

    .header__client a {
        font-size: 12px;
    }
}

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

    .header__container {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .header__left {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .header__tagline {
        display: none;
    }

    .header__contacts {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .header__client a,
    .header__phone,
    .header__email {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header__top {
        padding: 6px 0;
    }

    .header__container {
        padding: 0 10px;
        gap: 4px;
    }

    .header__left {
        gap: 8px;
    }

    .header__client a {
        font-size: 11px;
    }

    .header__contacts {
        gap: 8px;
    }

    .header__phone {
        font-size: 11px;
    }

    .header__email {
        display: none;
    }

    .header__icon {
        width: 20px;
        height: 20px;
    }

    .header__icon svg {
        width: 11px;
        height: 11px;
    }
}

/* Hero Section */
.hero {
    background-color: #e8e8e8;
    background-image: url("/static/myapp/images/new_baner.224841ea8f60.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 550px;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Обратная совместимость со старым классом */
.orang__text {
    max-width: 600px;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.korp__pres {
    color: #FF5214;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin-bottom: 24px;
    margin-top: 0;
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.pain-over-btn {
    background-color: #FF5214;
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 82, 20, 0.2);
}
.buttons-wrapper {
    display: flex;     
    gap: 20px;       
    flex-wrap: wrap;     
}


.pain-over-btn:hover {
    background-color: #e04812;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 82, 20, 0.4);
}

.unpain-btn {
    background-color: transparent;
    color: #484848;
    border: 2px solid #FF5214;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.unpain-btn:hover {
    background-color: #FF5214;
    color: #fff;
    border-color: #FF5214;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 82, 20, 0.3);
}

/* Responsive для hero */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 36px;
    }

    .hero__content,
    .orang__text {
        padding: 40px 0;
    }
}

/* Адаптив для разрешения 883x412 */
@media (max-width: 900px) and (max-height: 450px) {
    .hero {
        min-height: 400px;
    }

    .hero__content,
    .orang__text {
        max-width: 500px;
        padding: 30px 15px 30px 30px;
    }

    .korp__pres {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .hero__title {
        font-size: 32px;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .buttons-wrapper {
        gap: 15px;
    }

    .pain-over-btn {
        padding: 14px 35px;
        font-size: 16px;
    }

    .unpain-btn {
        padding: 12px 33px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .hero {
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
        min-height: auto;
        padding: 0;
    }

    .hero__overlay {
        display: none;
    }

    .hero__container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-width: 100%;
    }

    .hero__content,
    .orang__text {
        padding: 400px 20px 30px;
        text-align: left;
        align-items: flex-start;
    }

    .hero__title {
        font-size: 20px;
    }

    .hero__subtitle {
        font-size: 10px;
        line-height: 1;
    }

    .buttons-wrapper {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .pain-over-btn,
    .unpain-btn {
        display: inline-flex;
        justify-content: center;
        width: auto;
        flex: 1;
        margin: 0;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Gifts Section - Секция каталога */
.gifts-section {
    background-color: #F8F8F8;
    padding: 60px 20px;
}

.gifts-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.gifts-section h2 {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    color: #000;
    margin-bottom: 50px;
    letter-spacing: 4px;
    font-family: 'Arial Black', Arial, sans-serif;
}

/* Product Type Selector - Кнопки выбора типа */
.product-type-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.product-btn {
    background-color: transparent;
    color: #000;
    border: 1px solid #e0e0e0;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-btn:hover {
    border-color: #FF5214;
    color: #FF5214;
}

.product-btn.active {
    background-color: #FF5214;
    color: #fff;
    border-color: #FF5214;
}

/* Catalog Content - Основной контент */
.catalog-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}

/* Фикс для Grid: разрешаем дочерним элементам сжиматься */
.catalog-content > * {
    min-width: 0;
}

/* Product Display - Левая часть с изображением */
.product-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Preview placeholder */
.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 14px;
}

/* Кнопка глазик - только на мобилке */
.tg-preview-btn {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .tg-preview-btn {
        display: flex;
    }
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.main-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.product-svg-container svg,
.product-svg-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Thumbnail Gallery - Миниатюры */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #F0F1F3;
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #FF5214;
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #e04812;
}

.thumbnail-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-width: 70px;
    min-height: 70px;
}

.thumbnail-item.active {
    border-color: var(--primary, #FF5214);
    box-shadow: 0 4px 15px rgba(255, 82, 20, 0.25);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #FF5214;
}

.thumbnail-item:focus {
    outline: 3px solid #FF5214;
    outline-offset: 3px;
}

/* Order Form - Правая часть с формой */
.order-form-container {
    background-color: #FFFFFF;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.order-form-container h3 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

#gift-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-section label {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Select Inputs */
.form-section select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: #333;
    background-color: #F8F9FA;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.form-section select:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #F0F1F3;
}

.form-section select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 82, 20, 0.15);
    background-color: #FFFFFF;
}

.form-section select::placeholder {
    color: #B0B5BA;
    font-size: 16px;
}

/* Volume Buttons - Кнопки выбора объёма */
.radio-group {
    display: flex;
    gap: 20px;
}

.volume-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 24px;
    background-color: #F8F9FA;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex: 1;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.volume-btn:hover {
    background-color: #FFF5F3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.volume-btn.active {
    background-color: #FF5214;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(255, 82, 20, 0.3);
}

.placeholder-text {
    font-size: 16px;
    color: #B0B5BA;
    font-style: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Placeholder styles for all inputs */
.form-section input::placeholder,
.form-section select::placeholder,
.form-section textarea::placeholder {
    color: #B0B5BA;
    font-size: 16px;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.form-section input::-webkit-input-placeholder,
.form-section select::-webkit-input-placeholder,
.form-section textarea::-webkit-input-placeholder {
    color: #B0B5BA;
    font-size: 16px;
}

.form-section input::-moz-placeholder,
.form-section select::-moz-placeholder,
.form-section textarea::-moz-placeholder {
    color: #B0B5BA;
    font-size: 16px;
}

.form-section input:-ms-input-placeholder,
.form-section select:-ms-input-placeholder,
.form-section textarea:-ms-input-placeholder {
    color: #B0B5BA;
    font-size: 16px;
}

/* Template Gallery - Шаблоны */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}

.template-gallery::-webkit-scrollbar {
    height: 6px;
}

.template-gallery::-webkit-scrollbar-track {
    background: #F0F1F3;
    border-radius: 10px;
}

.template-gallery::-webkit-scrollbar-thumb {
    background: #FF5214;
    border-radius: 10px;
}

.template-gallery::-webkit-scrollbar-thumb:hover {
    background: #e04812;
}

.template-item {
    aspect-ratio: 1;
    background-color: #FFFFFF;
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-width: 80px;
    min-height: 80px;
}

.template-item:hover {
    border-color: #FF5214;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.template-item:hover .template-preview-btn {
    opacity: 1;
    visibility: visible;
}

.template-item.selected {
    border-color: #FF5214;
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(255, 82, 20, 0.25);
}

.template-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о шаблоне (название и цена) */
.template-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.template-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-info .template-price {
    font-size: 12px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
}

/* Кнопка превью на карточке шаблона */
.template-preview-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #FF5214;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.template-preview-btn:hover {
    background: #FF5214;
    transform: scale(1.1);
}

.template-preview-btn:hover svg {
    stroke: white;
}

.template-preview-btn svg {
    stroke: #FF5214;
    transition: stroke 0.3s ease;
}

.template-preview-btn:active {
    transform: scale(0.95);
}

/* Показывать кнопку на мобильных всегда */
@media (max-width: 768px) {
    .template-preview-btn {
        opacity: 1;
        visibility: visible;
        width: 32px;
        height: 32px;
        top: 6px;
        right: 6px;
    }
    
    .template-preview-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Tooltip styles */
.with-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tooltip-icon:hover {
    transform: scale(1.1);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #2C3E50;
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 400;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2C3E50;
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Template gallery is scrollable on mobile */

/* Quantity Input */
.form-section input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: #000;
    background-color: #F8F9FA;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.form-section input[type="number"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #F0F1F3;
}

.form-section input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 82, 20, 0.15);
    background-color: #FFFFFF;
}

.form-section input[type="number"]::placeholder {
    color: #B0B5BA;
    font-size: 16px;
}

/* File Upload Section */
.form-section-btn {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-select-btn {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.file-select-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.file-attach-hint {
    font-size: 14px;
    color: #B0B5BA;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.file-preview {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background-color: #F8F9FA;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.file-preview-item .preview-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.file-preview-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-preview-item .file-name {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.file-preview-item .file-size {
    font-size: 13px;
    color: #666;
}

.file-preview-item .remove-file-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 8px;
}

.file-preview-item .remove-file-btn:hover {
    color: #c0392b;
    background-color: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

/* Price Section */
.price-section {
    margin-top: 30px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.price-label {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.total-price {
    font-size: 36px;
    font-weight: 900;
    color: #000;
    display: block;
    margin-bottom: 10px;
}

/* Submit Button */
.submit-request-btn {
    background-color: #FF5214;
    color: #FFFFFF;
    border: none;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 20px rgba(255, 82, 20, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.submit-request-btn:hover {
    background-color: #e04812;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 82, 20, 0.4);
}

.submit-request-btn:active {
    transform: translateY(-1px);
}

/* Order Messages */
.order-messages {
    margin-top: 30px;
}

.success-message,
.error-message {
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.4s ease;
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.success-message h4,
.error-message h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.success-message p,
.error-message p {
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive для секции каталога */
@media (max-width: 1024px) {
    .catalog-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .template-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .order-form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .gifts-section {
        padding: 40px 15px;
    }
    
    .gifts-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
        letter-spacing: 2px;
    }
    
    .product-type-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .thumbnail-item {
        min-width: 80px;
        min-height: 80px;
    }
    
    .template-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .volume-btn {
        width: 100%;
    }
    
    .form-section-btn {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .file-select-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    
    .file-attach-hint {
        text-align: center !important;
        font-size: 13px !important;
    }
    
    .price-display {
        gap: 15px;
    }
    
    .total-price {
        font-size: 32px;
    }
    
    .submit-request-btn {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }
    
    .order-form-container {
        padding: 25px;
        border-radius: 20px;
    }
    
    .order-form-container h3 {
        font-size: 24px;
    }
    
    .main-image {
        border-radius: 12px;
    }
    
    .form-section select,
    .form-section input[type="number"] {
        padding: 14px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .gifts-section {
        padding: 30px 10px;
    }
    
    .gifts-section h2 {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .thumbnail-item {
        min-width: 70px;
        min-height: 70px;
    }
    
    .template-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .template-item {
        min-width: 70px;
        min-height: 70px;
    }
    
    .order-form-container {
        padding: 15px !important;
        border-radius: 16px;
    }
    
    .order-form-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .total-price {
        font-size: 24px !important;
    }
    
    .price-section {
        margin-top: 20px !important;
    }
    
    .submit-request-btn {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .form-section label {
        font-size: 14px;
    }
    
    .form-section select,
    .form-section input[type="number"] {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .volume-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .file-select-btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
    
    .form-section-btn {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .file-attach-hint {
        text-align: center !important;
        font-size: 12px !important;
    }
}

/* Modal Overlay - Модальное окно */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #FF5214;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.contact-info-note {
    display: none; /* Скрываем для экономии места */
}

.contact-info-note p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Корпоративная секция в модальном окне */
.corporate-section {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #4CAF50;
    margin-bottom: 5px;
}

/* Contact Form Modal */
.contact-form-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-modal .form-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Checkbox Section */
.contact-form-modal .checkbox-section {
    flex-direction: row;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.contact-form-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.contact-form-modal .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF5214;
}

.contact-form-modal .checkbox-label span {
    user-select: none;
}

/* Corporate Fields */
#corporate_fields {
    padding: 12px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 2px dashed #4CAF50;
    margin-top: -5px;
}

#corporate_fields .form-section {
    margin-bottom: 12px;
}

#corporate_fields .form-section:last-child {
    margin-bottom: 0;
}

#corporate_fields textarea {
    min-height: 50px;
    max-height: 80px;
}

.contact-form-modal label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.contact-form-modal input[type="text"],
.contact-form-modal input[type="tel"],
.contact-form-modal input[type="email"],
.contact-form-modal textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #000;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
}

.contact-form-modal input:hover,
.contact-form-modal textarea:hover {
    border-color: #FF5214;
}

.contact-form-modal input:focus,
.contact-form-modal textarea:focus {
    outline: none;
    border-color: #FF5214;
    box-shadow: 0 0 0 2px rgba(255, 82, 20, 0.1);
}

.contact-form-modal textarea {
    resize: none;
    min-height: 50px;
    max-height: 60px;
}

/* Modal Footer */
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.modal-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modal-btn-primary {
    background-color: #FF5214;
    color: #fff;
}

.modal-btn-primary:hover {
    background-color: #e04812;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 20, 0.3);
}

.modal-btn-secondary {
    background-color: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.modal-btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Field Error Styles */
.field-error {
    color: var(--error);
    font-size: var(--font-size-sm);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: slideDown 0.3s ease;
}

.field-error::before {
    content: '⚠';
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input.error,
select.error,
textarea.error {
    border-color: var(--error) !important;
    background-color: var(--error-light);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Corporate Mode Indicator */
#corporate-mode-indicator {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: slideDown 0.5s ease;
}

#corporate-mode-indicator strong {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

#corporate-mode-indicator p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility - Screen reader only content */
.aria-live-region {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive для модального окна — основные правила в секции ниже */

/* How It Works Section - Секция "Как это работает" */
.how-it-works-section {
    background-color: #F8F8F8;
    padding: 100px 20px;
}

.how-it-works-section .container {
    max-width: 1464px;
    margin: 0 auto;
}

.how-it-works-section h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.how-it-works-section h3 {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    color: #666;
    margin-bottom: 80px;
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.step-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card {
    width: 100%;
    height: 240px;
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #FF5214;
}

.step-number {
    margin-bottom: 25px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number img {
    max-height: 100%;
    width: auto;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    text-align: center;
}

.step-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #777777;
    margin: 0;
}

.how-it-works-section .pain-over-btn {
    display: block;
    margin: 60px auto 0;
    width: fit-content;
    border-radius: 12px;
    box-shadow: none;
}

/* Responsive для How It Works */
@media (max-width: 1024px) {
    .steps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .step-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .step-card {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        position: relative;
    }

    .how-it-works-section {
        padding: 60px 15px;
    }

    .how-it-works-section h2 {
        font-size: 28px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        counter-reset: step-counter;
    }

    .step-card::before {
        counter-increment: step-counter;
        content: counter(step-counter);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #000;
        color: #fff;
        border-radius: 50%;
        font-size: 16px;
        font-weight: 700;
        margin: 0 auto 15px;
    }
}

/* Advantages Section - Секция преимуществ */
.advantages-section {
    background-color: #F8F9FA;
    padding: 120px 20px;
}

.advantages-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: #666;
    margin-top: -40px;
    margin-bottom: 40px;
}

/* Testimonials - Отзывы */
.testimonials-wrapper {
    position: relative;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 80px;
}

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

/* Slider mode - когда отзывов больше 3 */
.testimonials-wrapper.slider-mode {
    overflow: hidden;
}

.testimonials-wrapper.slider-mode .testimonials-container {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease-in-out;
}

.testimonials-wrapper.slider-mode .testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Slider controls */
.testimonials-controls {
    display: none;
}

.testimonials-wrapper.slider-mode .testimonials-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    padding: 0;
    width: 36px;
    height: 36px;
}

.slider-btn svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s;
}

.slider-btn:hover:not(:disabled) svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#slider-prev svg {
    transform: rotate(180deg);
}

#slider-prev:hover:not(:disabled) svg {
    transform: rotate(180deg) scale(1.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
}

.testimonial-quote {
    opacity: 0.3;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    min-height: 100px;
}

.testimonial-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.testimonial-date {
    font-size: 12px;
    color: #999;
}

.no-testimonials {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive для Testimonials */
@media (max-width: 1200px) {
    .testimonials-wrapper {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .testimonials-wrapper {
        padding: 0 50px;
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-wrapper.slider-mode .testimonial-card {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .advantages-section {
        padding: 40px 15px;
    }
    
    .advantages-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .testimonials-wrapper {
        padding: 0 45px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-wrapper.slider-mode .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .slider-btn svg {
        width: 32px;
        height: 32px;
    }
}

/* About Section - Секция "О нас" */
.about-section {
    background-color: var(--beige-light);
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 82, 20, 0.03) 100%);
    pointer-events: none;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
    align-items: center;
}

.about-text {
    padding-right: var(--space-2xl);
}

.about-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-black);
    color: var(--secondary);
    margin-bottom: var(--space-2xl);
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    display: inline-block;
}

.about-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* About Image */
.about-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    opacity: 0.1;
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Advantages List - Список преимуществ */
.advantages-list {
    background: linear-gradient(135deg, var(--primary) 0%, #e04812 100%);
    padding: var(--space-4xl) var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.advantages-list::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantages-list::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantages-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-black);
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-4xl);
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    z-index: 1;
}

.advantage-item {
    display: flex;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.advantage-item:hover {
    padding-left: var(--space-md);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.advantage-item:last-child {
    border-bottom: none;
}

.advantage-number {
    font-size: 96px;
    font-weight: var(--font-black);
    color: rgba(255, 255, 255, 0.2);
    line-height: 0.8;
    flex-shrink: 0;
    width: 140px;
    transition: all var(--transition-base);
    font-family: var(--font-heading);
}

.advantage-item:hover .advantage-number {
    color: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.advantage-content {
    flex: 1;
    padding-top: var(--space-sm);
}

.advantage-content .advantage-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-lg);
    letter-spacing: var(--letter-spacing-wide);
    text-align: left;
    transition: all var(--transition-base);
}

.advantage-item:hover .advantage-content .advantage-title {
    transform: translateX(5px);
}

.advantage-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-base);
}

.advantage-item:hover .advantage-description {
    color: rgba(255, 255, 255, 1);
}

/* Responsive для About Section */
@media (max-width: 1024px) {
    .about-section {
        padding: var(--space-3xl) var(--space-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-content h2 {
        font-size: var(--font-size-3xl);
    }
    
    .about-image {
        min-height: 350px;
    }
    
    .advantages-list {
        padding: var(--space-3xl) var(--space-2xl);
    }
    
    .advantages-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-3xl);
    }
    
    .advantage-item {
        gap: var(--space-xl);
    }
    
    .advantage-number {
        font-size: 72px;
        width: 110px;
    }
    
    .advantage-content .advantage-title {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .about-section::before {
        width: 100%;
        opacity: 0.5;
    }
    
    .about-content {
        gap: var(--space-2xl);
        margin-bottom: var(--space-3xl);
    }
    
    .about-content h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-xl);
    }
    

    
    .about-content p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-lg);
    }
    
    .about-image {
        min-height: 280px;
    }
    
    .advantages-list {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .advantages-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-2xl);
    }
    
    .advantage-item {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-xl) 0;
    }
    
    .advantage-item:hover {
        padding-left: 0;
    }
    
    .advantage-number {
        font-size: 56px;
        width: auto;
    }
    
    .advantage-content {
        padding-top: 0;
    }
    
    .advantage-content .advantage-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-md);
    }
    
    .advantage-description {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .about-content h2 {
        font-size: var(--font-size-xl);
    }
    
    .about-image {
        min-height: 240px;
    }
    
    .advantages-list {
        padding: var(--space-xl) var(--space-md);
    }
    
    .advantage-number {
        font-size: 48px;
    }
}

/* Footer - Подвал */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  font-family: 'Montserrat', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 30% 20% 50%;
  gap: 0;
  max-width: 75rem;
  margin: 0 auto;
  align-items: start;
}

.logo-footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--space-lg);
}

.logo-footer svg path {
  fill: var(--white);
}

.logo-footer svg rect {
  fill: var(--primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.footer-table {
  width: 100%;
  margin-bottom: 0;
}

.footer-table td {
  vertical-align: top;
  padding: 0 var(--space-lg) 0 0;
}

.footer-table td:last-child {
  padding-right: 0;
}

.footer-table h3 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  font-weight: var(--font-semibold);
}

.footer-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-table li {
  margin-bottom: var(--space-md);
}

.footer-table a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-base);
  opacity: 0.9;
}

.footer-table a:hover {
  color: var(--primary);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom .corporate {
  color: var(--white);
  font-size: var(--font-size-base);
  margin: 0;
}

.go-button {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.go-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 82, 20, 0.3);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-spacer {
    display: none;
  }
  
  .logo-footer {
    justify-content: center;
    padding: 0;
  }
  
  .footer-table {
    display: block;
  }
  
  .footer-table tr {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .footer-table td {
    padding: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Старые стили удалены - см. адаптивные стили ниже */

/* Contact Section - Send Me */
.send_me {
  background-color: var(--white);
  padding: var(--space-4xl) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.container-l-send-me {
  width: 100%;
  max-width: 650px;
  max-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
}

.container-l-send-me img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.container-l-send-me img:hover {
  transform: scale(1.02);
}

.container-r-send-me {
  background: linear-gradient(145deg, var(--white) 0%, #fafafa 100%);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 600px;
  width: 100%;
}

.container-r-send-me .modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.container-r-send-me .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff8a5c);
  border-radius: 2px;
}

.container-r-send-me .modal-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-bold);
  color: var(--secondary);
  letter-spacing: var(--letter-spacing-wide);
  margin: 0;
  text-align: center;
}

.container-r-send-me .modal-close {
  background: none;
  border: none;
  font-size: 40px;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  line-height: 1;
  border-radius: var(--radius-md);
}

.container-r-send-me .modal-close:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  transform: rotate(90deg);
}

.container-r-send-me .modal-body {
  padding: 0;
}

.container-r-send-me .contact-info-note {
  background: linear-gradient(135deg, #fff5f0 0%, #ffeee6 100%);
  padding: var(--space-lg);
  border-radius: 12px;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 82, 20, 0.15);
  text-align: center;
}

.container-r-send-me .contact-info-note p {
  font-size: var(--font-size-sm);
  color: var(--gray-dark);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.container-r-send-me .contact-form-modal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.container-r-send-me .form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.container-r-send-me .form-section label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.container-r-send-me .form-section input[type="text"],
.container-r-send-me .form-section input[type="tel"],
.container-r-send-me .form-section input[type="email"],
.container-r-send-me .form-section textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: var(--font-size-base);
  color: var(--secondary);
  background-color: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.container-r-send-me .form-section input:hover,
.container-r-send-me .form-section textarea:hover {
  background-color: #f0f1f3;
}

.container-r-send-me .form-section input:focus,
.container-r-send-me .form-section textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 82, 20, 0.1);
}

.container-r-send-me .form-section textarea {
  resize: vertical;
  min-height: 100px;
}

.container-r-send-me .form-section input::placeholder,
.container-r-send-me .form-section textarea::placeholder {
  color: var(--gray-text);
}

/* Submit button for send_me section */
.container-r-send-me .submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b3d 100%);
  color: var(--white);
  padding: 16px 32px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-xl);
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 82, 20, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.container-r-send-me .submit-btn:hover {
  background: linear-gradient(135deg, #ff6b3d 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 82, 20, 0.4);
}

.container-r-send-me .submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 82, 20, 0.3);
}

/* Responsive для send_me section */
@media (max-width: 1024px) {
  .send_me {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .container-l-send-me {
    max-height: 400px;
  }
  
  .container-r-send-me {
    padding: var(--space-2xl);
  }
  
  .container-r-send-me .modal-title {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  .send_me {
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-xl);
  }
  
  .container-l-send-me {
    max-height: 300px;
  }
  
  .container-r-send-me {
    padding: var(--space-xl);
  }
  
  .container-r-send-me .modal-title {
    font-size: var(--font-size-xl);
  }
  
  .container-r-send-me .modal-close {
    font-size: 32px;
    width: 32px;
    height: 32px;
  }
  
  .container-r-send-me .contact-form-modal {
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .send_me {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .container-r-send-me {
    padding: var(--space-lg);
  }
  
  .container-r-send-me .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .container-r-send-me .modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
  }
}


/* ============================================
   ADAPTIVE SVG - Адаптивность для SVG изображений
   ============================================ */
.unical-preim {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 5rem !important;
    margin-bottom: 7rem !important;
    padding: 0 1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    text-align: center !important;
}

.unical-preim picture {
    width: 100%;
    display: flex;
    justify-content: center;
}

.unical-preim img,
.unical-preim svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .unical-preim {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .unical-preim {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    .unical-preim img,
    .unical-preim svg {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .unical-preim {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0 0.25rem !important;
    }
    
    .unical-preim img,
    .unical-preim svg {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}


/* ============================================
   PRICE BREAKDOWN - Детализация цены
   ============================================ */
.price-breakdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #F5F5F5;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 14px;
}

.price-row.total-row {
    border-top: 2px solid #e8e8e8;
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 18px;
}

.price-row .price-label {
    color: #666666;
    font-weight: 400;
}

.price-row.total-row .price-label {
    color: #000000;
    font-weight: 600;
}

.price-row .unit-price,
.price-row .template-price,
.price-row .quantity-display {
    color: #000000;
    font-weight: 500;
}

.price-row .total-price {
    color: #FF5214;
    font-weight: 700;
    font-size: 24px;
}

.price-row .template-price {
    color: #27ae60;
}

/* Responsive price breakdown */
@media (max-width: 768px) {
    .price-breakdown {
        padding: 1rem;
    }
    
    .price-row {
        font-size: 13px;
    }
    
    .price-row.total-row {
        font-size: 16px;
    }
    
    .price-row .total-price {
        font-size: 20px;
    }
}


/* =========================================
   ПРАВИЛЬНЫЙ АДАПТИВ (Mobile First подход)
   Добавьте это в конец style.css
   ========================================= */

/* 1. Глобальные настройки для мобильных */
@media (max-width: 480px) {
    :root {
        /* Уменьшаем базовые отступы на смартфонах */
        --space-3xl: 2rem;
        --space-4xl: 3rem;
        --font-size-4xl: 2rem; /* Заголовки меньше */
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 2. Адаптация Шапки (Header) — правила в блоке "Responsive Header" выше */

/* 3. Герой-секция (Hero) — основные правила в блоке "Hero Section" выше */
@media (max-width: 768px) {
    .head_down {
        flex-direction: column;
    }

    /* Меню превращаем в аккуратный список по центру */
    .nav__menu {
        position: relative;
        left: auto;
        transform: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin: 20px 0;
    }

    .nav__menu li {
        width: 100%;
        text-align: center;
    }

    .nav__menu li a {
        display: block;
        padding: 10px;
        background: #f9f9f9;
        border-radius: 8px;
    }
}

/* 4. Каталог и Товары (Catalog) */
@media (max-width: 900px) {
    .catalog-content {
        grid-template-columns: 1fr; /* Одна колонка вместо двух */
        gap: 30px;
    }
    
    .product-display {
        max-width: 500px;
        margin: 0 auto; /* Центрируем фото товара */
    }
    
    .order-form-container {
        padding: 20px;
    }
}

/* 5. Секция "Как это работает" (Steps) */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшете */
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr; /* 1 в ряд на телефоне */
    }
    
    .step-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 6. Отзывы (Testimonials) */
@media (max-width: 992px) {
    .testimonials-container {
        grid-template-columns: 1fr; /* Отзывы вертикально */
    }
    
    .testimonials-wrapper {
        padding: 0 20px;
    }
}

/* 7. Форма "Send Me" (Нижний блок с формой) */
@media (max-width: 1024px) {
    .send_me {
        grid-template-columns: 1fr; /* Картинка сверху, форма снизу */
        padding: 40px 20px;
        gap: 30px;
    }
    
    .container-l-send-me {
        height: 250px; /* Ограничиваем высоту картинки */
    }
}

/* 8. Подвал (Footer) */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .logo-footer {
        justify-content: center;
    }
    
    .footer-table tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-table td {
        padding: 0;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column-reverse; /* Копирайт в самом низу */
        gap: 20px;
    }
}


/* =========================================
   БУРГЕР-МЕНЮ (Добавить в конец style.css)
   ========================================= */

/* 1. Скрываем бургер на больших экранах */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Поверх меню */
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background-color: #000; /* Цвет полосок */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 2. Настройки для мобильных (до 768px) */
@media (max-width: 768px) {
    
    /* Показываем кнопку бургера */
    .burger-btn {
        display: flex;
    }
    
    /* Настраиваем родительский блок, чтобы кнопка была справа */
    .head_down {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    /* Скрываем меню по умолчанию */
    .nav__menu {
        position: absolute;
        top: 100%; /* Сразу под шапкой */
        left: 0;
        width: 100%;
        background-color: #fff; /* Белый фон */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Анимация скрытия */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1000;
        margin: 0; /* Убираем старые отступы */
    }
    
    /* Стили ссылок в мобильном меню */
    .nav__menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav__menu li a {
        display: block;
        padding: 12px;
        font-size: 18px;
        color: #333;
    }
    
    /* КЛАСС .open — делает меню видимым */
    .nav__menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Анимация превращения бургера в крестик (опционально) */
    .burger-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}


/* Адаптация кнопки в секции "Как это работает" */
@media (max-width: 768px) {
    .how-it-works-section .pain-over-btn {
        margin: 0 auto; /* Центрируем кнопку на мобильных */
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .how-it-works-section .pain-over-btn {
        margin: 0 auto; /* Центрируем на планшетах */
    }
}


/* =========================================
   ПРЕВЬЮ ЗАКАЗА В МОДАЛЬНОМ ОКНЕ
   ========================================= */

/* 1. Скрываем превью калькулятора на мобильных */
@media (max-width: 900px) {
    .product-display {
        display: none !important;
    }
    
    .catalog-content {
        grid-template-columns: 1fr !important;
    }
    
    .order-form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box;
    }
    
    /* Предотвращаем выход за экран */
    .gifts-section {
        overflow-x: hidden;
    }
    
    .gifts-section .container {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
    
    /* Галерея шаблонов занимает всю ширину */
    .template-gallery-slider {
        width: 100%;
        max-width: 100%;
    }
    
    /* Кнопка глазик всегда видна на мобильных */
    .tg-template-item .tg-preview-btn {
        opacity: 1 !important;
    }
    
    /* Форма не выходит за экран */
    .form-section {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-section-btn {
        max-width: 100%;
    }
    
    .price-section {
        max-width: 100%;
    }
}

/* 2. Стили для превью внутри модального окна */
.modal-order-summary {
    display: flex;
    gap: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.modal-summary-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.modal-summary-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

.modal-summary-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #000;
}

.modal-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.modal-summary-row span:first-child {
    color: #777;
    margin-right: 10px;
}

.modal-summary-row strong {
    color: #000;
}

.modal-summary-price {
    margin-top: 8px;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary, #FF5214);
}

/* 3. Адаптив для превью в модальном окне */
@media (max-width: 480px) {
    .modal-order-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-summary-image {
        width: 100px;
        height: 100px;
    }
    
    .modal-summary-row {
        justify-content: space-between;
        width: 100%;
        text-align: left;
        border-bottom: 1px dashed #eee;
        padding-bottom: 4px;
    }
}

/* ========================================
   TEMPLATE PREVIEW MODAL
   ======================================== */

.template-slider {
    text-align: center;
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.slider-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
    display: none;
}

.slider-image.active {
    display: block;
}

.template-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid #eee;
    transition: all 0.2s;
    opacity: 0.7;
}

.thumb-image:hover {
    border-color: #ff9800;
    opacity: 1;
}

.thumb-image.active {
    border-color: #4CAF50;
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .template-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .template-modal-title {
        font-size: 20px;
    }
    
    .template-slider {
        min-height: 200px;
    }
    
    .slider-image {
        max-height: 250px;
    }
    
    .thumb-image {
        width: 50px;
        height: 50px;
    }
}


/* ============================================
   УЛУЧШЕННАЯ АДАПТАЦИЯ МОДАЛЬНОГО ОКНА (B2C)
   ============================================ */

/* Десктоп - оптимальные размеры */
@media (min-width: 769px) {
    .modal-content {
        max-width: 600px;
        padding: 30px;
    }
    
    .modal-close {
        font-size: 32px;
        width: 40px;
        height: 40px;
    }
    
    .modal-close:hover {
        transform: rotate(90deg) scale(1.15);
    }
}

/* Планшеты и мобильные */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        max-width: calc(100vw - 20px);
        width: 100%;
        max-height: 85vh;
        max-height: 85dvh;
        padding: 0;
        margin: 0 auto;
        border-radius: 16px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 14px 16px;
    }

    .modal-footer {
        padding: 14px 16px;
        flex-direction: column;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-btn {
        width: 100%;
    }

    .modal-close {
        font-size: 32px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        position: relative;
    }

    /* Увеличиваем область нажатия для тач-устройств */
    .modal-close::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    /* Превью заказа в модальном окне */
    .modal-order-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }

    .modal-summary-image {
        width: 100px;
        height: 100px;
    }

    .modal-summary-details {
        width: 100%;
    }

    .modal-summary-row {
        justify-content: space-between;
        text-align: left;
        border-bottom: 1px dashed #eee;
        padding-bottom: 4px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 5px;
    }

    .modal-content {
        max-width: calc(100vw - 10px);
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-footer {
        padding: 12px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .modal-summary-image {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   TEMPLATE PREVIEW MODAL - Модальное окно превью шаблонов
   ============================================ */

.template-preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.template-preview-modal.show {
    display: flex;
}

.template-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.template-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.template-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.template-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 8px;
}

.template-modal-close:hover {
    color: #FF5214;
    background-color: #fff5f3;
    transform: rotate(90deg) scale(1.1);
}

.template-slider {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-prev:hover,
.slider-next:hover {
    background: #FF5214;
    color: white;
    transform: scale(1.1);
}

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnail-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-slider::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.thumbnail-slider::-webkit-scrollbar-thumb {
    background: #FF5214;
    border-radius: 10px;
}

.thumb-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-image:hover {
    border-color: #FF5214;
    transform: scale(1.05);
}

.thumb-image.active {
    border-color: #FF5214;
    box-shadow: 0 2px 8px rgba(255, 82, 20, 0.3);
}

/* Адаптация модального окна превью для планшетов */
@media (max-width: 768px) {
    .template-modal-content {
        width: 95vw;
        max-width: 99vw;
        padding: 18px 8px;
        margin: 10px auto;
    }
    
    .template-modal-title {
        font-size: 18px;
    }
    
    .template-slider {
        min-height: 180px;
    }
    
    .slider-image {
        max-height: 180px;
    }
    
    .thumb-image {
        width: 38px;
        height: 38px;
    }
    
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .template-modal-content {
        padding: 10px 2px;
    }
    
    .template-modal-title {
        font-size: 16px;
    }
    
    .template-slider {
        min-height: 120px;
    }
    
    .slider-image {
        max-height: 120px;
    }
    
    .thumb-image {
        width: 32px;
        height: 32px;
    }
    
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
    }
    
    .template-modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

/* ============================================
   УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ФОРМ (B2C)
   ============================================ */

/* Все инпуты и кнопки - минимум 48px для тач-устройств */
@media (max-width: 768px) {
    .form-section input,
    .form-section select,
    .form-section textarea,
    .contact-form-modal input,
    .contact-form-modal select,
    .contact-form-modal textarea,
    .product-btn,
    .modal-btn,
    .volume-btn,
    .container-r-send-me .submit-btn {
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Кнопки формы заказа - без принудительной высоты */
    .file-select-btn {
        min-height: auto;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .submit-request-btn {
        min-height: auto;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Четкий outline для фокуса */
    .form-section input:focus,
    .form-section select:focus,
    .form-section textarea:focus,
    .contact-form-modal input:focus,
    .contact-form-modal select:focus,
    .contact-form-modal textarea:focus {
        outline: 3px solid var(--primary);
        outline-offset: 2px;
    }
}

/* ============================================
   АДАПТАЦИЯ СЕКЦИЙ ЛЕНДИНГА (B2C)
   ============================================ */

/* Планшеты */
@media (max-width: 900px) {
    .hero,
    .catalog-content,
    .steps-grid,
    .testimonials-container,
    .about-content,
    .advantages-list,
    .gifts-section,
    .footer {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 99vw;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .advantages-section,
    .gifts-section,
    .about-section,
    .how-it-works-section {
        padding: 20px 6px;
    }
    
    .testimonials-wrapper {
        padding: 0 10px;
    }
    
    .about-content,
    .steps-grid,
    .template-gallery,
    .thumbnail-gallery {
        grid-template-columns: 1fr;
        gap: 12px !important;
    }
    
    .catalog-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Миниатюры с переносом */
    .thumbnail-gallery,
    .template-gallery {
        flex-wrap: wrap;
        overflow-x: auto;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero,
    .gifts-section,
    .how-it-works-section,
    .advantages-section,
    .about-section {
        padding: 15px 6px;
    }
    
    /* Все заголовки меньше */
    .gifts-section h2,
    .how-it-works-section h2,
    .advantages-section h2,
    .about-content h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    /* Компактные карточки */
    .step-card,
    .testimonial-card {
        padding: 15px;
    }
    
    /* Миниатюры еще меньше */
    .thumbnail-item,
    .template-item {
        min-width: 50px;
        min-height: 50px;
    }
}

/* ============================================
   РАЗЛИЧИЯ B2C И B2B
   ============================================ */

/* B2C - яркие акценты */
.b2c-landing .pain-over-btn,
.b2c-landing .submit-request-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #e04812 100%);
    box-shadow: 0 6px 20px rgba(255, 82, 20, 0.3);
}

.b2c-landing .pain-over-btn:hover,
.b2c-landing .submit-request-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 82, 20, 0.4);
    transform: translateY(-3px);
}

/* B2C - больше анимаций */
.b2c-landing .testimonial-card,
.b2c-landing .step-card,
.b2c-landing .advantage-item {
    transition: all 0.3s ease;
}

.b2c-landing .testimonial-card:hover,
.b2c-landing .step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* B2B - строгий стиль */
.b2b-landing {
    --primary: #FF5214;
    --background: #FFFFFF;
}

.b2b-landing .pain-over-btn,
.b2b-landing .submit-request-btn {
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 82, 20, 0.2);
}

.b2b-landing .testimonial-card,
.b2b-landing .step-card {
    border: 1px solid #e8e8e8;
}

/* ============================================
   ACCESSIBILITY - Доступность
   ============================================ */

/* Focus visible для клавиатурной навигации */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion для пользователей с предпочтениями */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-btn,
    .submit-request-btn,
    .file-select-btn,
    .modal-btn {
        border: 2px solid currentColor;
    }
}


/* Product Info Section */
.product-info {
    display: none; /* Скрыт, но доступен для JS */
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

.product-info .product-name {
    font-size: 24px;
    font-weight: 600;
    color: #070707;
    margin-bottom: 12px;
}

.product-info .product-description {
    font-size: 16px;
    color: #484848;
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-info .product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info .detail-label {
    font-weight: 600;
    color: #070707;
    margin-right: 8px;
}

.product-info .detail-value {
    color: #484848;
}

@media (max-width: 768px) {
    .product-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .product-info .product-name {
        font-size: 20px;
    }
    
    .product-info .product-description {
        font-size: 14px;
    }
}

/* ========================================
   TEMPLATE GALLERY SLIDER (5 карточек в ряд)
   ======================================== */

.template-gallery-slider {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Скрываем выходящие за границы элементы */
}

.tg-item-container {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow: hidden;
    min-width: 0; /* Позволяет flex-элементу сжиматься */
    max-width: 100%;
}

.tg-template-item {
    flex: 0 0 calc((100% - 40px) / 5);
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    background: #F8F9FA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tg-template-item:hover {
    border-color: #FF5214;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.tg-template-item.selected {
    border-color: #FF5214;
    box-shadow: 0 4px 20px rgba(255, 82, 20, 0.3);
}

.tg-template-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о шаблоне (название и цена) */
.tg-template-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 8px 6px 6px;
    color: white;
}

.tg-template-info h4 {
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 2px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-template-info .tg-price {
    font-size: 9px;
    font-weight: 700;
    color: #4CAF50;
}

/* Кнопка превью на карточке */
.tg-preview-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #FF5214;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.tg-template-item:hover .tg-preview-btn {
    opacity: 1;
}

.tg-preview-btn:hover {
    background: #FF5214;
    transform: scale(1.1);
}

.tg-preview-btn:hover svg {
    stroke: white;
}

.tg-preview-btn svg {
    width: 12px;
    height: 12px;
    stroke: #FF5214;
    transition: stroke 0.3s ease;
}

/* Стрелки слайдера галереи */
.tg-slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #070707;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tg-slider-arrow:hover {
    background: #FF5214;
    color: white;
    transform: scale(1.05);
}

.tg-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Индикаторы скрыты по умолчанию */
.tg-indicators {
    display: none;
}

/* Адаптив для галереи шаблонов */

/* Планшеты (768px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
    .template-gallery-slider {
        gap: 10px;
    }
    
    .tg-item-container {
        gap: 10px;
    }
    
    /* На планшетах показываем 4 карточки */
    .tg-template-item {
        flex: 0 0 calc((100% - 30px) / 4);
    }
    
    .tg-template-info h4 {
        font-size: 10px;
    }
    
    .tg-template-info .tg-price {
        font-size: 9px;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .template-gallery-slider {
        gap: 0;
        flex-direction: column;
    }
    
    /* Скрываем стрелки на мобильных - используем свайп */
    .tg-slider-arrow {
        display: none !important;
    }
    
    /* Родительский контейнер - скрывает overflow */
    .template-gallery-slider {
        overflow: hidden;
        width: 100%;
    }
    
    .tg-item-container {
        gap: 12px;
        overflow-x: scroll !important; /* Принудительно включаем скролл */
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 5px 5px 10px 5px;
        scrollbar-width: none; /* Firefox - скрываем скроллбар */
        scroll-behavior: smooth;
        touch-action: pan-x;
        flex-wrap: nowrap !important;
    }
    
    /* Скрываем скроллбар на мобильных для чистого вида */
    .tg-item-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari - скрываем скроллбар */
    }
    
    /* На мобильных фиксированная ширина карточек */
    .tg-template-item {
        flex: 0 0 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 100px !important;
        scroll-snap-align: start;
        display: block !important;
        transition: transform 0.15s ease;
    }
    
    .tg-template-item:active {
        transform: scale(0.95);
    }
    
    .tg-template-info h4 {
        font-size: 9px;
    }
    
    .tg-template-info .tg-price {
        font-size: 8px;
    }
    
    .tg-preview-btn {
        opacity: 1;
        width: 24px;
        height: 24px;
    }
    
    .tg-preview-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Форма заказа на мобильных */
    .order-form-container {
        padding: 20px 15px;
    }
    
    .form-section label {
        font-size: 14px;
    }
    
    .form-section select,
    .form-section input[type="number"] {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 12px;
    }
    
    .radio-group {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .radio-option {
        padding: 10px 12px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
    }
    
    .price-section {
        padding: 15px;
    }
    
    .total-price {
        font-size: 20px;
    }
    
    .submit-request-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    /* Карточки шаблонов меньше */
    .tg-template-item {
        flex: 0 0 85px;
        min-width: 85px;
        height: 85px;
    }
    
    .tg-template-info {
        padding: 4px;
    }
    
    .tg-template-info h4 {
        font-size: 7px;
    }
    
    .tg-template-info .tg-price {
        font-size: 6px;
    }
    
    .tg-preview-btn {
        width: 20px;
        height: 20px;
        top: 3px;
        right: 3px;
    }
    
    .tg-preview-btn svg {
        width: 10px;
        height: 10px;
    }
    
    /* Кнопки формы */
    .price-display {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .price-section {
        padding: 12px 0;
        margin-top: 15px;
    }
    
    .price-label {
        font-size: 14px;
    }
    
    .total-price {
        font-size: 24px;
    }
    
    .submit-request-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    /* Секция загрузки файла */
    .form-section-btn {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .file-select-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
        text-align: center;
    }
    
    .file-attach-hint {
        font-size: 12px;
        text-align: center;
    }
    
    /* Форма на маленьких экранах */
    .order-form-container {
        padding: 15px 10px !important;
    }
    
    .form-section {
        margin-bottom: 15px;
    }
    
    .form-section label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-section select,
    .form-section input[type="number"] {
        padding: 10px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    /* Tooltip на маленьких экранах */
    .tooltip-content {
        font-size: 11px;
        max-width: 200px;
    }
}

/* ========================================
   TEMPLATE MODAL SLIDER (Модальное окно)
   ======================================== */

.template-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.template-modal.active {
    display: flex;
}

.tm-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tm-modal-close:hover {
    background: #FF5214;
    color: white;
}

.tm-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-right: 50px;
    color: #000;
}

/* Слайдер в модальном окне */
.tm-slider-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.tm-slider-container {
    flex: 1;
    height: 400px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.tm-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Стрелки модального слайдера */
.tm-slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FF5214;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 82, 20, 0.3);
}

.tm-slider-arrow:hover {
    background: #e04812;
    transform: scale(1.05);
}

/* Миниатюры в модальном окне */
.tm-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

.tm-thumbs::-webkit-scrollbar {
    height: 6px;
}

.tm-thumbs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.tm-thumbs::-webkit-scrollbar-thumb {
    background: #FF5214;
    border-radius: 10px;
}

.tm-thumb {
    width: 80px;
    height: 80px;
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tm-thumb:hover {
    border-color: #FF5214;
}

.tm-thumb.active {
    border-color: #FF5214;
    box-shadow: 0 2px 10px rgba(255, 82, 20, 0.3);
}

.tm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о шаблоне в модальном окне */
.tm-template-info {
    text-align: center;
}

.tm-template-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.tm-btn-select {
    background: #FF5214;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 82, 20, 0.3);
}

.tm-btn-select:hover {
    background: #e04812;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 82, 20, 0.4);
}

/* Адаптив для слайдеров */
@media (max-width: 768px) {
    .template-gallery-slider {
        gap: 10px;
        min-height: 150px;
    }
    
    .tg-item-container {
        height: 150px;
    }
    
    .tg-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .tg-preview-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .tm-modal-content {
        padding: 20px;
        border-radius: 16px;
    }
    
    .tm-slider-container {
        height: 280px;
    }
    
    .tm-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .tm-thumb {
        width: 60px;
        height: 60px;
    }
    
    .tm-modal-title {
        font-size: 20px;
    }
    
    .tm-btn-select {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .tg-item-container {
        height: 130px;
    }
    
    .tg-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .tm-slider-container {
        height: 220px;
    }
    
    .tm-slider-wrapper {
        gap: 8px;
    }
    
    .tm-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .tm-thumb {
        width: 50px;
        height: 50px;
    }
}


/* ========================================
   СТИЛИ ТОЛЬКО ДЛЯ ПОСАДОЧНЫХ СТРАНИЦ
   ======================================== */

/* Применяются только когда body имеет класс landing-page */

.landing-page .hero__content,
.landing-page .orang__text {
    max-width: 813px;
}

.landing-page .head_down {
    max-width: 1254px;
    margin: 0 10rem auto;
}

/* Адаптив для лендингов */
@media (max-width: 1200px) {
    .landing-page .orang__text {
        margin: 0 2rem;
    }
    
    .landing-page .head_down {
        margin: 0 4rem auto;
    }
}

@media (max-width: 768px) {
    .landing-page .orang__text {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .landing-page .head_down {
        max-width: 100%;
        margin: 0 1rem auto;
    }
}


/* ============================================
   ПРОМЕЖУТОЧНЫЙ BREAKPOINT 865px
   Плавный переход между desktop и mobile
   ============================================ */
@media (max-width: 865px) {
    .catalog-content {
        gap: 20px;
    }
    
    .order-form-container {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   ИСПРАВЛЕНИЕ: Стили для 480px с !important
   чтобы гарантированно перекрыть стили для 768px
   ============================================ */
@media (max-width: 480px) {
    .volume-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .form-section input,
    .form-section select,
    .form-section textarea,
    .product-btn,
    .modal-btn {
        font-size: 14px !important;
    }
    
    .submit-request-btn {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    
    .file-select-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ===== SEO-текст внизу страницы ===== */
.seo-text {
    padding: 40px 20px;
}

.seo-text p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-dark, #666666);
    text-align: justify;
}

.seo-text h2,
.seo-text h3 {
    max-width: 1200px;
    margin: 0 auto 20px;
    font-size: 18px;
    color: var(--secondary, #000000);
}

@media (max-width: 768px) {
    .seo-text {
        padding: 30px 15px;
    }
    
    .seo-text p {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* ======================================== */
/* PORTFOLIO SECTION                        */
/* ======================================== */

.portfolio-section {
    background-color: #fff;
    padding: 120px 0;
    overflow: hidden;
}

.portfolio-section h2 {
    text-align: center;
    margin-bottom: 80px;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px; /* Space for arrows */
}

.portfolio-gallery {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 20px 5px 40px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.portfolio-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.portfolio-item {
    flex: 0 0 auto;
    width: 320px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-arrow:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.portfolio-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.portfolio-prev {
    left: 0;
}

.portfolio-next {
    right: 0;
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 0;
    }
    
    .portfolio-wrapper {
        padding: 0;
    }
    
    .portfolio-arrow {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
    
    .portfolio-gallery {
        gap: 20px;
        padding: 0 20px; /* Padding inside scroll area */
    }
    
    .portfolio-item {
        width: 280px;
        height: 280px;
        border-radius: 20px;
    }
}

/* ======================================== */
/* PORTFOLIO LIGHTBOX                       */
/* ======================================== */

.portfolio-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
}

.portfolio-lightbox.active {
    display: flex;
}

.portfolio-lightbox__content {
    max-width: calc(100vw - 140px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.portfolio-lightbox__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: opacity 0.3s;
    padding: 5px 10px;
}

.portfolio-lightbox__close:hover {
    opacity: 0.7;
}

.portfolio-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    flex-shrink: 0;
}

.portfolio-lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.portfolio-lightbox__prev {
    left: 15px;
}

.portfolio-lightbox__next {
    right: 15px;
}

@media (max-width: 768px) {
    .portfolio-lightbox__content {
        max-width: calc(100vw - 20px);
        max-height: 70vh;
        padding: 0 10px;
    }

    .portfolio-lightbox__content img {
        max-height: 70vh;
        border-radius: 6px;
    }

    .portfolio-lightbox__arrow {
        width: 36px;
        height: 36px;
        top: auto;
        bottom: 30px;
        transform: none;
    }

    .portfolio-lightbox__arrow svg {
        width: 24px;
        height: 24px;
    }

    .portfolio-lightbox__prev {
        left: calc(50% - 50px);
    }

    .portfolio-lightbox__next {
        right: calc(50% - 50px);
    }

    .portfolio-lightbox__close {
        top: 10px;
        right: 10px;
        font-size: 32px;
    }
}

/* ======================================== */
/* ADVANTAGES SECTION (UPDATED)             */
/* ======================================== */

.advantages-list {
    background: linear-gradient(135deg, var(--primary) 0%, #e04812 100%);
    padding: 200px 80px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.advantages-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    padding-left: 0;
    border: none;
}

.advantage-line {
    display: none;
}

.advantage-icon {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 0;
}

.advantage-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.advantage-content {
    flex: 1;
    padding-top: 45px;
}

.advantage-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.advantage-content p {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (max-width: 900px) {
    .advantages-list {
        padding: 50px 30px;
    }
    
    .advantages-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .advantages-list {
        padding: 80px 20px;
    }
    
    .advantages-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .advantage-item {
        gap: 30px;
    }
    
    .advantage-icon {
        width: 120px;
        height: 120px;
    }
    
    .advantage-content h3 {
        font-size: 24px;
    }
    
    .advantage-content p {
        font-size: 16px;
    }
}
