body {
	margin:0;
	padding:0;
}

:root{
  /* спокойная кривая без дерготни */
  --reveal-ease: cubic-bezier(.16, 1, .3, 1);
  --reveal-dur: 760ms;      /* дольше = спокойнее */
  --reveal-dur2: 980ms;     /* для крупных блоков */
  --reveal-y: 16px;         /* маленький ход */
  --reveal-x: 16px;
}

/* Базовая подготовка: прячем только до "ready" */
body:not(.is-ready) .js-header,
body:not(.is-ready) .menu-wrapper,
body:not(.is-ready) .contact-header,
body:not(.is-ready) .kopt-hero,
body:not(.is-ready) .contact-grid,
body:not(.is-ready) .kopt-hero__left,
body:not(.is-ready) .kopt-hero__right,
body:not(.is-ready) .kopt-cta{
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
}

/* направление появления */
body:not(.is-ready) .js-header{ transform: translate3d(0, calc(var(--reveal-y) * -1), 0); }
body:not(.is-ready) .menu-wrapper{ transform: translate3d(calc(var(--reveal-x) * -1), 0, 0); }
body:not(.is-ready) .kopt-hero, .contact-header, .contact-grid{ transform: translate3d(0, 10px, 0); }
img {width:100%}
/* плавные переходы */
.js-header,
.menu-wrapper,
.kopt-hero,
.kopt-hero__left,
.contact-header,
.contact-grid,
.kopt-hero__right,
.kopt-cta{
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-timing-function: var(--reveal-ease);
  transition-duration: var(--reveal-dur);
}
p {
font-size: 18px;
}
/* Большие блоки чуть медленнее — это добавляет "спокойствия" */
.kopt-hero, .contact-header{ transition-duration: var(--reveal-dur2); }
.kopt-cta, .contact-grid{ transition-duration: var(--reveal-dur2); }

/* Очерёдность (как спокойная сборка) */
body.is-ready .js-header{ transition-delay: 0ms; }
body.is-ready .menu-wrapper{ transition-delay: 120ms; }
body.is-ready .kopt-hero, .contact-header{ transition-delay: 220ms; }
body.is-ready .kopt-hero__left, .contact-grid{ transition-delay: 340ms; }
body.is-ready .kopt-hero__right{ transition-delay: 430ms; }
body.is-ready .kopt-cta{ transition-delay: 560ms; }

/* Итог */
body.is-ready .js-header,
body.is-ready .menu-wrapper,
body.is-ready .contact-header,
body.is-ready .contact-grid,
body.is-ready .kopt-hero,
body.is-ready .kopt-hero__left,
body.is-ready .kopt-hero__right,
body.is-ready .kopt-cta{
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Мягкое "дыхание" при наведении — премиально, но не раздражает */
.kopt-hero__left:hover,
.kopt-hero__right:hover{
  transform: translate3d(0,-2px,0);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .js-header,
  .menu-wrapper,
  .kopt-hero,
  .kopt-hero__left,
  .kopt-hero__right,
  .kopt-cta{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}



/* ====== B2B HEADER REFINED ====== */
.b2b-header, .b2b-header * { box-sizing: border-box; margin: 0; padding: 0; }

.b2b-header { 
    font-family: system-ui, -apple-system, sans-serif; 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.b2b-wrap { 
    width: 80%;
    margin: 0 auto; 
    padding: 0 20px;
	position:relative;
}

/* 1. Верхняя навигация */
.b2b-mini {
    background: #e9f0f2;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 10px 0;

    max-height: 60px; /* реальная высота mini */
    overflow: hidden;

    transform: translateY(0);
    opacity: 1;

    will-change: max-height, transform, opacity;
    transition:
        max-height 0.35s cubic-bezier(.22,1,.36,1),
        transform 0.35s cubic-bezier(.22,1,.36,1),
        opacity 0.25s ease;
}

.b2b-mini__nav { display: flex; gap: 36px; }

.b2b-mini__link {
    display: flex;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: #6d6d6d !important;
    text-transform: uppercase;
    text-decoration: none !important;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    align-items: center;
}
.b2b-mini__link svg {
	width: 21px;
    height: 23px;
	margin-right:6px;
}
.b2b-mini__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00b4e3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.b2b-mini__link:hover::after { width: 100%; }

/* 2. Основная панель */
.b2b-main {
    background: rgba(255, 255, 255, 255);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e0e0e069;
	transform: translateY(0);
will-change: transform;
transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}

.b2b-head__grid {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 0.9fr 1fr; 
    gap: 20px;
    align-items: center;
}

/* 3. BRAND */
.b2b-brand { display: flex; align-items: center; gap: 14px; }
.smartbuy-text {
    font-size: 26px;
    font-weight: 950;
    color:#00b4e3;
    text-transform: uppercase;
    padding-right: 12px;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}
.b2b-brand__title { font-weight: 900; color: #0f172a; font-size: 20px; }
.b2b-badge {
    margin-left: 8px;
    padding: 2px 6px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.b2b-brand__sub { font-size: 12px; color: #64748b; font-weight: 500; }

/* 4. CTA */
.b2b-cta { 
	display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px; }
.b2b-btn--primary {
    color: #171717;
    padding: 15px 34px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgb(15 23 42 / 15%);
    transition: all 0.2s ease;
}
.b2b-btn--primary:hover { transform: translateY(-2px);box-shadow: 0 6px 20px rgb(0 180 227 / 40%); }
.b2b-cta__hint { font-size: 11px; padding-left:15px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }

/* 5. КАРТОЧКИ (Hours) */
.b2b-card {
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
	align-items: flex-end;
	justify-content: space-between;
}
.b2b-card__title { font-size: 12px; font-weight: 800; color: #000000; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; }
.b2b-card__text { font-size: 13px; font-weight: 700; color: #5f636a; line-height: 1.4; display: flex;flex-direction: column;align-items: flex-end;}

/* 7. ИКОНКИ И ХОВЕРЫ */
svg { transition: all 0.3s ease; }
.b2b-card:hover svg { transform: scale(1.1) translateY(-1px); }

@media (max-width: 1024px) {
    .b2b-head__grid { grid-template-columns: 1fr 1fr; }
}

/* ====== NEW STATUS WIDGET STYLES ====== */
.b2b-status-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    min-width: 200px;
}

.status-header {
    text-align: right;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Состояние: ОТКРЫТО */
.b2b-status-widget.is-open .status-dot { background-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.b2b-status-widget.is-open .status-label { color: #166534; font-weight: 900; font-size: 15px; text-transform: uppercase; }
.b2b-status-widget.is-open .status-timer { color: #787878;font-size: 13px;font-weight: 700; }

/* Состояние: ЗАКРЫТО */
.b2b-status-widget.is-closed .status-dot { background-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
.b2b-status-widget.is-closed .status-label { color: #b91c1c; font-weight: 900; font-size: 16px; text-transform: uppercase; }
.b2b-status-widget.is-closed .status-timer { color: #64748b; font-size: 13px; font-weight: 700; }

/* Кнопка действия */
.status-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.status-action-btn:hover { transform: translateY(-1px); }

/* Стиль ТЕЛЕФОН (когда открыто) */
.phone-mode {
    background-color: #fdf2f8; 
    border: 1px solid rgba(255, 255, 255, 0);
}
.phone-mode:hover { background-color: #fce7f3; }
.phone-number {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.phone-icon { color: #701a75; }

/* Стиль WHATSAPP (когда закрыто) */
.whatsapp-mode {
    background: transparent;
    padding: 4px 0;
}
.whatsapp-text {
    color: #16a34a; 
    font-weight: 800;
    font-size: 18px;
}
.whatsapp-icon { 
	color: #16a34a; 
	width: 22px; 
	height: 22px;
}

/* ====== SHOP NAV MENU STYLES ====== */
.menu-wrapper {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    width: 100%;
    box-sizing: border-box;
	width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.shop-nav-container {
    background: #ffffff;
    padding: 20px 0px 20px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
	transform: translateY(0);
will-change: transform;
transition: transform 0.35s cubic-bezier(.22,1,.36,1);
	justify-content: space-evenly;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    padding: 10px;
    transition: 0.3s ease;
}

.nav-icon svg {
    width: 35px;
    height: 35px;
    stroke: #a6a6a6;
    transition: 0.3s ease;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-weight: 700;
    font-size: 17px;
    color: #494949;
    transition: 0.3s ease;
}

.nav-subtitle {
	padding-top: 4px;
    font-size: 14px;
    color:#838383;
	font-weight: bold;
}

.nav-arrow {
    font-size: 22px;
    color: #dddddd;
    margin-left: 5px;
    transition: 0.3s ease;
}

/* ХОВЕР ЭФФЕКТЫ */
.nav-item:hover .nav-icon svg {
    stroke: #00b4e3; 
    transform: translateY(-2px);
}

.nav-item:hover .nav-title { color: #00b4e3; }

.nav-item:hover .nav-arrow {
    color: #00b4e3;
    transform: translateX(6px);
}

/* Кнопка Каталог */
.catalog-btn {
	position: relative;
    bottom: 10px;
    right: 20px;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.catalog-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(142, 45, 226, 0.4);
}

@media (max-width: 1000px) {
    .menu-wrapper { padding: 10px; }
    .nav-subtitle { display: none; }
}

/* === SCROLL COMPACT MODE (единственный блок) === */
.b2b-header.is-compact .b2b-mini {
    max-height: 0;          /* ← ОСВОБОЖДАЕТ МЕСТО */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

/* Чуть уплотняем основной хедер */
.b2b-header.is-compact .b2b-main {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
	position: relative;
    bottom: 21px;
}

/* === MAIN CALC BUTTON === */
.calc-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    min-height: 100px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef4ff, #f6fbf8);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(0,0,0,0.04);
    transition:
        transform 0.3s cubic-bezier(.22,1,.36,1),
        box-shadow 0.3s ease;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 38px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(0,0,0,0.06);
}
.calc-btn__title {
    font-size: 18px;
    font-weight: 700;
}
.calc-btn__desc {
    font-size: 14px;
    color: #5f6b7a;
}
.b2b-header {
    position: sticky;
    top: 0;
}

.b2b-header.is-compact {
    transform: translateY(-21px);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.b2b-header.is-compact + .menu-wrapper .shop-nav-container {
    transform: translateY(-14px);
}
.b323 {
  fill: none;
    stroke: #6d6d6d;
    stroke-width: 2.2px;
}


.lang-switch{
    display: flex;
    gap: 6px;
    position: absolute;
    top: 0;
    right: 25px;
	flex-direction: row-reverse;
}

.lang-btn{
  border:1px solid #ddd;
  background:#fff;
  padding:6px 10px;
  cursor:pointer;
  border-radius:8px;
  font-weight:600;
}

.lang-btn.active{
     background: #00b4e3;
    color: #fff;
    border-color: #b1a7b2;
}
