/* ==========================================================================
   PORTFOLIO SHOWCASE - MASTER STYLESHEET (ADVANCED RESPONSIVE & CONTAINER QUERIES)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Shell UI Variables */
  --sidebar-w: 260px;
  --sidebar-bg: #141518;
  --sidebar-border: #23252b;
  --sidebar-text: #f3f4f6;
  --sidebar-muted: #8e94a0;
  --shell-bg: #0d0e10;
  --topbar-bg: #141518;
  --topbar-height: 50px;
  
  /* System tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition-fast: all 0.18s ease;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background-color: var(--shell-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Main App Wrapper */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   SIDEBAR & MOBILE DRAWER
   ========================================================================== */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  color: var(--sidebar-text);
  z-index: 100;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header-content {
  display: flex;
  flex-direction: column;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: 1px solid #33363e;
  color: #9ca3af;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #9ca3af;
  background: #1e2026;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #2e323b;
  margin-bottom: 6px;
  width: fit-content;
}

.brand-badge .badge-dot-static {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.sidebar-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sidebar-subtitle {
  font-size: 11px;
  color: var(--sidebar-muted);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #2e323b;
  border-radius: 2px;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 8px 8px 3px;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #9ca3af;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 42px;
}

.nav-tab-btn:hover {
  background: #1e2026;
  color: #f3f4f6;
}

.nav-tab-btn.active {
  background: #262932;
  color: #ffffff;
  border-color: #383c46;
}

.tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.icon-welcome { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
.icon-frame { background: #111; color: #fff; border: 1px solid #333; }
.icon-orto { background: #0c385c; color: #38bdf8; }
.icon-kazan { background: #382806; color: #fbbf24; }
.icon-flowers { background: #3d141e; color: #fda4af; }

.tab-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-title {
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tab-desc {
  font-size: 10.5px;
  color: var(--sidebar-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.designer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #262932;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #e5e7eb;
}

.designer-meta {
  display: flex;
  flex-direction: column;
}

.designer-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #e5e7eb;
}

.designer-role {
  font-size: 10px;
  color: #6b7280;
}

/* ==========================================================================
   MAIN VIEWPORT & TOP TOOLBAR
   ========================================================================== */
.main-viewport {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d0e10;
  overflow: hidden;
  position: relative;
}

.viewport-topbar {
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 50;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-sidebar-btn {
  background: #1e2026;
  border: 1px solid #2e323b;
  color: #d1d5db;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 6px;
  display: none;
  font-size: 14px;
  line-height: 1;
  min-height: 34px;
  align-items: center;
  justify-content: center;
}

.current-site-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-site-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.topbar-center {
  display: flex;
  align-items: center;
  background: #1e2026;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #2e323b;
}

.device-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.device-btn:hover {
  color: #fff;
}

.device-btn.active {
  background: #2e323b;
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e2026;
  border: 1px solid #2e323b;
  color: #d1d5db;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 32px;
}

.action-btn:hover {
  background: #262932;
  color: #ffffff;
}

/* ==========================================================================
   CANVAS CONTAINER & SIMULATOR STAGE
   ========================================================================== */
.canvas-wrapper {
  flex: 1;
  width: 100%;
  height: calc(100vh - var(--topbar-height));
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  background: #0d0e10;
  transition: padding 0.25s ease;
}

.device-desktop {
  width: 100%;
  height: 100%;
}

.device-tablet .mockup-stage {
  width: 768px;
  max-width: 100%;
  height: calc(100% - 24px);
  margin: 12px auto;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid #282a30;
  overflow-y: auto;
}

.device-mobile .mockup-stage {
  width: 390px;
  max-width: 100%;
  height: calc(100% - 24px);
  margin: 12px auto;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #282a30;
  overflow-y: auto;
}

/* Container Query anchor on the stage */
.mockup-stage {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #ffffff;
  scroll-behavior: smooth;
  container-type: inline-size;
  container-name: stage;
}

.mockup-stage::-webkit-scrollbar {
  width: 6px;
}
.mockup-stage::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.site-view {
  display: none;
  min-height: 100%;
  width: 100%;
}

.site-view.active {
  display: block;
}

/* ==========================================================================
   TAB: WELCOME (ДОБРО ПОЖАЛОВАТЬ)
   ========================================================================== */
.welcome-container {
  background: #fafbfc;
  color: #1f2937;
  min-height: 100%;
  padding: 40px 28px 60px;
}

.welcome-hero {
  max-width: 860px;
  margin: 0 auto 32px;
  text-align: center;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.welcome-title {
  font-size: clamp(22px, 3.8vw, 34px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.welcome-lead {
  font-size: clamp(13.5px, 2vw, 15.5px);
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.welcome-instruction-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.welcome-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.welcome-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.welcome-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.welcome-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.welcome-card-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.welcome-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.welcome-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 14px;
}

.welcome-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-open-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-open-site:hover {
  background: #334155;
}

/* ==========================================================================
   SITE 1: FRAME ARCHITECT
   ========================================================================== */
.site-frame {
  background-color: #ffffff;
  color: #111111;
  font-family: 'Inter', sans-serif;
}

.site-frame h1, .site-frame h2, .site-frame h3, .site-frame .frame-logo {
  font-family: 'Cinzel', serif;
}

.frame-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
}

.frame-logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: #000000;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.frame-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.frame-menu a {
  text-decoration: none;
  color: #666666;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.frame-menu a:hover {
  color: #000000;
}

.frame-btn-contact {
  padding: 8px 16px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
}

.frame-btn-contact:hover {
  background: transparent;
  color: #000000;
}

.frame-hero {
  padding: 44px 32px 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.frame-hero-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 10px;
  display: block;
}

.frame-hero-title {
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
  color: #000000;
}

.frame-hero-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 18px;
}

.frame-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.frame-stat-item {
  display: flex;
  flex-direction: column;
}

.frame-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.frame-stat-lbl {
  font-size: 10.5px;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frame-hero-img-box {
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.frame-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-section {
  padding: 44px 32px;
  border-top: 1px solid #eeeeee;
}

.frame-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.frame-section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
}

.frame-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.frame-tab-btn {
  background: none;
  border: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
  color: #737373;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  min-height: 32px;
}

.frame-tab-btn.active, .frame-tab-btn:hover {
  color: #000000;
  border-bottom-color: #000000;
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.frame-project-card {
  cursor: pointer;
  border: 1px solid #eeeeee;
  padding-bottom: 12px;
  background: #ffffff;
}

.frame-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f4f4f5;
  margin-bottom: 10px;
}

.frame-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.frame-project-card:hover .frame-card-img {
  transform: scale(1.03);
}

.frame-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #737373;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 4px;
}

.frame-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  padding: 0 10px;
}

.frame-manifesto {
  background: #111111;
  color: #ffffff;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.frame-manifesto h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.3;
}

.frame-manifesto p {
  color: #a3a3a3;
  line-height: 1.65;
  font-size: 13.5px;
}

/* ==========================================================================
   SITE 2: ORTO PROGRESS
   ========================================================================== */
.site-orto {
  background: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.orto-topbar {
  background: #0c2d48;
  color: #cbd5e1;
  font-size: 11px;
  padding: 6px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.orto-nav {
  background: #ffffff;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
}

.orto-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0c2d48;
}

.orto-logo-icon {
  width: 28px;
  height: 28px;
  background: #0284c7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
}

.orto-logo-text {
  font-size: 15px;
  font-weight: 800;
}

.orto-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.orto-menu a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.15s;
}

.orto-menu a:hover {
  color: #0284c7;
}

.orto-btn-book {
  background: #0284c7;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 36px;
}

.orto-btn-book:hover {
  background: #0369a1;
}

.orto-hero {
  background: #f0f9ff;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid #e0f2fe;
}

.orto-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.orto-hero-title {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: #0c2d48;
  margin-bottom: 10px;
}

.orto-hero-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
}

.orto-quick-form {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  max-width: 400px;
}

.orto-input {
  flex: 1;
  border: none;
  padding: 7px 10px;
  font-size: 12.5px;
  outline: none;
  min-width: 0;
}

.orto-hero-img-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #bae6fd;
  background: #ffffff;
}

.orto-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orto-stats-strip {
  background: #0c2d48;
  color: #fff;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 12px;
}

.orto-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.orto-stat-name {
  font-size: 11px;
  color: #94a3b8;
}

.orto-section {
  padding: 40px 32px;
}

.orto-section-head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 24px;
}

.orto-section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: #0c2d48;
  margin-bottom: 4px;
}

.orto-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.orto-doc-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-align: center;
  padding-bottom: 12px;
}

.orto-doc-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background: #f8fafc;
  display: block;
}

.orto-doc-info {
  padding: 10px 8px 6px;
}

.orto-doc-name {
  font-size: 13px;
  font-weight: 700;
  color: #0c2d48;
  margin-bottom: 2px;
}

.orto-doc-spec {
  font-size: 11px;
  color: #0284c7;
  font-weight: 600;
  margin-bottom: 2px;
}

.orto-doc-exp {
  font-size: 10.5px;
  color: #64748b;
}

/* ==========================================================================
   SITE 3: KAZAN TECH RENT
   ========================================================================== */
.site-kazan {
  background: #ffffff;
  color: #18181b;
  font-family: 'Montserrat', sans-serif;
}

.kazan-nav {
  background: #18181b;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 10px;
}

.kazan-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
}

.kazan-logo-mark {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.kazan-logo-text {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kazan-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.kazan-menu a {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.15s;
}

.kazan-menu a:hover {
  color: #f59e0b;
}

.kazan-phone-btn {
  background: #f59e0b;
  color: #000000;
  padding: 7px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 34px;
}

.kazan-hero {
  background: #18181b;
  color: #ffffff;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.kazan-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kazan-hero-title {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.kazan-hero-title span {
  color: #f59e0b;
}

.kazan-hero-desc {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.55;
  margin-bottom: 16px;
}

.kazan-cta-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kazan-btn-primary {
  background: #f59e0b;
  color: #000;
  padding: 9px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  min-height: 36px;
}

.kazan-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid #3f3f46;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 36px;
}

.kazan-hero-img-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #27272a;
  background: #09090b;
}

.kazan-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kazan-section {
  padding: 40px 32px;
  background: #fafafa;
}

.kazan-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.kazan-section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 900;
  text-transform: uppercase;
  color: #18181b;
}

.kazan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kazan-machinery-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  overflow: hidden;
}

.kazan-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #18181b;
  position: relative;
  overflow: hidden;
}

.kazan-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kazan-stock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #15803d;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}

.kazan-card-content {
  padding: 12px;
}

.kazan-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 6px;
}

.kazan-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 10.5px;
}

.kazan-spec-item {
  background: #f4f4f5;
  padding: 4px 6px;
  border-radius: 3px;
}

.kazan-spec-k { color: #71717a; }
.kazan-spec-v { color: #18181b; font-weight: 700; }

.kazan-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f4f4f5;
  padding-top: 8px;
}

.kazan-price {
  font-size: 14px;
  font-weight: 800;
  color: #18181b;
}
.kazan-price small {
  font-size: 10px;
  color: #71717a;
  font-weight: 500;
}

.kazan-btn-rent-sm {
  background: #18181b;
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  font-weight: 700;
  border-radius: 3px;
  font-size: 10.5px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 30px;
}

/* ==========================================================================
   SITE 4: MATUR FLOWERS
   ========================================================================== */
.site-flowers {
  background: #fcfbf9;
  color: #261f22;
  font-family: 'Playfair Display', serif;
}

.site-flowers .sans {
  font-family: 'Inter', sans-serif;
}

.flowers-announcement {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 6px;
  font-weight: 500;
}

.flowers-nav {
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3e8eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 10px;
}

.flowers-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #4c0519;
}

.flowers-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  font-family: 'Inter', sans-serif;
}

.flowers-menu a {
  text-decoration: none;
  color: #573f47;
  font-size: 12px;
  font-weight: 500;
}

.flowers-menu a:hover {
  color: #e11d48;
}

.flowers-cart-btn {
  background: #fdf2f4;
  border: 1px solid #fbcfe8;
  padding: 5px 12px;
  border-radius: 20px;
  color: #881337;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
}

.flowers-cart-badge {
  background: #e11d48;
  color: white;
  font-size: 9.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flowers-hero {
  background: #fdf4f5;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid #fce7ec;
}

.flowers-tag {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: #be123c;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.flowers-hero-title {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 600;
  color: #4c0519;
  line-height: 1.2;
  margin-bottom: 12px;
}

.flowers-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #701a75;
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 420px;
}

.flowers-hero-btn {
  display: inline-block;
  background: #4c0519;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 36px;
  line-height: 20px;
}

.flowers-hero-img-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fbcfe8;
  background: #fff;
}

.flowers-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flowers-section {
  padding: 40px 32px;
}

.flowers-section-title {
  text-align: center;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #4c0519;
  margin-bottom: 20px;
}

.flowers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flowers-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f5e1e6;
}

.flowers-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff5f5;
}

.flowers-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flowers-card-body {
  padding: 12px;
  font-family: 'Inter', sans-serif;
}

.flowers-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #4c0519;
  margin-bottom: 3px;
}

.flowers-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.flowers-price {
  font-weight: 700;
  font-size: 14px;
  color: #be123c;
}

.flowers-btn-add {
  background: #fdf2f4;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  min-height: 26px;
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px 8px;
  line-height: 1;
}

.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: #18191c;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid #2e323b;
  max-width: 100%;
  pointer-events: auto;
}

/* ==========================================================================
   CONTAINER QUERIES (HANDLES PC PHONE-SIMULATOR AND NARROW SCREENS CLEANLY!)
   ========================================================================== */

/* Medium Container (< 840px) */
@container stage (max-width: 840px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .frame-hero, .orto-hero, .kazan-hero, .flowers-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .frame-grid, .kazan-grid, .flowers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .orto-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .orto-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone-Sized Container (< 500px) - Triggers on Mobile Simulator Mode & Real Phones! */
@container stage (max-width: 500px) {
  .welcome-container {
    padding: 20px 14px 36px;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .frame-nav, .orto-nav, .kazan-nav, .flowers-nav {
    padding: 10px 14px;
  }
  .frame-menu, .orto-menu, .kazan-menu, .flowers-menu {
    display: none;
  }
  .orto-topbar {
    padding: 6px 14px;
    font-size: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .frame-hero, .orto-hero, .kazan-hero, .flowers-hero,
  .frame-section, .orto-section, .kazan-section, .flowers-section,
  .frame-manifesto {
    padding: 24px 14px;
  }
  .frame-manifesto {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .frame-grid, .kazan-grid, .flowers-grid, .orto-doc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .frame-hero-img-box, .orto-hero-img-box, .kazan-hero-img-box, .flowers-hero-img-box {
    aspect-ratio: 16 / 10;
  }
  .frame-card-img-wrap, .kazan-card-thumb-wrap {
    aspect-ratio: 16 / 10;
  }
  .flowers-card-thumb-wrap {
    aspect-ratio: 1 / 1;
  }
  .orto-doc-photo {
    aspect-ratio: 1 / 1;
  }
  .frame-stats-row {
    gap: 14px;
  }
  .orto-stats-strip {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    gap: 10px;
  }
  .orto-quick-form {
    flex-direction: column;
  }
  .kazan-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .kazan-btn-primary, .kazan-btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* Explicit device class fallback rules */
.device-mobile .welcome-grid,
.device-mobile .frame-grid,
.device-mobile .kazan-grid,
.device-mobile .flowers-grid,
.device-mobile .orto-doc-grid {
  grid-template-columns: 1fr !important;
}

.device-mobile .frame-hero,
.device-mobile .orto-hero,
.device-mobile .kazan-hero,
.device-mobile .flowers-hero,
.device-mobile .frame-manifesto {
  grid-template-columns: 1fr !important;
}

.device-mobile .frame-menu,
.device-mobile .orto-menu,
.device-mobile .kazan-menu,
.device-mobile .flowers-menu {
  display: none !important;
}

.device-mobile .orto-stats-strip {
  grid-template-columns: 1fr 1fr !important;
}

/* Real Mobile Screen Viewports (< 768px) */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 120;
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .toggle-sidebar-btn {
    display: flex;
  }

  .topbar-center {
    display: none;
  }

  .modal-window {
    padding: 16px 12px;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
