/* ═══════════════════════════════════════════════════════
   T-MAX Landing — style.css
   ═══════════════════════════════════════════════════════ */

/* ── Custom Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #FF4D00;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255,77,0,0.55);
}
::-webkit-scrollbar-thumb:hover {
  background: #ff6520;
  box-shadow: 0 0 14px rgba(255,77,0,0.8);
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #FF4D00 #0a0a0a;
}

:root {
  --bg:          #080808;
  --bg-alt:      #0F0F0F;
  --bg-card:     #111111;
  --bg-card2:    #161616;
  --accent:      #FF4D00;
  --accent-soft: rgba(255,77,0,0.12);
  --accent-glow: rgba(255,77,0,0.30);
  --border:      rgba(255,255,255,0.07);
  --border-acc:  rgba(255,77,0,0.25);
  --text:        #FFFFFF;
  --text-sec:    #777777;
  --text-muted:  #333333;
  --r:           16px;
  --r-lg:        24px;
  --side:        clamp(16px, 5vw, 80px);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Запрет масштабирования — CSS уровень */
  touch-action: pan-x pan-y;
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  /* Дополнительная блокировка пинч-зума */
  touch-action: pan-x pan-y;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform .18s, box-shadow .18s, background .18s;
  box-shadow: 0 6px 28px var(--accent-glow);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--accent-glow);
  background: #ff5e14;
}
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1.5px solid var(--border-acc);
  color: var(--text);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .18s, background .18s, transform .18s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ── Section common ────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 140px) 0; }

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 18px;
}
.accent-word { color: var(--accent); }

.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-desc {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 520px;
  line-height: 1.65;
}

/* ── Reveal animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  height: 86px;
}
/* ── Logo image ──── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  margin-right: 24px;
}
.nav-logo-img {
  height: 86px;
  width: 300px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.3) contrast(1.1) drop-shadow(0 0 12px rgba(255,77,0,0.55));
  transition: filter .25s;
}
.nav-logo:hover .nav-logo-img {
  filter: brightness(1.5) contrast(1.1) drop-shadow(0 0 20px rgba(255,77,0,0.75));
}
.footer-logo-img {
  height: 80px;
  width: auto;
  max-width: 260px;
  min-width: 160px;
  display: block;
  object-fit: contain;
  filter: brightness(1.25) contrast(1.1) drop-shadow(0 0 10px rgba(255,77,0,0.45));
  transition: filter .25s;
}
.footer-logo:hover .footer-logo-img {
  filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 16px rgba(255,77,0,0.65));
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1.5px solid rgba(255,77,0,0.35);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.nav-logo:hover .logo-icon { background: rgba(255,77,0,0.2); }
.logo-icon-sm { width: 28px; height: 28px; border-radius: 8px; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: #FFFFFF;
  line-height: 1;
}
.logo-name-sm { font-size: 18px; letter-spacing: 3px; }
.logo-tagline {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-logo .logo-name { color: rgba(255,255,255,0.8); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  align-self: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-sec);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 4px 20px var(--accent-glow);
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
  margin-left: 24px;
}
.btn-nav:hover {
  background: #ff5e14;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  align-self: center;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px var(--side) 24px;
  background: rgba(8,8,8,0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sec);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter: brightness(0.38) saturate(0.75) contrast(1.08);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 70% 50%, rgba(255,77,0,0.07) 0%, transparent 60%),
    linear-gradient(to right, rgba(8,8,8,0.92) 38%, rgba(8,8,8,0.42) 100%),
    linear-gradient(to top, rgba(8,8,8,0.88) 0%, transparent 48%);
}

/* ── Hero grid ─────────────────────────────────── */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 78vh;
  gap: 0;
  padding-top: 86px;
}

.hero-left {
  padding-top: 20px;
  padding-bottom: 40px;
  padding-right: 40px;
}

/* ── Hero right: master photo ──────────────────── */
.hero-right {
  position: relative;
  height: 78vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-photo-area {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 72vh;
  max-height: 580px;
}

.photo-glow {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 220px;
  background: radial-gradient(ellipse, rgba(255,77,0,0.38) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.photo-stripe {
  position: absolute;
  width: 3px;
  border-radius: 6px;
  background: var(--accent);
  z-index: 0;
}
.photo-stripe.s1 {
  left: 10px; top: 15%; height: 22%;
  opacity: 0.5;
  animation: stripePulse 4s ease-in-out infinite;
}
.photo-stripe.s2 {
  right: 8px; bottom: 20%; height: 15%;
  opacity: 0.35;
  animation: stripePulse 4s ease-in-out infinite 2s;
}
@keyframes stripePulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.7; transform: scaleY(1.2); }
}

.hero-scissors-bg {
  position: absolute;
  top: 50%; right: -30px;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  pointer-events: none;
  z-index: 0;
}

.hero-master-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 48px rgba(255,77,0,0.28))
          drop-shadow(0 30px 70px rgba(0,0,0,0.65))
          contrast(1.06) saturate(1.08);
}

/* Плавающий бейдж — имя мастера */
.hero-name-badge {
  position: absolute;
  bottom: 60px; left: -10px;
  z-index: 2;
  background: rgba(8,8,8,0.88);
  border: 1.5px solid rgba(255,77,0,0.32);
  border-radius: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hnb-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,77,0,0.5);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,0,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,77,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,0,0); }
}
.hnb-name {
  display: block;
  font-size: 14px; font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.hnb-role {
  display: block;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* Плавающий бейдж — опыт */
.hero-exp-badge {
  position: absolute;
  top: 15%; right: -10px;
  z-index: 2;
  background: var(--accent);
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255,77,0,0.45);
}
.hero-exp-badge strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px; line-height: 1;
  color: #fff;
}
.hero-exp-badge span {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.label-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  line-height: 0.9;
}
.title-thin {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 12px;
  color: var(--text-sec);
  font-weight: 400;
}
.title-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 14vw, 160px);
  letter-spacing: 6px;
  color: var(--text);
  line-height: 0.85;
}
.brand-dash {
  color: var(--accent);
  margin: 0 4px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: blur(12px);
  width: fit-content;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  gap: 2px;
}
.badge-item strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.badge-item span {
  font-size: 11px;
  color: var(--text-sec);
  font-weight: 500;
  white-space: nowrap;
}
.badge-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-sec);
  animation: bounce 2.5s ease-in-out infinite;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--accent); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
.services-section {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: 'SERVICES';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 14vw, 180px);
  letter-spacing: 20px;
  color: rgba(255,255,255,0.018);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

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

.service-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,77,0,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,77,0,0.1);
}
.service-card:hover::before { opacity: 1; }

.sc-icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-acc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background .25s;
}
.sc-icon svg { width: 28px; height: 28px; }
.service-card:hover .sc-icon { background: rgba(255,77,0,0.18); }

.sc-body { flex: 1; }
.sc-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.sc-desc {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sc-dur {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 20px;
}
.sc-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   MASTER
   ═══════════════════════════════════════════════════════ */
.master-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.master-bg-text {
  position: absolute;
  top: 50%; right: -40px;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(100px, 18vw, 240px);
  letter-spacing: 16px;
  color: rgba(255,255,255,0.022);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.master-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.master-photo-col { position: relative; }

/* Outer wrapper holds frames + clipped image together */
.master-photo-outer {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 0 16px 16px; /* room for frames to extend outside */
}

/* Inner wrapper clips image strictly within border-radius */
.master-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: clamp(400px, 55vw, 580px);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.photo-frame {
  position: absolute;
  inset: 0;
  margin: -16px -16px 0 0; /* frame extends outside on top and right */
  border: 1.5px solid var(--border-acc);
  border-radius: 28px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.photo-frame-2 {
  position: absolute;
  inset: 0;
  margin: -8px -8px 0 0;
  border: 1px solid rgba(255,77,0,0.12);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

.master-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.5)) contrast(1.04) saturate(1.06);
  display: block;
}

.photo-tag {
  position: absolute;
  bottom: -16px; right: -8px;
  z-index: 4;
  background: rgba(8,8,8,0.92);
  border: 1.5px solid var(--border-acc);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(16px);
}
.photo-tag-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.photo-tag-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-top: 2px;
}

.master-bio {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.master-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.skill-tag {
  padding: 7px 14px;
  border: 1.5px solid var(--border-acc);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  transition: border-color .2s, color .2s, background .2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.master-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.mstat { display: flex; flex-direction: column; gap: 2px; }
.mstat strong { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.mstat span   { font-size: 12px; color: var(--text-sec); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   WHY
   ═══════════════════════════════════════════════════════ */
.why-section { background: var(--bg-alt); }

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

.why-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.why-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-4px);
}
.why-card:hover .why-icon { background: rgba(255,77,0,0.2); }

.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
  letter-spacing: 2px;
  pointer-events: none;
}

.why-icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-acc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .25s;
}
.why-icon svg { width: 26px; height: 26px; }

.why-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.why-desc {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg);
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-deco-left,
.cta-deco-right {
  position: absolute;
  top: 50%; width: 400px; height: 400px;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta-deco-left {
  left: -200px;
  background: radial-gradient(circle, rgba(255,77,0,0.10) 0%, transparent 70%);
}
.cta-deco-right {
  right: -200px;
  background: radial-gradient(circle, rgba(255,77,0,0.08) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7vw, 90px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-sub {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-tg { font-size: 15px; padding: 16px 34px; }

/* ═══════════════════════════════════════════════════════
   CONTACTS
   ═══════════════════════════════════════════════════════ */
.contacts-section { background: var(--bg-alt); }

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

.contact-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s;
}
.contact-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-3px);
}

.cc-icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-acc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cc-icon svg { width: 24px; height: 24px; }

.cc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cc-text {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
}
.cc-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  transition: color .2s;
}
.cc-link:hover { color: var(--accent); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ── Yandex Map ────────────────────────────────────────── */
.map-wrap {
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-acc);
  box-shadow: 0 0 0 1px rgba(255,77,0,0.08), 0 24px 64px rgba(0,0,0,0.5);
  background: var(--bg-card);
}

.map-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.3px;
}
.map-header svg { flex-shrink: 0; }
.map-header span { color: var(--text); }

.map-frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vw, 480px);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  filter: grayscale(0.15) brightness(0.92);
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO SLIDER  (scroll-snap based)
   ═══════════════════════════════════════════════════════ */
.portfolio-section { overflow: hidden; }
.portfolio-section .section-header { margin-bottom: 40px; }

/* Внешний контейнер — якорь для стрелок */
.portfolio-slider-outer {
  position: relative;
}

/* Scroll-контейнер — snap по каждому слайду */
.portfolio-slider-wrap {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.portfolio-slider-wrap:active { cursor: grabbing; }
.portfolio-slider-wrap::-webkit-scrollbar { display: none; }

/* Трек — без transform, позиционирование через scroll */
.portfolio-track {
  display: inline-flex;
  gap: 16px;
  /* padding слева/справа = половина (viewport - slideWidth) чтобы крайние слайды центрировались */
  padding: 0 var(--p-slide, 24px);
  user-select: none;
}

/* Слайд — ширина = 1/3 контейнера (десктоп) */
.portfolio-slide {
  --slide-w: calc((min(var(--max-w), 100vw) - 2 * 24px - 2 * 16px) / 3);
  flex: 0 0 var(--slide-w);
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  position: relative;
  cursor: zoom-in;
  transition: border-color .3s;
}
.portfolio-slide:hover { border-color: rgba(255,77,0,0.5); }

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  pointer-events: none;
}
.portfolio-slide:hover img { transform: scale(1.04); }

/* Номер слайда */
.slide-num {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
  pointer-events: none;
}

/* Стрелки */
.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(10,10,10,0.85);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.portfolio-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}
.portfolio-arrow:disabled { opacity: 0.25; pointer-events: none; }
.portfolio-arrow-prev { left: 12px; }
.portfolio-arrow-next { right: 12px; }

/* Точки */
.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.portfolio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .25s, width .25s;
  padding: 0;
}
.portfolio-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   PHOTO MODAL
   ═══════════════════════════════════════════════════════ */
/* ── Photo Modal ── */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 12px 48px;   /* top — под кнопку ×, bottom — под счётчик */
  box-sizing: border-box;
}
.photo-modal.open { display: flex; }

/* Картинка — центр, адаптивный размер */
.photo-modal-img-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0 60px;           /* отступ от стрелок */
  box-sizing: border-box;
}
.photo-modal-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  user-select: none;
  transition: opacity .2s;
  display: block;
}
.photo-modal-img.loading { opacity: 0; }

/* Кнопка закрыть */
.photo-modal-close {
  position: fixed;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  z-index: 1001;
}
.photo-modal-close:hover { background: var(--accent); border-color: var(--accent); }

/* Стрелки — по бокам экрана, вертикально по центру */
.photo-modal-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  z-index: 1001;
}
.photo-modal-nav:hover  { background: var(--accent); border-color: var(--accent); }
.photo-modal-nav:disabled { opacity: 0.25; pointer-events: none; }
.photo-modal-prev { left: 8px; }
.photo-modal-next { right: 8px; }

/* Счётчик */
.photo-modal-counter {
  flex-shrink: 0;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
}

/* Мобильный — стрелки снизу, фото максимальное */
@media (max-width: 560px) {
  .photo-modal {
    padding: 56px 0 80px;
  }
  .photo-modal-img-wrap {
    padding: 0 8px;
  }
  .photo-modal-nav {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 44px; height: 44px;
  }
  .photo-modal-prev { left: calc(50% - 54px); }
  .photo-modal-next { right: calc(50% - 54px); }
  .photo-modal-counter { margin-top: 8px; }
}

/* Курсор-лупа на слайдах */
.portfolio-slide { cursor: zoom-in; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
/* footer-logo uses logo image */
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 55% 45%; }
  .hero-photo-area { max-width: 360px; height: 80vh; }
  .hero-exp-badge { right: 0; }
  .hero-name-badge { left: 0; }
}

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-left {
    padding-top: 80px;
    padding-bottom: 40px;
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-label { justify-content: center; }
  .hero-title { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { width: 100%; max-width: 380px; }
  .hero-right {
    height: 60vw;
    min-height: 280px;
    max-height: 420px;
    padding-bottom: 0;
    padding-top: 0;
  }
  .hero-photo-area { max-width: 300px; height: 100%; }
  .hero-name-badge { left: 0; bottom: 20px; }
  .hero-exp-badge { right: 0; top: 10%; }

  .master-layout { grid-template-columns: 1fr; }
  .master-photo-col { display: flex; justify-content: center; }
  .master-photo-wrap { max-width: 340px; height: 380px; }
  .photo-tag { right: -8px; bottom: -12px; }
  .master-bg-text { display: none; }
  .master-info-col { text-align: center; }
  .master-info-col .section-tag { justify-content: center; }
  .master-info-col .section-title { text-align: center; }
  .master-skills { justify-content: center; }
  .master-stats { justify-content: center; }
  .master-bio { text-align: center; margin: 0 auto 28px; }
  .master-info-col .btn-primary { align-self: center; }

  .contacts-grid { grid-template-columns: 1fr; }
  .section-header { text-align: center; }
  .section-header .section-tag { justify-content: center; }
  .section-header .section-desc { margin: 0 auto; text-align: center; }
}

/* ── Навигация скрывается при 1024px (5 пунктов + кнопка не влезают) ── */
@media (max-width: 1024px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
  .nav-inner { height: 70px; }
  .nav-logo-img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-position: left center;
  }
}

@media (max-width: 768px) {
  /* Логотип на планшете */
  .nav-inner { height: 64px; }
  .nav-logo-img {
    height: 64px;
    width: calc(100vw - 120px);
    max-width: 300px;
    object-position: left center;
  }

  /* Логотип в футере */
  .footer-logo-img {
    height: 64px;
    width: auto;
    max-width: 200px;
    min-width: 140px;
  }

  /* Слайдер на планшете — 2 фото */
  .portfolio-slide {
    --slide-w: calc((100vw - 64px) / 2);
    flex: 0 0 var(--slide-w);
  }
  .portfolio-track { padding: 0 24px; }
  .portfolio-arrow-prev { left: 8px; }
  .portfolio-arrow-next { right: 8px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card { text-align: center; }
  .why-icon { margin: 0 auto 20px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .nav-logo-img {
    height: 56px;
    width: calc(100vw - 100px);
    max-width: 300px;
    object-position: left center;
  }
  .footer-logo-img {
    height: 56px;
    width: auto;
    max-width: 180px;
    min-width: 130px;
  }
}

@media (max-width: 560px) {
  /* Слайдер на мобильном — 1 фото */
  .portfolio-slide {
    --slide-w: calc(100vw - 48px);
    flex: 0 0 var(--slide-w);
  }
  .portfolio-track { padding: 0 24px; gap: 12px; }
  .portfolio-arrow { width: 40px; height: 40px; }

  .why-grid { grid-template-columns: 1fr; }
  .hero-badge {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
  }
  .hero-badge .badge-item {
    flex: 1;
    padding: 12px 8px;
    min-width: 0;
  }
  .hero-badge .badge-item strong { font-size: 16px; }
  .hero-badge .badge-item span   { font-size: 10px; white-space: nowrap; }
  .badge-sep { width: 1px; height: 28px; flex-shrink: 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .master-stats { gap: 20px; }
  .hero-right { height: 55vw; }
}
