:root {
    /* ---------- Цвет ---------- */
    --primary:        #008060;   /* единственный зелёный бренда: заголовки, цены, кнопки, рамки */
    --primary-dark:   #006048;   /* hover/active */
    --primary-soft:   #eff7f5;   /* светло-зелёный фон секций и плашек */
    --primary-line:   #cfe6de;   /* светло-зелёная обводка */
    --accent:         #f1810b;   /* оранжевый: примечания, акценты цен */
    --secondary:      #FDC900;   /* жёлтый (плашка склада) */
    --secondary-dark: #794600;   /* текст на жёлтом */
    --lime:           #B5D333;

    --dark:     #151616;   /* шапка, футер, самый тёмный текст */
    --text:     #333333;   /* основной текст */
    --text-2:   #666666;   /* второстепенный текст */
    --text-3:   #999999;   /* подписи, плейсхолдеры */
    --border:   #dddddd;   /* рамки карточек, таблиц, полей */
    --border-2: #eeeeee;   /* тонкие разделители */
    --bg:       #ffffff;
    --bg-soft:  #f6f8f7;   /* нейтральный светлый фон (вместо #f8f9fa/#f9f9f9/#fafafa/#f4f4f4/#fdfdfd) */
    --white:    #ffffff;

    /* ---------- Типографика ---------- */
    --font: 'Inter', Arial, sans-serif;
    --fs-h1:    36px;
    --fs-h2:    28px;
    --fs-h3:    20px;
    --fs-body:  16px;
    --fs-small: 14px;
    --fs-xs:    12px;      /* минимум на сайте */
    --fs-price: 22px;
    --fs-btn:   16px;
    --fs-btn-lg:18px;

    --lh-h1:    1.15;
    --lh-h2:    1.2;
    --lh-h3:    1.25;
    --lh-body:  1.5;
    --lh-small: 1.45;

    --fw-regular: 400;
    --fw-semi:    600;
    --fw-bold:    700;
    --fw-heavy:   800;     /* 500/900/300 не использовать: шрифт их не грузит */

    /* ---------- Отступы (шаг 4) ---------- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --section-y:       32px;   /* padding секции сверху и снизу */
    --section-y-tight: 16px;   /* для подряд идущих секций одного цвета */
    --heading-gap:     24px;   /* заголовок секции → контент */
    --block-gap:       24px;   /* между блоками внутри секции */
    --grid-gap:        24px;   /* сетка карточек */
    --grid-gap-sm:     16px;   /* сетка плиток, галерея */

    /* ---------- Формы ---------- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;

    /* ---------- Карточка товара ---------- */
    --card-bg:          #ffffff;
    --card-border:      var(--border);
    --card-radius:      var(--radius-md);
    --card-pad:         16px;
    --card-photo-ratio: 1 / 1;      /* одинаковое окно фото во всех карточках */
    --card-photo-pad:   16px;       /* поля вокруг фото */
    --card-photo-bg:    #ffffff;

    /* ---------- Совместимость со старыми именами ---------- */
    --fs-xl:   var(--fs-h1);
    --fs-lg:   var(--fs-h2);
    --fs-md:   var(--fs-h3);
    --fs-base: var(--fs-body);
    --fs-sm:   var(--fs-small);
    --shadow:  var(--shadow-md);
    --bg-light: #F0F8F8;           /* оставить как есть, постепенно заменить на --primary-soft */
    --text-gray: #818281;
    --gray-dark: #333333;
    --gray-nav: #444444;
    --gray-footer: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll when scaling down - removed for fixed width */
    min-width: 1220px;
}

@media screen and (min-width: 1024px) {
    html {
        /* Remove hard min-width to allow JS scaling script to center correctly */
    }
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
    min-width: 1220px;
    /* Keep width: 100% but remove 100vw limit */
    transition: transform 0.1s ease-out;
    /* Smooth scaling during resize */
    padding-top: 171px;
    /* Restored to 171px to prevent header overlap */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

section {
    position: relative;
    padding: var(--section-y-tight) 0;
}

.flex-responsive {
    display: flex;
    gap: 20px;
}

.pricing-illustration {}

.container {
    width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--dark);
    position: fixed;
    /* Back to fixed to ensure it stays pinned relative to viewport */
    top: 0;
    left: 0;
    width: 100%;
    min-width: 1220px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 200px;
}

.header-scrolled .header-top {
    padding: 0;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.logo img {
    height: 70px;
    transition: height 0.3s ease;
}

.header-scrolled .logo img {
    height: 0;
}

.header-info {
    text-align: right;
    color: var(--white);
    background: var(--dark);
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.header-phone {
    margin: 0;
    line-height: 1.2;
}

.header-phone a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: var(--primary);
}

/* Кнопка AI-консультанта (окно js/ai-consultant.js) — слева от WhatsApp */
.header-ai-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(241, 129, 11, .55);
    animation: header-ai-pulse 2.6s ease-out 1.5s 3;
    transition: transform .2s ease, background-color .2s ease;
}
.header-ai-btn:hover, .header-ai-btn:focus-visible { background: var(--primary); transform: scale(1.08); }
@keyframes header-ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 129, 11, .55); } 100% { box-shadow: 0 0 0 10px rgba(241, 129, 11, 0); } }

.header-wa-icon {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}


/* Permanent Search */
.header-search.permanent-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 4px;
    position: relative;
    height: 38px;
    padding: 0;
    border: 1px solid #ddd;
}

.header-search.permanent-search input {
    height: 100%;
    padding: 0 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 250px;
    /* та же ширина, что и после прокрутки — пункты меню не сжимаются */
    color: var(--dark);
    outline: none;
}

.header-search.permanent-search button#site-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.3s ease;
}

.header-search.permanent-search button#site-search-btn:hover {
    background: var(--primary-dark);
}

/* Scrolled adjustments */
.header-scrolled .header-search.permanent-search {
    height: 34px;
}

.header-scrolled .header-search.permanent-search input {
    width: 250px;
}


/* Nav */
nav {
    background: var(--gray-nav);
    color: white;
    border-top: 5px solid var(--primary);
    /* Important: Allow dropdowns to be visible outside the nav */
    overflow: visible !important;
}

nav .container {
    overflow: visible !important;
}

/* Smart Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    color: #333;
    text-align: left;
    display: block;
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background: #f8f9fa;
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Make children fill height */
    padding: 0;
    /* Removed vertical padding here */
    transition: padding 0.3s ease;
    overflow: visible !important;
    /* Ensure dropdowns aren't clipped */
}


.header-scrolled .nav-container {
    padding: 8px 0;
}

/* Navigation spacing unified into .nav-links */


.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: stretch;
    /* Ensure LIs are full height */
    flex: 1;
    white-space: nowrap;
    transition: all 0.4s ease;
}


.header-scrolled .nav-links {
    /* Scrolled state inherited spreading */
}

.home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -3px;
    /* Visual centering adjustment */
}

.nav-links img {
    height: 14px;
    vertical-align: middle;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 15px 0;
    /* Added padding to the links directly */
    transition: color 0.3s ease;
}

.header-scrolled .nav-links a {
    padding: 10px 0;
    /* Adjusted for scrolled state */
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-search-item {
    display: flex;
    align-items: center;
    padding-left: 20px;
}


/* Mega Menu Styles */
.nav-container {
    position: relative;
}

.has-dropdown {
    position: static;
    /* Allows mega menu to use nav-container width */
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% - 2px);
    /* Slight overlap to close gap */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    display: none;
    z-index: 1100;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--primary);
    /* Visual connector */
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.1s ease-out;
}

/* More robust bridge to prevent closing on gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.has-dropdown:hover .mega-menu {
    display: block;
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 1220px;
    margin: 0 auto;
}

.mega-column h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mega-column ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.mega-column ul li a {
    color: var(--dark) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 0 !important;
    line-height: 1.3;
}

.mega-column ul li a:hover {
    color: var(--primary) !important;
}

/* Ссылка «Технологии производства» в конце меню сувенирной продукции */
.mega-column a.mega-tech-link {
    display: inline-block;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 10px 12px !important;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0;
    line-height: 1.25;
    text-decoration: none !important;
    transition: var(--transition);
}
.mega-column a.mega-tech-link span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    opacity: .9;
}
.mega-column a.mega-tech-link:hover {
    background: var(--primary-dark);
    color: #fff !important;
}


/* Green Frame Card (Lead Form & Calc) */
.green-frame-card {
    background: var(--primary);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.green-frame-card .card-header {
    text-align: center;
    margin-bottom: 15px;
    min-height: 55px;
    /* Minimum height to align white boxes */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.green-frame-card .card-header h3 {
    font-size: var(--fs-lg);
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.0;
}

.green-frame-card .card-header p {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.green-frame-card .white-box {
    background: white;
    border-radius: 6px;
    padding: 20px;
    color: var(--dark);
    flex: 1;
    /* Stretch to fill the card */
}

/* Calculator Grid */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Form Styles */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.1;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100%;
    min-height: 80px;
}

.submit-btn-v2 {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 8px;
}

.form-consent-v2 {
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: center;
}

.hero-content h1 {
    color: var(--primary);
    font-size: var(--fs-xl);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-bottom-images {
    grid-column: 1 / span 2;
    margin-top: 30px;
    text-align: center;
}

/* Technologies */
.section-heading {
    color: var(--primary);
    font-size: var(--fs-h2);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-h2);
    margin: 0 0 var(--heading-gap);
}
.section-heading.text-center, .section-heading--center { text-align: center; }

.tech-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.tech-card {
    text-align: center;
    min-width: 0;
    /* Prevents cell overflow */
}

.tech-card .img-box {
    height: 180px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card .img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-card:hover .img-box img {
    transform: scale(1.1);
}

.tech-card h4 {
    font-size: 14px;
    height: auto;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.tech-btn {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
}

/* FAQ/Video Banner */
.banner-faq {
    display: flex;
    gap: 20px;
}

.banner-item {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
}

.banner-overlay h2 {
    color: var(--dark);
    font-size: var(--fs-xl);
    font-weight: 800;
    text-transform: uppercase;
}

/* Check-list */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
}

.check-item {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
}

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

.check-item img {
    height: 140px;
    margin-bottom: 15px;
    object-fit: contain;
}

.check-item h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.check-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Services Redesign V3 */
.services-v3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-v3-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
}

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

/* Duplicate removed, original is at line ~2519 */

.service-v3-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(30, 30, 30, 0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    z-index: 2;
}

.service-v3-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-v3-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.1;
}

.service-v3-content p {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-v3-link {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.service-v3-link:hover {
    color: #0b7781;
}

@media (max-width: 1100px) {
    .services-v3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-v3-grid {
        grid-template-columns: 1fr;
    }
}

.price-grid-orient {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.price-card-orient {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8fcfb;
    /* Slight tint for text section */
    flex-direction: row !important;
    /* Force horizontal on mobile */
    flex-wrap: nowrap !important;
}

.price-card-orient .img-area {
    width: 40%;
    background: white;
    /* Different background for image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card-orient .img-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
}

.price-card-orient .text-area {
    flex: 1;
    padding: 15px;
}

.text-area h5 {
    color: #4d8471;
    font-size: var(--fs-md);
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
}

.card-subtitle {
    display: block;
    color: #4d8471;
    /* Title color */
    font-size: var(--fs-base);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 800;
}

.text-area span span,
.card-subtitle span,
.orient-footer span,
.striped-table td span {
    color: #cc7a00;
    /* Bold orange for highlights */
    font-weight: 800;
}

.striped-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    background: white;
    table-layout: fixed;
}

.striped-table th,
.striped-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.striped-table th {
    background: #f0f0f0;
    font-weight: 700;
    color: #333;
}

.striped-table td:first-child {
    font-weight: 700;
}

.striped-table tr:nth-child(even) {
    background: #f9f9f9;
}

.striped-table td:last-child {
    color: var(--primary);
    font-weight: 800;
}

.orient-footer {
    font-size: var(--fs-sm);
    color: #4d8471;
    margin-top: 10px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

/* Pen Catalog V2 (Redesigned) */
.pen-catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.pen-card-v2 {
    background: #f0f0f0;
    /* Outer light grey background like in screenshot */
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #b7b7b7;
    /* Grey frame */
}

.pen-img-box-v2 {
    background: white;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 100px;
}

.pen-img-box-v2 img {
    max-width: 100%;
    height: auto;
}

.pen-footer-v2 {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 4px;
}

.pen-info-left {
    flex: 1.5;
    padding: 8px 10px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pen-info-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.pen-info-row:first-child {
    margin-bottom: 25px;
    /* Gap after Description row like in screenshot */
}

.pen-info-row:last-child {
    margin-bottom: 0;
}

.pen-info-row .label {
    font-weight: 700;
    color: #444;
    width: 140px;
    /* Wider label to match screenshot alignment */
}

.pen-info-row .value {
    font-weight: 500;
    color: #444;
}

.pen-info-right {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-row {
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-val {
    font-size: 21px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.price-unit {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.action-row {
    text-align: center;
}

.action-row p {
    font-size: 12px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.1;
}

.calc-btn-mini {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 18px;
    transition: background 0.3s;
}

.calc-btn-mini:hover {
    background: #008040;
}

/* Price Comparison */
.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table tr:nth-child(even) {
    background: #f8f8f8;
}

.comp-table td,
.comp-table th {
    padding: 6px 15px;
    font-size: 15px;
    line-height: 1.3;
    border: 1px solid #ddd;
}

.comp-table td:nth-child(2) {
    color: var(--primary);
    font-weight: 800;
}

.green-bg-transition {
    background: url('../assets/images/common/green background for kazakhstan print.png') no-repeat center;
    background-size: cover;
    width: 200px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-shirt {
    width: 450px;
    height: auto;
}

/* Calculator specific */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-results-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.res-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.res-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    width: 100px;
}

.res-val {
    border: 1px solid var(--primary);
    padding: 8px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

.input-invalid {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

.calc-error-box {
    display: none;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Detailed Pricing Tables */
.detailed-pricing-section {
    padding: 30px 0 60px;
}

.detailed-pricing-header {
    padding: 40px 0 0;
}

.detailed-pricing-header .section-heading {
    margin-bottom: 0;
}

.detailed-pricing-footer {
    padding-bottom: 80px;
}

.bg-lite {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

.detailed-pricing-title {
    color: var(--primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

.pricing-method-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.method-image {
    flex: 0 0 240px;
    padding: 0;
}

.method-image img {
    width: 100%;
    height: auto;
    display: block;
}

.method-info {
    flex: 1;
}

.method-info h3 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.method-info p {
    font-size: 14px;
    color: var(--gray-dark);
    margin-top: 15px;
    line-height: 1.4;
}

.pricing-table-v2 {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.pricing-table-v2 th,
.pricing-table-v2 td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.pricing-table-v2 th {
    background: #cccccc;
    color: #444;
    font-weight: 700;
}

.pricing-table-v2 tr:nth-child(even) {
    background: #f9f9f9;
}

.method-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.method-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.method-card .img-box {
    flex: 0 0 250px;
    align-items: flex-start;
}

.method-card .text-box {
    flex: 1;
}

.method-card h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.method-card ul {
    list-style: none;
    padding: 0;
}

.method-card li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Staff */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.staff-member-v3 {
    text-align: center;
    min-width: 0;
    /* Prevents cell overflow */
}

.staff-photo-v3 {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.staff-role-v3 {
    background: var(--gray-footer);
    color: white;
    padding: 5px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.staff-member-v3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.staff-member-v3 a:hover {
    color: var(--primary);
}


/* Footer */
.footer-v5 {
    background: #5e5e5e;
    color: white;
    padding: 0;
    /* Remove default padding, use inner spacing */
    min-width: 1220px;
    overflow-x: hidden;
}

.footer-v5 .container.footer-grid {
    padding-top: 10px;
    padding-bottom: 20px;
}

.footer-v5 {
    border-top: 8px solid #006048;
    /* Thick lime line at top */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-col h5 {
    font-size: var(--fs-md);
    margin-bottom: 10px;
    font-weight: 800;
    color: white;
    text-transform: none;
}

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

.footer-col li {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-col li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col li a:hover {
    color: var(--primary);
}


.footer-col img.icon {
    width: 20px;
    filter: brightness(0) invert(1);
}

.footer-gps-box {
    width: 100%;
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: block;
}

.footer-gps-box img {
    display: block;
    width: 100%;
}

.footer-bottom {
    background: #666666;
    /* Slightly different gray for the bottom part */
    padding: 20px 0;
    color: white;
    text-align: center;
    border-top: 8px solid #006048;
    /* Lime line between columns and copyright */
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.legal-footer-strip {
    min-width: 1220px;
    background: #fff;
    border-top: 1px solid #d9dfdd;
    color: #153d33;
}

.legal-footer-strip__inner {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.legal-footer-link {
    display: flex;
    min-height: 52px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    color: #153d33;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color 0.2s ease, background 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-footer-link:hover {
    background: #eef7f4;
    color: #005b45;
    text-decoration-color: currentColor;
}

.legal-footer-link:focus-visible {
    position: relative;
    outline: 3px solid #d88a00;
    outline-offset: -4px;
    background: #fff4d6;
    color: #352300;
}

.dipner-consent {
    margin: 12px 0 14px;
    color: #333;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.dipner-consent__label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    cursor: pointer;
}

.dipner-consent__checkbox {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #006048;
    cursor: pointer;
}

.dipner-consent a {
    color: #005b45;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dipner-consent a:focus-visible,
.dipner-consent__checkbox:focus-visible {
    outline: 3px solid #d88a00;
    outline-offset: 3px;
}

.dipner-consent__error {
    margin: 6px 0 0 31px;
    color: #a01717;
    font-size: 12px;
    font-weight: 700;
}

.dipner-consent.has-error .dipner-consent__label {
    color: #7f1010;
}

button[aria-disabled="true"] {
    cursor: not-allowed !important;
    filter: grayscale(0.5);
    opacity: 0.58;
}

@media (max-width: 900px) {
    .legal-page .legal-footer-strip,
    .legal-page .legal-footer-strip__inner {
        min-width: 0;
        width: 100%;
    }

    .legal-page .legal-footer-strip__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-device-width: 900px) {
    .legal-footer-strip {
        width: 100vw;
        min-width: 0;
    }

    .legal-footer-strip__inner {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .legal-page .legal-footer-strip__inner {
        grid-template-columns: 1fr;
    }

    .legal-page .legal-footer-link {
        min-height: 48px;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-device-width: 520px) {
    .legal-footer-strip__inner {
        grid-template-columns: 1fr;
    }

    .legal-footer-link {
        min-height: 48px;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Shared video slider */
.shiro-video-section {
    padding: 20px 0;
}

.shiro-video-heading {
    margin: 0 0 25px;
    color: var(--primary);
    text-align: left;
}

.shiro-video-container {
    position: relative;
    padding: 40px 55px;
    border-radius: 10px;
    background: #e0e0e0;
}

.shiro-video-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.shiro-video-track::-webkit-scrollbar {
    display: none;
}

.shiro-video-card {
    display: flex;
    min-width: 200px;
    max-width: 200px;
    overflow: hidden;
    flex-direction: column;
    border-radius: 4px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.shiro-video-card:focus-visible {
    outline: 3px solid #f1810b;
    outline-offset: 3px;
}

.shiro-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
}

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

.shiro-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
}

.shiro-video-play::after {
    content: "▶";
    margin-left: 3px;
}

.shiro-video-label {
    display: grid;
    min-height: 64px;
    padding: 10px;
    flex: 1;
    place-items: center;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.shiro-video-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 30px;
}

.shiro-video-arrow.left { left: 6px; }
.shiro-video-arrow.right { right: 6px; }
.shiro-video-arrow.left::before { content: "❮"; }
.shiro-video-arrow.right::after { content: "❯"; }

.shiro-video-arrow:focus-visible {
    outline: 3px solid #f1810b;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .shiro-video-container { padding: 25px 45px; }
    .shiro-video-card { min-width: 180px; max-width: 180px; }
}

/* Global Floating Arrow */
.section-arrow-fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
}

.section-arrow-fixed:hover {
    transform: translateX(-50%) scale(1.2);
}

.section-arrow-fixed img {
    width: 100%;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    padding: 0;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
    overflow: hidden;
}

.modal-gallery {
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.modal-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.modal-slider-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: var(--primary);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
}

.modal-body h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.6;
}

.modal-body h4 {
    margin: 20px 0 10px;
    color: var(--gray-dark);
    font-size: 17px;
}

/* Mobile adjustments - Disabled for fixed 1220px width */
/* Pen Modal Calculator Styles */
.modal-calc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.modal-calc-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 95vh;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #b7b7b7;
}

.modal-calc-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.modal-calc-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-calc-image-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.modal-calc-image-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.modal-calc-section {
    border-top: 1px solid #ddd;
    padding: 15px 0;
}

.section-row.vertical-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-num {
    font-weight: 700;
    font-size: 20px;
}

.section-label {
    font-weight: 700;
    font-size: 20px;
}

#modal-calc-qty {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Custom Checkbox/Radio */
.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    margin-bottom: 10px;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark,
.radio-mark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid #333;
    overflow: hidden;
    /* Clips the lines at the corners */
}

.radio-mark {
    border-radius: 50%;
    overflow: visible;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #eee;
}

.custom-checkbox input:checked~.checkmark {
    background-color: white;
}

.custom-radio input:checked~.radio-mark {
    background-color: white;
}

.checkmark:after,
.checkmark:before,
.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after,
.custom-checkbox input:checked~.checkmark:before {
    display: block;
}

.custom-checkbox input:checked~.checkmark:after {
    left: 50%;
    top: 50%;
    width: 2px;
    height: 34px;
    /* Diagonal of a 24x24 square is ~34px */
    background-color: #333;
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:before {
    left: 50%;
    top: 50%;
    width: 2px;
    height: 34px;
    background-color: #333;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.loc-text {
    color: var(--primary-dark);
}

.loc-layout-v2 {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
}

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

.loc-left .custom-checkbox {
    margin-bottom: 0;
}

.loc-right {
    flex: 1;
}

.loc-right img {
    max-width: 100%;
    height: auto;
    display: block;
}

.method-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.method-list label {
    border-bottom: 1px solid #eee;
    padding: 10px 0 10px 35px;
    margin-bottom: 0;
}

.method-right {
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Dynamic Price Table Styling */
.price-table-wrapper {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.price-table-toggle {
    background: #f8f9fa;
    color: var(--primary);
    padding: 15px;
    margin: 0;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-table-toggle:hover {
    background: #e9ecef;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.price-table-collapse {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.dynamic-prices {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dynamic-prices th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid var(--primary-dark);
}

.dynamic-prices td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #eee;
}

.dynamic-prices tr:nth-child(even) {
    background: #fdfdfd;
}

.dynamic-prices .method-name {
    text-align: left;
    font-weight: 700;
    color: #333;
    min-width: 180px;
}

.dynamic-prices .min-price {
    font-weight: 700;
    color: var(--accent);
}

.example-item img {
    height: 32px;
    width: auto;
}

.example-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-indicator {
    width: 25px;
    height: 15px;
}

.color-indicator.full {
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
}

.color-indicator.color1 {
    background: #d7b56d;
}

.color-indicator.color2 {
    background: linear-gradient(to right, #0076a8 50%, #ed1c24 50%);
}

.color-indicator.laser {
    background: #333;
}

.example-label small {
    color: #888;
}

.modal-calc-results {
    background: #f7fdfa;
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.results-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
}

.result-row .res-label {
    width: auto;
    font-weight: 500;
    font-size: 20px;
}

.result-row .res-value {
    font-size: 20px;
    font-weight: 600;
}

.result-row.total-price .res-label {
    color: var(--accent);
    font-size: 26px;
    font-weight: 700;
}

.result-row.total-price .res-value {
    color: var(--accent);
    font-size: 26px;
    font-weight: 700;
}

.modal-calc-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.modal-calc-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: white;
}

.btn-manager {
    background: var(--primary);
}

.btn-order {
    background: var(--accent);
}


.modal-body ul {
    list-style: none;
    margin-bottom: 25px;
}

.modal-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.modal-feature-box {
    background: var(--bg-light);
    padding: 20px;
    border-left: 5px solid var(--primary);
    border-radius: 4px;
    margin-top: 20px;
}

.modal-video-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed var(--primary);
}

.modal-video-link:hover {
    color: var(--primary-dark);
}

/* Calculator Error States */
.calc-error-input {
    border: 2px solid #e74c3c !important;
    background-color: #ffe6e6 !important;
    animation: shake 0.3s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.error-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.error-modal-content h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 22px;
}

.error-modal-content p {
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.error-modal-close:hover {
    background: #c0392b;
}

/* --- Shablon2 Specific Styles --- */
.hero-v2 {
    padding-top: 15px;
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.hero-v2-title {
    grid-column: 1 / -1;
    color: var(--primary);
    font-size: var(--fs-h1);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-h1);
    margin-bottom: 15px;
    margin-top: 15px;
}

.hero-v2-left {
    height: auto;
}

.hero-list-card {
    background: #f0f7f5;
    /* Light mint/gray */
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    height: auto;
    overflow: hidden;
}

.hero-v2-left ul {
    list-style: none;
    margin-bottom: 0;
}

.hero-v2-left ul li {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    padding-left: 32px;
    line-height: 1.3;
    color: var(--dark);
}


.hero-v2-left ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008060'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hero-v2-right {
    min-height: 160px;
}

.hero-v2-right .hero-desc {
    font-size: 15px;
    line-height: 1.3;
    color: var(--dark);
}

.hero-v2-banner {
    margin-top: var(--space-6);   /* отступ между информационным блоком и слайдером */
    text-align: center;
    height: 567px;
    overflow: hidden;
    border-radius: 4px;
    padding-left: 0;
}

/* New Hero Section with Overlay */
/* New Hero Section with Overlay */
.hero-v2-new {
    position: relative;
    width: 100%;
    /* Remove fixed height to allow container to drive it */
    padding: 20px 0;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    /* Original-like height */
    overflow: hidden;
    border-radius: 12px;
    /* Added rounded corners for a cleaner look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider .slide,
.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active,
.hero-slider img.active {
    opacity: 1;
    z-index: 2;
}

/* Fallback for first slide if JS is slow */
.hero-slider .slide:first-child,
.hero-slider img:first-of-type {
    opacity: 1;
}

.hero-slider .slide.active~.slide:first-child,
.hero-slider img.active~img:first-of-type {
    opacity: 0;
}

.hero-overlay {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: center;
}

.hero-overlay-content {
    width: 100%;
    max-width: 800px;
    color: white;
    padding-left: 60px;
    height: 480px !important;
    /* Force fixed height */
    min-height: 480px !important;
    position: relative;
    display: block;
    flex-shrink: 0;
    /* Prevent flex parent from shrinking it */
}

.hero-title,
.hero-description,
.hero-subtext {
    transition: opacity 0.4s ease;
    margin: 0;
    /* Clear margins to prevent accumulation issues */
}

.hero-title {
    font-size: 36px;
    /* Further reduced to 36px */
    font-weight: 800;
    line-height: 1.1;
    padding-bottom: 40px;
    /* Adjusted padding */
    color: white;
    text-transform: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 200px;
    /* Increased height to prevent overlap */
    overflow: hidden;
}

.hero-description {
    font-size: 20px;
    line-height: 1.35;
    padding-bottom: 10px;
    /* Reduced from 20px */
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    height: 190px;
    /* Increased to fit merged subtext */
    overflow: hidden;
}

.hero-btns {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 15px;
    /* Moved up by 5px */
    left: 60px;
    height: 60px;
    /* Fixed height for buttons area */
    align-items: center;
}

.btn-hero {
    display: inline-block;
    padding: 12px 25px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary-site {
    background: #0b7781;
    color: white;
    border: 2px solid #0b7781;
}

.btn-primary-site:hover {
    background: #085a63;
    border-color: #085a63;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 119, 129, 0.3);
}

.btn-outline-site {
    background: transparent;
    color: white;
    border: 2px solid #dddddc;
}

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

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Services V3 (New Card Layout) */
.services-v3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    /* Restored from 5px to keep cards separated */
    margin-top: 0;
    /* Let the heading's 5px margin-bottom control the gap */
}

.service-v3-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-v3-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px-45px rgba(0, 0, 0, 0.1);
}

.service-v3-img-wrap {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.service-v3-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-v3-card:hover .service-v3-img-wrap img {
    transform: scale(1.1);
}

.service-v3-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-v3-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-v3-content h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-v3-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.service-v3-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}



/* Services V2 */
.services-v2 {
    background: var(--bg-light);
}

.services-v2-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.service-card-v2 {
    text-align: center;
    transition: var(--transition);
}

.service-card-v2:hover {
    transform: translateY(-5px);
}

.service-card-v2 img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-card-v2 h4 {
    font-size: 16px;
    font-weight: 700;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    line-height: 1.2;
    background: var(--primary);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 0;
}


/* Team & Video V2 */
.team-video-v2 {
    padding: 60px 0;
    background: #fff;
}

.team-video-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 20px;
}

.team-illustration img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.transition-arrow {
    text-align: center;
}

.transition-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.video-container-v2 {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* 8 Reasons V2 */
.reasons-v2 {
    background: var(--bg-light);
}

.reasons-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 30px;
    margin-top: 50px;
}

.reason-item-v2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vyveski Types Section */
.vyveski-types-section {
    padding: 15px 0;
    background: #fff;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.type-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.type-item img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.btn-type {
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.btn-type:hover {
    background: #006048;
    color: white;
}

.video-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

.video-box-v2 {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: transparent;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 128, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay svg {
    width: 30px;
    height: 30px;
}

.video-box-v2 h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    color: white;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.reason-item-v2 img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    margin-bottom: 20px;
}


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

.reason-item-v2 h4 {
    font-size: var(--fs-base);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.reason-item-v2 p {
    font-size: 14px;
    color: var(--gray-footer);
    line-height: 1.4;
    max-width: 220px;
}

/* Green Bottom Banner V2 */
.green-banner-v2 {
    background: var(--primary);
    color: white;
}

.green-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.green-banner-text {
    font-size: 19px;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.green-banner-img {
    flex-shrink: 0;
}

.green-banner-img img {
    height: 100px;
}

/* Instagram Section V2 */
.instagram-v2 {
    background: #fff;
}

.instagram-reviews-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.insta-feed-box img,
.reviews-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.section-tagline {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: block;
}

/* Lead Form Textarea Fix */
.green-frame-card .white-box textarea {
    resize: none;
    width: 100% !important;
    display: block;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    min-height: 100px;
}


/* Additional adjustment for Green Banner V2 Image */
.green-banner-img img {
    height: auto !important;
    max-height: 140px;
    width: auto;
    display: block;
}

/* Social Widgets Styling */
.instagram-reviews-grid {
    align-items: stretch;
}

.insta-feed-box,
.reviews-box {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.box-title {
    font-size: var(--fs-md);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
}

.instawall-root30776 {
    min-height: 80px;
    margin: 0 auto;
}

/* --- Shablon3 (Bags) Specific Styles --- */
.price-table-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.table-title {
    color: var(--primary);
    font-size: var(--fs-md);
    font-weight: 800;
    margin-bottom: 5px;
    text-align: center;
}

.table-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.comp-table.v3 {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.comp-table.v3 th,
.comp-table.v3 td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: center;
}

.comp-table.v3 th {
    background: #f8f9fa;
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
}

.comp-table.v3 tr:nth-child(even) {
    background: #fafafa;
}

.comp-table.v3 td {
    font-size: 14px;
    font-weight: 500;
}

.responsive-table {
    overflow-x: auto;
    width: 100%;
    max-width: 1220px;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal.active .success-content {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #e6f4ea;
    border-radius: 50%;
    color: var(--primary);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #1e1e1e;
    margin-bottom: 10px;
}

.success-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.success-close-btn:hover {
    background: #006048;
}

/* Souvenir Categories & Items */
.souvenir-categories {
    padding-bottom: 0;
}

.category-group {
    margin-bottom: 0;
}

.category-title {
    color: var(--primary);
    font-size: var(--fs-h2);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-h2);
    margin: 0 0 var(--heading-gap);
}

.souvenir-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.souvenir-item {
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.souvenir-item:hover {
    transform: translateY(-5px);
}

.souvenir-item .icon-box {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.souvenir-item .icon-box img {
    max-width: 100%;
    max-height: 80%;
}

.souvenir-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    transition: var(--transition);
    margin-bottom: 10px;
}

.souvenir-item:hover h4 {
    color: var(--primary);
}

.sub-categories-row {
    display: flex;
    gap: 270px;
    margin-bottom: 60px;
}

.sub-category-block {
    flex: 1;
}

/* Background Utility */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Footer Search Bar Refinement */
.footer-search-container {
    background-color: var(--bg-light);
}

.footer-search-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.search-title-text {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}

.search-arrow {
    display: flex;
    align-items: center;
}

.footer-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.footer-search-form input {
    width: 400px;
    padding: 10px 15px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.footer-search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.footer-search-form button:hover {
    background: var(--primary-dark);
}

.footer-search-container .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border: 1px solid #ccc;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

/* Global Content Pane & Tables */
.pane-content {
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.pane-content h2 {
    color: var(--primary);
    font-size: var(--fs-xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-align: center;
}

.pane-content h3 {
    color: var(--dark);
    font-size: var(--fs-lg);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.pane-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.pane-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pane-content th,
.pane-content td {
    padding: 10px 15px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: var(--fs-base);
    line-height: 1.2;
}

.pane-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pane-content tr:first-child {
    background-color: #eaeaea;
}

.pane-content td:first-child {
    background-color: #eaeaea;
}

.pane-content strong {
    color: var(--primary);
    font-weight: 700;
}

.pane-content p {
    margin-bottom: 15px;
    font-size: var(--fs-base);
    color: var(--dark);
}

/* Product Row Layout (Packets Page) */
.product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.product-img-col {
    max-width: 100%;
}

.product-img-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.product-info-col {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 900px) {
    .product-row {
        flex-direction: column;
    }

    .product-img-col {
        flex: 0 0 auto;
        align-self: center;
        width: 100%;
    }
}

/* Vyveski Detail Sections */
.vyveski-detail-section {
    padding: 15px 0;
    scroll-margin-top: 170px;
}


.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.detail-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--dark);
}

.detail-text p {
    margin-bottom: 15px;
}

.detail-text b,
.detail-text strong {
    font-weight: 800;
    color: var(--dark);
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.detail-subhead {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Pricing Table V3 */
.pricing-table-v3 {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    table-layout: fixed;
    /* Added to make columns equal width */
}

.pricing-table-v3 th,
.pricing-table-v3 td {
    border: 1px solid #ccc;
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: break-word;
    /* Ensure text doesn't break layout */
}

.pricing-table-v3 th {
    background: #eaeaea;
    color: var(--dark);
    font-weight: 700;
}

.pricing-table-v3 tr:nth-child(even) {
    background: #f9f9f9;
}

/* Specific for Svetovye Vyveski sub-grid */
.sv-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.sv-type-item {
    text-align: center;
}

.sv-image-box {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    aspect-ratio: 1 / 1;
    /* Adjust based on icon shape */
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.sv-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sv-image-box .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sv-type-item:hover .img-hover {
    opacity: 1;
}

.sv-type-item span {
    font-size: 11px;
    font-weight: 800;
    display: block;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1.2;
}

.btn-examples-prices {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-examples-prices:hover {
    background: #006048;
    color: white;
}

.arrow-indicator {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

/* @media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sv-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid-v2 {
        grid-template-columns: 1fr;
    }
} */

/* Calculation Schema Section */
.calc-schema-section {
    padding: 15px 0 40px;
    background: #fff;
}

.calc-schema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calc-schema-item {
    text-align: center;
}

.calc-schema-item h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.calc-schema-item img {
    width: 100%;
    height: auto;
    border: none;
    /* Removed border as requested */
    border-radius: 0;
}

.calc-notice {
    text-align: left;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

.calc-notice p {
    margin-bottom: 8px;
}

.calc-notice b {
    color: var(--accent);
    /* Attention orange */
    font-weight: 800;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    margin-top: 5px;
}

.calc-table tr:nth-child(even) {
    background-color: #f1f1f1;
}

.calc-table td {
    padding: 8px 8px;
    /* Reduced padding slightly */
    border: 1px solid #ccc;
    color: #333;
    line-height: 1.2;
}

/* Targeted width for first column to give more space to formula */
.calc-table tr:not(.total-row) td:first-child {
    width: 25%;
}

.calc-table .calc-formula {
    color: var(--primary);
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    /* Force one line */
}

.calc-table td:nth-last-child(1),
.calc-table td:nth-last-child(2) {
    text-align: right;
    white-space: nowrap;
}

/* Adjust alignment for rows with colspans and ensure they don't break formula */
.calc-table td[colspan="2"] {
    width: auto;
    text-align: left;
}

.calc-table tr.total-row {
    background-color: #efefef;
    font-weight: 800;
}

.calc-table tr.total-row td:first-child {
    text-align: left;
    /* Ensure total text is to the left */
}

.calc-table tr.total-row td:last-child {
    font-size: 14px;
}

/* @media (max-width: 900px) {
    .calc-schema-grid {
        grid-template-columns: 1fr;
    }
} */

/* ========================================
   ZOOM FIX - Prevent horizontal shift at any zoom level
   ======================================== */

/* Ensure all major sections stay within viewport bounds but don't limit body-wide elements */
section,
.staff-section,
.hero-grid,
.banner-faq,
.checklist-grid,
.price-grid-orient,
.tech-cards,
.calc-grid {
    box-sizing: border-box;
}

/* Fix container to respect viewport at high zoom */
.container {
    width: 1220px;
    /* Keep hard fixed width */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure all images stay within bounds */
img {
    max-width: 100%;
    height: auto;
}

/* Specific fix for footer search icons to prevent them from enlarging */
.footer-search-container img {
    height: 50px !important;
    width: auto !important;
}

/* Fix footer bottom bar */
.footer-bottom {
    width: 100%;
}

/* Fix mega menu at high zoom */
.mega-menu {
    width: 100%;
    overflow: visible !important;
}

/* Fix modal overlays */
.modal-overlay,
.error-modal-overlay {
    width: 100%;
}

/* AEO Accordion Styles */
.aeo-accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.aeo-header {
    width: 100%;
    padding: 15px 10px;
    background: #f9f9f9;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    border-radius: 4px;
}

.aeo-header:hover {
    background: var(--bg-light);
}

.aeo-header h2,
.aeo-header h3 {
    margin: 0 !important;
    font-size: var(--fs-md) !important;
    color: var(--primary);
    font-weight: 700 !important;
}

.aeo-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-weight: bold;
}

.aeo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.aeo-content-inner {
    padding: 20px 10px;
    font-size: var(--fs-sm);
    color: var(--gray-nav);
    line-height: 1.6;
}

.aeo-accordion-item.active .aeo-icon {
    transform: rotate(180deg);
}

.aeo-accordion-item.active .aeo-header {
    background: var(--bg-light);
}

/* FAQ Accordion Styles */
.faq-block {
    padding: 40px 0;
    background: #fff;
}

.faq-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-header:hover {
    border-bottom-color: var(--primary);
}

.faq-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.faq-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-header {
    border-bottom-color: var(--primary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.faq-content-inner {
    padding: 20px 0;
}

.faq-item.active .faq-content {
    max-height: 1200px;
}

/* Consultation Modal Styles */
.consultation-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.consultation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-content {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #888;
    width: 950px;
    max-width: 95%;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.consultation-close {
    color: #333;
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

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

.consultation-header {
    text-align: center;
    margin-bottom: 40px;
}

.consultation-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 40px;
    align-items: center;
}

.consultation-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

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

.form-group-cons input,
.form-group-cons textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1.5px solid #666;
    border-radius: 10px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
}

.form-group-cons input:focus,
.form-group-cons textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group-cons textarea {
    height: 180px;
    resize: none;
}

.cons-submit-btn {
    background-color: #008080;
    color: white;
    padding: 18px;
    border: 1px solid #000;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.cons-submit-btn:hover {
    background-color: #006666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive for small screens */
@media screen and (max-width: 900px) {
    .consultation-grid {
        grid-template-columns: 1fr;
    }

    .consultation-header h2 {
        font-size: 24px;
    }

    .consultation-content {
        padding: 20px;
    }
}


/* ===== Утилиты единого стандарта (вместо inline style="") ===== */
.t-center { text-align: center; } .t-left { text-align: left; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); }
.text-muted { color: var(--text-2); } .text-accent { color: var(--accent); } .text-primary { color: var(--primary); font-weight: var(--fw-heavy); }
.bg-white { background: #fff; } .bg-soft { background: var(--primary-soft); }
.section--spacious { padding: var(--space-7) 0; }
.table-std { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: #fff; }
.table-std th { background: var(--primary); color: #fff; font-weight: var(--fw-bold); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); }
.table-std td { padding: var(--space-2) var(--space-3); border: 1px solid var(--border); text-align: center; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.form-input { display: block; width: 100%; padding: 10px; margin-bottom: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-small); box-sizing: border-box; }
.btn-primary { display: block; width: 100%; padding: var(--space-3); background: var(--primary); color: #fff; border: 0; border-radius: var(--radius-sm); font-size: var(--fs-btn); font-weight: var(--fw-bold); cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); }
.price-box { border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); background: var(--primary-soft); }

/* ===== Карточки ручек по стандарту (фото 945×240 → окно 4:1, без обрезки) ===== */
.pen-card-v2 { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.pen-img-box-v2 { aspect-ratio: 4 / 1; padding: var(--card-photo-pad); background: var(--card-photo-bg); border-radius: 0; border-bottom: 1px solid var(--border-2); }
.pen-img-box-v2 img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pen-footer-v2 { border-radius: 0; }
.pen-info-row { font-size: var(--fs-small); line-height: var(--lh-small); }
.price-val { font-size: var(--fs-price); font-weight: var(--fw-heavy); color: var(--primary); }   /* было 21px/900 */
.price-unit { font-size: var(--fs-small); color: var(--primary); }
.action-row p { font-size: var(--fs-xs); }
.calc-btn-mini { background: var(--primary); font-size: var(--fs-btn); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.calc-btn-mini:hover { background: var(--primary-dark); }
.pen-catalog-grid { gap: var(--grid-gap); }

/* Значок WhatsApp вместо слова в контактах менеджеров */
.wa-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; display: inline-block; }
.wa-num { white-space: nowrap; }

/* Подвал: расположение колонок (часы работы — под «Ищите нас») */
.footer-v5 .container.footer-grid {
    grid-template-areas: "about social contacts map" "about hours contacts map";
    grid-template-rows: auto 1fr;
    row-gap: 8px;
}
.footer-col--about { grid-area: about; }
.footer-col--social { grid-area: social; }
.footer-col--hours { grid-area: hours; }
.footer-col--contacts { grid-area: contacts; }
.footer-col--map { grid-area: map; }
.footer-hours { font-size: 14px; line-height: 1.5; margin: 0; }

/* Разрыв строки в полосе ссылок подвала — нужен только на телефоне */
.legal-footer-break { display: none; }

/* Ссылки по умолчанию — фирменный зелёный вместо синего браузерного.
   :where() даёт нулевую специфичность, поэтому любые ссылки со своим стилем (меню, кнопки, карточки, подвал) не меняются. */
:where(a) { color: var(--primary); text-decoration: none; }
:where(a:hover) { color: var(--primary-dark); text-decoration: underline; }

/* ---------- Блок-кнопка калькулятора (calc_cta.php, как на vyveski.php) ---------- */
.calc-trigger-section { padding: 40px 0 20px; text-align: center; }
.calc-cta {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px; margin: 8px 0;
    background: var(--primary-soft); border: 2px solid var(--primary);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.calc-cta-icon {
    flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; background: var(--primary); color: #fff;
}
.calc-cta-text { flex: 1 1 auto; min-width: 0; text-align: left; }
.calc-cta-title { font-size: var(--fs-h3); font-weight: 800; color: var(--primary); line-height: 1.2; }
.calc-cta-sub { font-size: var(--fs-small); color: var(--text); margin-top: 4px; }
.btn-calc-cta {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px;
    background: var(--secondary); color: var(--dark);
    padding: 16px 32px; font-size: 18px; font-weight: 800;
    border-radius: 50px; text-decoration: none;
    box-shadow: 0 6px 16px rgba(253, 201, 0, .45);
    animation: calcCtaPulse 2.4s ease-in-out infinite;
    transition: transform .3s ease, background .3s ease;
}
.btn-calc-cta:hover { background: #ffd83a; color: var(--dark); transform: translateY(-3px); }
.btn-calc-cta:active { transform: translateY(0); }
@keyframes calcCtaPulse { 0%, 100% { box-shadow: 0 6px 16px rgba(253, 201, 0, .45); } 50% { box-shadow: 0 6px 26px rgba(253, 201, 0, .85); } }
@media (prefers-reduced-motion: reduce) { .btn-calc-cta { animation: none; } }
@media (max-width: 768px) {
    .calc-cta { flex-direction: column; text-align: center; padding: 16px; gap: 12px; }
    .calc-cta-text { text-align: center; }
    .btn-calc-cta { width: 100%; justify-content: center; padding: 14px 16px; font-size: 17px; box-sizing: border-box; }
}
.suggestion-item.suggestion-empty { cursor: default; color: var(--text); white-space: normal; line-height: 1.4; }
.suggestion-item.suggestion-empty a { color: var(--primary); font-weight: 700; }

/* ---------- Объявление на странице (временно не делаем и т.п.) ---------- */
.page-notice-section { padding: 16px 0 0; }
.page-notice { padding: 14px 18px; border-left: 4px solid #f1810b; background: #fff4e6; border-radius: var(--radius-sm, 8px); color: var(--text); font-size: var(--fs-body, 16px); line-height: 1.5; }
.page-notice a { color: var(--primary); font-weight: 700; }

/* Переключатель языков (i18n/lib.php → i18n_switcher) */
/* Переключатель языка — в строке адреса, слева от «КАЗАХСТАН»; высота кнопок = высота букв, шапка не выше прежней */
.header-addr { white-space: nowrap; line-height: 27px; margin-bottom: -6px !important; } /* три строки (адрес ×2, телефон) — с ровным шагом, высота блока прежняя */
.lang-switch { display: inline-flex; gap: 2px; margin: 0 10px 0 0; padding: 0; vertical-align: baseline; line-height: 1; }
.lang-switch a { display: inline-block; padding: 0 5px; border-radius: 3px; font-size: 0.85em; line-height: 1.15; font-weight: 700; letter-spacing: .4px; color: #e6ebe9; text-decoration: none; background: #4a504e; transition: var(--transition); }
.lang-switch a:hover { color: #fff; background: #5e6563; }
.lang-switch a.on { background: var(--primary); color: #fff; }
.nav-lang { display: none; }
@media (max-width: 1239px) {
    header .header-info p.header-addr { display: none; }
    .nav-lang { display: block; padding: 12px 16px 4px; }
    .nav-lang .lang-switch { margin: 0; gap: 6px; }
    .nav-lang .lang-switch a { font-size: 14px; line-height: 1; padding: 8px 14px; border-radius: 6px; color: var(--text); background: #eef2f0; }
    .nav-lang .lang-switch a.on { background: var(--primary); color: #fff; }
}

/* ---------- Блок «Заказ из Астаны» (astana_block.php) ---------- */
.astana-block { padding: 30px 0 40px; background: var(--bg); }
.astana-card { border: 2px solid var(--primary-line); background: var(--primary-soft); border-radius: 16px; padding: 26px 28px; }
.astana-head { display: flex; gap: 16px; align-items: flex-start; }
.astana-ico { flex: 0 0 44px; width: 44px; height: 44px; color: var(--primary); }
.astana-title { margin: 0 0 6px; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--primary); }
.astana-lead { margin: 0; color: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); }
.astana-steps { list-style: none; counter-reset: as; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.astana-steps li { counter-increment: as; background: var(--bg); border-radius: 12px; padding: 14px 14px 14px 50px; position: relative; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); }
.astana-steps li::before { content: counter(as); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.astana-steps b { display: block; color: var(--text); font-size: var(--fs-body); margin-bottom: 2px; }
.astana-actions { margin-top: 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.astana-btn { display: inline-block; background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.astana-btn:hover { background: var(--primary-dark); color: #fff; }
.astana-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.astana-link:hover { text-decoration: underline; }
@media (max-width: 900px) { .astana-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .astana-card { padding: 20px 16px; } .astana-steps { grid-template-columns: 1fr; } .astana-head { gap: 12px; } .astana-ico { flex-basis: 36px; width: 36px; height: 36px; } }
.astana-steps--page { grid-template-columns: repeat(5, 1fr); margin: 18px 0; }
.astana-steps--page li { background: var(--primary-soft); }
.astana-note { color: var(--text-2); font-size: var(--fs-small); }
@media (max-width: 1100px) { .astana-steps--page { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .astana-steps--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .astana-steps--page { grid-template-columns: 1fr; } }
