/*
Theme Name: Tokstone
Theme URI: https://tokstone.com
Author: Tokstone Team
Author URI: https://tokstone.com
Description: Custom WordPress theme for Tokstone, ported from static HTML. Supports Polylang and ACF.
Version: 1.0.0
Text Domain: tokstone
*/

:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --color-gold: #D4AF37;
    --color-black: #111111;
    --color-white: #FFFFFF;
    --color-gray: #71717A;
    --bg-dark: #0A0A0A;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TOKSTONE — Design System
   Based on marbrasa.com.br
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY & RESETS === */
/* Base (Divs, lists) */
body, div, li, span {
    font-weight: 400;
    line-height: 24px;
    color: #7a7a7a;
}

/* Paragraphs */
p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 1rem;
}

/* Links */
a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover { opacity: 0.7; }
ul { list-style: none; }

/* Headings */
h2, .section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #000;
    margin-bottom: 2rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: #000;
}

.section-title--large {
    font-size: clamp(2.5rem, 5vw, 70px);
}

.section-title--center {
    text-align: center;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
}

.btn--outline {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.btn--outline:hover {
    background: #fff;
    color: #000;
    opacity: 1;
}

.btn--outline-black {
    color: #000;
    border: 1px solid #000;
    background: transparent;
}

.btn--outline-black:hover {
    background: #000;
    color: #fff;
    opacity: 1;
}

.btn--white {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.btn--white:hover {
    background: transparent;
    color: #fff;
    opacity: 1;
}

.btn--black {
    color: #fff;
    background: #000;
    border-color: #000;
}

.btn--black:hover {
    background: transparent;
    color: #000;
    opacity: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

.header__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header__left-menu {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.header__left-menu li a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

.header__left-menu li a:hover {
    opacity: 0.7;
}

.header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header__logo-img {
    height: 44px;
    width: auto;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

/* Desktop: full names — visible >768px, hidden on mobile */
.lang-switcher--desktop {
    display: flex;
}
.lang-switcher--mobile {
    display: none;
}

@media (max-width: 768px) {
    .lang-switcher--desktop {
        display: none;
    }
    .lang-switcher--mobile {
        display: flex;
    }
}

.lang-switcher__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 12px;
}

.lang-switcher__list li a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #7A7A7A;
    transition: color 0.3s;
    text-transform: uppercase;
}

.lang-switcher__list li.current-lang a,
.lang-switcher__list li a:hover {
    color: #000;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #7A7A7A;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.lang-btn.active { color: #000; }
.lang-btn:hover { color: #000; }

.lang-divider {
    font-size: 0.8rem;
    color: #ccc;
}

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    width: 34px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 75%; margin-left: auto; }
.hamburger span:nth-child(3) { width: 50%; margin-left: auto; }

.hamburger:hover span { width: 100%; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.open {
    pointer-events: all;
    visibility: visible;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.open .mobile-menu__overlay { opacity: 1; }

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    padding: 60px 48px;
    transition: right 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open .mobile-menu__panel { right: 0; }

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mobile-menu__close:hover { transform: rotate(90deg); }

.mobile-menu__list {
    margin-top: 40px;
}

.mobile-menu__list li {
    border-bottom: 1px solid #eee;
}

.mobile-menu__list a {
    display: block;
    padding: 18px 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    transition: padding-left 0.3s ease;
}

.mobile-menu__list a:hover {
    padding-left: 12px;
    opacity: 1;
}

.mobile-menu__logo {
    margin-top: auto;
    padding-top: 40px;
}

.mobile-menu__logo img {
    height: 47px;
}

.mobile-menu__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.mobile-menu__lang-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu__lang-link.active,
.mobile-menu__lang-link:hover {
    color: #000;
}

.mobile-menu__lang-sep {
    color: #ddd;
    font-size: 0.8rem;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 104px;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.0);
}

.hero__slide.active { opacity: 1; z-index: 1; animation: kenBurns 10s ease-out forwards; }

@keyframes kenBurns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeSlideUp 0.8s ease;
}

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

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 42px);
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero__title strong {
    font-weight: 600;
}

.hero__btn {
    display: inline-block;
    padding: 10px 32px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero__btn:hover {
    background: #fff;
    color: #000;
}

/* Hero Arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
}

.hero__arrow:hover { color: #fff; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* Hero Dots */
.hero__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.hero__dot.active { background: #fff; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    position: relative;
    z-index: 100;
    margin-top: -42px; /* overlaps half on top hero, half on bottom */
    display: flex;
    justify-content: center;
    padding: 0;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
}

@media screen and (max-width: 1200px) {
    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover { opacity: 1; }

.category-card:hover .category-card__img {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    transition: background 0.4s ease;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%);
}

.category-card__title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* helps read text over light marbles */
    margin: 0;
}

/* ============================================
   FEATURE BANNERS
   ============================================ */
.banners {
    padding: 80px 20px;
    max-width: 1040px; /* 1000px + 40px padding */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.banner {
    position: relative;
    width: 1000px;
    max-width: 100%;
    height: 193px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0;
    margin: 0 auto;
}

.banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.banner:hover .banner__bg { transform: scale(1.04); }

.banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .banner__content {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 0 20px;
        text-align: center;
    }
}

.banner__title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.banner .btn--white {
    width: 132px;
    height: 33px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* ============================================
   PRODUCTS INTRO
   ============================================ */
.products-intro {
    padding: 100px 40px;
    text-align: center;
    background: #f5f5f0;
}

.products-intro__inner {
    max-width: 700px;
    margin: 0 auto;
}

.products-intro__text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 36px;
}

/* ============================================
   QUALITY BLOCK
   ============================================ */
.quality {
    padding: 100px 40px;
    background: #fff;
}

.quality__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.quality__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 32px;
}

.quality__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ============================================
   TEXTURE SHOWCASE
   ============================================ */
.texture-showcase {
    padding: 120px 40px;
    background: #f5f5f0;
    overflow: hidden;
}

.texture-showcase__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
}

.texture-showcase__slab {
    position: absolute;
    overflow: hidden;
}

.texture-showcase__slab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texture-showcase__slab--dark {
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.texture-showcase__slab--light {
    right: 0;
    top: 40px;
    width: 55%;
    height: 100%;
    z-index: 2;
}

.texture-showcase__text {
    position: absolute;
    z-index: 3;
    bottom: 40px;
    left: 0;
    width: 100%;
}

.texture-showcase__line1 {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.texture-showcase__line2 {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-style: italic;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.1;
    margin-left: 35%;
}

/* ============================================
   QUARRIES
   ============================================ */
.quarries {
    padding: 100px 40px;
    background: #fff;
}

.quarries__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.quarries__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.quarries__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 32px;
}

/* ============================================
   RESPONSIBILITY / ESG
   ============================================ */
.responsibility {
    padding: 100px 40px;
    background: #f5f5f0;
}

.responsibility__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.responsibility__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 24px;
}

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

.responsibility__badge img {
    max-width: 280px;
    height: auto;
}

/* ============================================
   INSTAGRAM FEED
   ============================================ */
.instagram {
    padding: 80px 0 0 0;
    background: #111;
}

.instagram__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.instagram__handle a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
}

.instagram__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    width: 100%;
}

/* Переопределяем стили плагина Smash Balloon, чтобы он выглядел ровно как наша сетка */
#sb_instagram {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sb_instagram #sbi_images {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 2px !important;
    padding: 0 !important;
}
#sb_instagram .sbi_item {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sb_instagram .sbi_header,
#sb_instagram .sbi_load_btn,
#sb_instagram .sbi_follow_btn {
    display: none !important; /* Убираем шапку и кнопки, как у Marbrasa */
}

.instagram__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.instagram__item:hover img { transform: scale(1.08); }

/* ============================================
   FOOTER — Exact Marbrasa clone
   ============================================ */
.footer {
    background: #000;
    color: #fff;
    font-family: var(--font-body);
}

/* Main area */
.footer-main {
    padding: 80px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* --- Column base --- */
.footer-col {
    flex-shrink: 0;
}

/* Col 1: Logo */
.logo-col {
    width: 220px;
    padding-right: 40px;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    filter: invert(1) brightness(2);
}

/* Col 2: Contacts + Social */
.contact-col {
    width: 260px;
    padding-right: 40px;
}

.contact-item {
    margin-bottom: 6px;
}

.contact-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
    transition: color 0.25s;
}

.contact-item a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    align-items: center;
}

.social-icon {
    color: rgba(255,255,255,0.45);
    transition: color 0.25s;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: #fff;
}

/* Col 3: Address */
.address-col {
    width: 240px;
    padding-right: 40px;
}

.address-col p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Col 4: Map */
.map-col {
    flex: 1;
    min-width: 0;
}

.map-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) invert(90%) contrast(110%);
}

/* Bottom copyright bar — light gray like Marbrasa */
.footer-bottom {
    background: #e6e7e8;
    padding: 16px 60px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: #333;
    letter-spacing: 0.02em;
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 40px;
        padding: 0 40px;
    }
    .logo-col { width: 100%; padding-right: 0; margin-bottom: 0; }
    .contact-col { width: auto; flex: 1; padding-right: 20px; }
    .address-col { width: auto; flex: 1; padding-right: 20px; }
    .map-col { width: 100%; flex: none; }
}

@media (max-width: 600px) {
    .footer-main { padding: 50px 0; }
    .footer-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 32px;
    }
    .logo-col,
    .contact-col,
    .address-col,
    .map-col { width: 100%; padding-right: 0; }
    .map-wrapper { height: 200px; }
    .footer-bottom { padding: 14px 24px; }
}


/* ============================================
   ANIMATIONS (Scroll Reveal)
   ============================================ */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(.215,.61,.355,1);
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For staggered delays in catalog/categories */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }



/* ============================================
   CONTACT MENU (Floating Buttons)
   ============================================ */
.contact-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-menu__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-menu.open .contact-menu__items,
.contact-menu:hover .contact-menu__items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-menu__item {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.contact-menu__item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-menu__item--telegram { color: #0088cc; }
.contact-menu__item--whatsapp { color: #25D366; }
.contact-menu__item--phone { color: #333; }

.contact-menu__label {
    position: absolute;
    right: 60px;
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-menu__item:hover .contact-menu__label {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.contact-menu__main {
    width: 60px;
    height: 60px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.contact-menu__main:hover {
    transform: scale(1.05);
}

.contact-menu.open .contact-menu__main {
    background: #fff;
    color: #000;
}

.contact-menu.open .icon-chat { display: none; }
.contact-menu.open .icon-close { display: block !important; }

@media (max-width: 768px) {
    .contact-menu {
        bottom: 20px;
        right: 20px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CATALOG & LOGISTICS SECTIONS --- */
.catalog, .logistics {
    padding: 120px 0;
    overflow: hidden;
}

.catalog__inner, .logistics__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 100px;
}

.catalog__text, .logistics__text {
    flex: 1;
}

.catalog__image, .logistics__image {
    flex: 1;
}

.catalog__image img, .logistics__image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    border-radius: 4px;
}

.catalog__actions {
    margin-top: 45px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.catalog__info {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.logistics {
    background: #fdfdfd;
}

.logistics__intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 45px;
    color: #444;
}

.logistics__steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 50px;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
}

.step__num {
    font-size: 0.75rem;
    font-weight: 900;
    color: #ddd;
    margin-top: 4px;
    min-width: 25px;
    border-bottom: 2px solid #eee;
}

.step__content strong {
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    color: #111;
}

.step__content p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

.logistics__cta {
    margin-top: 30px;
}

.logistics__sub-cta {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .catalog__inner,
    .logistics__inner {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }

    .logistics__inner {
        flex-direction: column-reverse;
    }

    .catalog__image img,
    .logistics__image img {
        max-width: 100%;
        height: auto;
    }
}

    .responsibility__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .responsibility__badge {
        order: -1;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .texture-showcase__inner {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 12px 20px;
        position: relative;
    }

    /* Hide desktop left nav — goes into hamburger */
    .header__left {
        display: none !important;
    }

    /* Hide all lang switchers from header on mobile — goes into hamburger */
    .lang-switcher--desktop,
    .lang-switcher--mobile {
        display: none !important;
    }

    /* Logo stays centered absolutely */
    .header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .header__logo,
    .header__logo a,
    .header__logo img {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        mix-blend-mode: normal !important;
    }

    .header__logo img {
        height: 32px;
        width: auto;
        filter: none !important;
    }

    .header__logo-img {
        height: 32px;
    }

    .hero {
        margin-top: 64px;
        min-height: 500px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .categories__grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 220px;
    }

    .banners {
        padding: 40px 20px;
        gap: 30px;
    }

    .banner {
        height: 240px;
    }

    .banner__content {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
        gap: 20px;
    }

    .products-intro {
        padding: 60px 20px;
    }

    .catalog,
    .logistics,
    .responsibility {
        padding: 80px 20px;
    }

    .texture-showcase {
        padding: 60px 20px;
    }

    .texture-showcase__inner {
        height: 280px;
    }

    .texture-showcase__line1 {
        font-size: 1.8rem;
    }

    .texture-showcase__line2 {
        font-size: 2.2rem;
        margin-left: 20%;
    }

    .instagram__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .instagram__grid .instagram__item:nth-child(4),
    .instagram__grid .instagram__item:nth-child(5) {
        display: none;
    }

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

    .footer__social {
        justify-content: center;
    }

    .footer__col--map iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 420px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.68rem;
    }

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

    .section-title--large {
        font-size: 2.2rem;
    }
}

/* ============================================
   MARBRASA STYLE BLUE GLOW
   ============================================ */
:root {
    --glow-spread: 40px;  /* Ширина свечения */
    --glow-color: 0, 129, 187; /* Синий цвет в формате RGB */
}

@keyframes pulseGlow {
    0%   { box-shadow: inset 0 0 var(--glow-spread) rgba(var(--glow-color), 0.4) !important; }
    50%  { box-shadow: inset 0 0 var(--glow-spread) rgba(var(--glow-color), 0.9) !important; }
    100% { box-shadow: inset 0 0 var(--glow-spread) rgba(var(--glow-color), 0.4) !important; }
}

.global-glow {
    content: "";
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 2147483647 !important; /* Максимальный возможный z-index */
    animation: pulseGlow 2.5s ease-in-out infinite !important;
}

/* ============================================
   LEAD CAPTURE MODAL (OriginUI)
   ============================================ */
.ts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.ts-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.ts-modal__content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: modalSlideUp 0.3s ease-out;
}

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

.ts-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ts-modal__close:hover {
    color: #111;
}

.ts-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.ts-modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
}

.ts-modal__icon svg {
    color: #333;
}

.ts-modal__header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111;
}

.ts-modal__header p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.ts-modal__input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.ts-modal__input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    display: flex;
}

.ts-modal__input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fff;
    color: #111;
}

.ts-modal__input-wrapper input:focus {
    border-color: #111;
    outline: none;
}

.ts-modal__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #999;
}

.ts-modal__footer a {
    color: #666;
    text-decoration: underline;
}

.w-full { width: 100%; }

/* ============================================
   PREMIUM FLOATING BUTTON
   ============================================ */
.ts-floating-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2500;
}

.ts-floating-btn {
    position: relative;
    width: 140px;
    height: 140px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ts-floating-btn:hover {
    transform: scale(1.05);
}

.ts-floating-text {
    position: absolute;
    inset: 0;
    animation: rotateText 10s linear infinite;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ts-floating-text svg {
    width: 100%;
    height: 100%;
}

.ts-floating-text text {
    fill: #333;
    font-size: 14.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ts-floating-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.ts-floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONSULT MODAL OVERRIDES ===== */
.ts-modal--consult .ts-modal__content {
    max-width: 450px;
    padding: 40px;
}

.ts-modal__badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: #000;
}

.ts-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

.ts-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f8f8f8;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ts-contact-item:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

.ts-contact-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ts-contact-item:hover .ts-contact-item__icon {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.ts-contact-item--tg { border-left: 4px solid #0088cc; }
.ts-contact-item--wa { border-left: 4px solid #25d366; }
.ts-contact-item--call { border-left: 4px solid #111; }

@media (max-width: 768px) {
    .ts-floating-wrap {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .ts-floating-btn {
        width: 110px;
        height: 110px;
    }
    .ts-floating-img {
        width: 65px;
        height: 65px;
    }
}

/* ============================================
   CENTERED CLEAN HERO SECTION
   ============================================ */

.hero__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    text-align: center;
    max-width: 900px;
}

.hero__title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    position: relative;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
}

.hero__slide.active .hero__title {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__slide.active .hero__desc {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero__actions {
    opacity: 0;
    transform: translateY(15px);
}

.hero__slide.active .hero__actions {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Animations */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* BUTTON BOUNCE (Keyboard style) */
.btn {
    transition: transform 0.2s cubic-bezier(0.36, 0, 0.66, -0.56) !important;
}

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

/* Simple Dark Overlay for better contrast on centered text */
.hero__overlay {
    background: rgba(0,0,0,0.5) !important;
}

@media (max-width: 768px) {
    .header__inner {
        padding: 0 20px;
    }
    .hero__title {
        font-size: 2.5rem;
    }
}

/* ============================================
   MOBILE HEADER — FINAL OVERRIDE
   Only logo (center) + hamburger (right) visible
   ============================================ */
@media (max-width: 768px) {
    /* Hide everything in header except logo and hamburger */
    .header__left,
    .header__left-menu,
    .lang-switcher,
    .lang-switcher--desktop,
    .lang-switcher--mobile,
    .lang-switcher__list {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* Header layout: space-between so hamburger goes right */
    .header__inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
        position: relative !important;
    }

    /* Logo stays centered */
    .header__logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Hamburger stays on the right */
    .header__right {
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
    }

    .hamburger {
        display: flex !important;
    }

    /* Hide slider arrows on mobile */
    .hero__arrow,
    .hero__btn {
        display: none !important;
    }
}

/* ===== ADVANTAGES BENTO GRID ===== */
.advantages {
    padding: 80px 0;
    background: #fff;
}

.advantages__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.bento-card {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.bento-card .step__num {
    font-size: 1rem;
    font-weight: 900;
    color: #ccc;
    min-width: 30px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 5px;
}

.bento-card .step__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-card .step__content strong {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.bento-card .step__content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bento-card {
        padding: 30px 20px;
    }
}
@media (max-width: 768px) {
    .advantages__inner {
        padding: 0 20px;
    }
}
