/* ============================================================
   ASTASYA PORTFOLIO — style.css
   Версия: финальная (вертикальный модал, отступ "Листать")
   + увеличенные шрифты (кроме заголовков) + letter-spacing
   ============================================================ */

:root {
  --bg: #F4F6F8;
  --bg-2: #ECEEF2;
  --bg-card: #ffffff;
  --border: #DDE1E9;
  --text: #1E1E1E;
  --text-2: #5A5F72;
  --text-3: #9098AE;
  --accent: #7B61FF;
  --accent-h: #9A84FF;
  --accent-glow: rgba(123,97,255,0.18);
  --accent-soft: rgba(123,97,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(30,30,60,0.08);
  --shadow-md: 0 8px 40px rgba(30,30,60,0.12);
  --shadow-lg: 0 20px 60px rgba(30,30,60,0.16);
  --nav-h: 64px;
  --site-max: 1100px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}
/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ BAJAZZO ========== */

@font-face {
  font-family: 'Bajazzo Rg';
  src: url('assets/font/Bajazzo-Rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bajazzo-Smbd';
  src: url('assets/font/Bajazzo-Smbd.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bajazzo-Bd';
  src: url('assets/font/Bajazzo-Bd.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Bajazzo Rg', 'Bajazzo-Smbd', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ul {
  list-style: none;
}

input,
textarea {
  font: inherit;
}

/* UTILITIES */
.section-label {
  display: inline-block;
  font-size: 0.9rem;        /* увеличено с 0.72 */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* FADE-IN */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }
.delay-5 { transition-delay: 0.56s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;          /* увеличено с 0.92 */
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;   /* добавлено */
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* FLOATING NAVIGATION */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  max-width: calc(var(--site-max) - 40px);
  width: calc(100% - 40px);
}

.floating-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 1rem;       /* увеличено с 0.82 */
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  letter-spacing: 0.01em;   /* добавлено */
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-toggle {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;      
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%,
      rgba(123, 97, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0;
  margin-left: 5%;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-inner {
    margin: 0 auto;
    margin-top: 0;
    align-items: center;
    text-align: center;
  }
}

.hero-eyebrow {
  font-size: 0.85rem;       /* увеличено с 0.75 */
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Bajazzo-Bd', 'Bajazzo', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  padding: 0 0 0.15em 0;
  overflow: visible;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.35rem, 3.6vw, 1.85rem); /* увеличено */
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;        /* увеличено с 1rem */
  color: var(--text-3);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
  letter-spacing: 0.01em;   /* добавлено */
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;        /* увеличено с 0.72 */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* SECTIONS */
section {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 100px 24px;
}

/* BEST PROJECTS (ACCORDION) */
.accordion-gallery {
  display: flex;
  gap: 12px;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-item {
  flex: 1;                      /* все блоки равны */
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.acc-item:hover {
  flex: 4;                      /* увеличение при наведении */
}

.acc-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.acc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-item:hover .acc-img-wrap img {
  transform: scale(1.04);
}

.acc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 35, 0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.acc-item:hover .acc-overlay {
  opacity: 1;
}

.acc-info {
  color: #fff;
}

.acc-category {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-h);
  margin-bottom: 4px;
}

.acc-title {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PROJECTS SECTION */
.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cat-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.92rem;       /* увеличено с 0.82 */
  font-weight: 600;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  letter-spacing: 0.01em;   /* добавлено */
}

.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

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

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

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.proj-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proj-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card:hover .proj-img-wrap img {
  transform: scale(1.07);
}

.proj-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(123, 97, 255, 0.55) 0%, rgba(15, 10, 35, 0.82) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.proj-cat {
  display: block;
  font-size: 0.75rem;       /* увеличено с 0.68 */
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-h);
  margin-bottom: 4px;
}

.proj-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.proj-view-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.proj-card.hidden {
  display: none;
}

/* RESUME SECTION */
.resume-section {
  max-width: var(--site-max);
}

.resume-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.resume-left {
  position: sticky;
  top: 96px;
}

.resume-photo-wrap {
  position: relative;
  margin-bottom: 24px;
  animation: avatarPulse 2.5s infinite ease-in-out;
  border-radius: var(--radius);
}

@keyframes avatarPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px rgba(123, 97, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 97, 255, 0); }
}

.resume-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.resume-photo-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(123, 97, 255, 0);
  }
}

.resume-identity {
  margin-bottom: 28px;
}

.resume-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.resume-role {
  font-size: 0.95rem;       /* увеличено с 0.88 */
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.01em;   /* добавлено */
}

.resume-bio {
  font-size: 0.95rem;       /* увеличено с 0.88 */
  color: var(--text-2);
  line-height: 1.65;
  letter-spacing: 0.01em;   /* добавлено */
}

.resume-block {
  margin-bottom: 28px;
}

.resume-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.software-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-name {
  font-size: 0.85rem;       /* увеличено с 0.78 */
  font-weight: 500;
  color: var(--text);
  width: 100px;
  flex-shrink: 0;
  letter-spacing: 0.01em;   /* добавлено */
}

.sw-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
}

.sw-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-h));
  border-radius: 2px;
  width: 0;
  transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

.lang-name {
  font-size: 0.95rem;       /* увеличено с 0.88 */
  font-weight: 500;
  letter-spacing: 0.01em;   /* добавлено */
}

.lang-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 50px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;       /* увеличено с 0.8 */
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(123, 97, 255, 0.18);
  transition: var(--transition);
  letter-spacing: 0.01em;   /* добавлено */
}

.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.skill-tag.soft {
  background: var(--bg-2);
  color: var(--text-2);
  border-color: var(--border);
}

.skill-tag.soft:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
}

.timeline-item:hover::before {
  background: var(--accent-glow);
}

.timeline-content {
  flex: 1;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(123, 97, 255, 0.22);
  background: var(--accent-soft);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 0.92rem;       /* увеличено с 0.95 */
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.01em;   /* добавлено */
}

.timeline-date {
  font-size: 0.8rem;        /* увеличено с 0.75 */
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 50px;
}

.timeline-company {
  font-size: 0.92rem;       /* увеличено с 0.82 */
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.01em;   /* добавлено */
}

.timeline-desc {
  font-size: 0.92rem;       /* увеличено с 0.82 */
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: 0.01em;   /* добавлено */
}

/* SOCIALS */
.socials-section {
  max-width: var(--site-max);
}

.socials-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-card {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.social-card:hover::before {
  opacity: 1;
}

.social-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
  position: relative;
}

.social-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.social-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.social-handle {
  font-size: 0.8rem;        /* увеличено с 0.72 */
  color: var(--text-3);
  letter-spacing: 0.01em;   /* добавлено */
}

/* CONTACT */
.contact-section {
  max-width: var(--site-max);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-text {
  padding-top: 8px;
}

.contact-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.contact-email {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: var(--transition);
}

.contact-email:hover {
  border-color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;  /* чуть больше отступ между полями */
}

.form-group {
  position: relative;
}

/* ПОЛЯ ВВОДА — УВЕЛИЧЕНЫ */
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 18px 0 14px;   /* было 14px 0 10px — выше */
  font-size: 0.9rem;      /* было 1rem — крупнее */
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.3s ease;
  letter-spacing: 0.015em; /* чуть шире */
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

/* ПОДПИСИ (label) — ТОЖЕ КРУПНЕЕ */
.form-group label {
  position: absolute;
  top: 18px;              /* подстроено под новый padding */
  left: 0;
  font-size: 1.05rem;     /* было 0.96rem — заметно больше */
  color: var(--text-3);
  pointer-events: none;
  transition: 0.25s ease;
  letter-spacing: 0.01em;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -6px;              /* чуть выше, чтобы не перекрывало */
  font-size: 0.8rem;      /* было 0.72rem — увеличено */
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
  width: 100%;
}

.btn-send {
  align-self: flex-start;
  margin-top: 8px; /* небольшой отступ сверху */
}

.form-success {
  display: none;
  font-size: 0.88rem;
  color: #22c55e;
  font-weight: 600;
}

.form-success.show {
  display: block;
}
/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-name {
  font-size: 0.9rem;        /* увеличено с 0.85 */
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;   /* добавлено */
}

.footer-copy {
  font-size: 0.85rem;       /* увеличено с 0.78 */
  color: var(--text-3);
  letter-spacing: 0.01em;   /* добавлено */
}

/* ========== СТАРЫЙ МОДАЛ (ГОРИЗОНТАЛЬНЫЙ) ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 8, 25, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.modal-close:hover svg {
  stroke: #fff;
}

.modal-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.modal-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-main-img-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-in;
}

.modal-main-img.zoomed {
  transform: scale(1.7);
  cursor: zoom-out;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-arrow.left {
  left: 12px;
}

.gallery-arrow.right {
  right: 12px;
}

.gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-arrow:hover svg {
  stroke: #fff;
}

.modal-thumbs {
  display: flex;
  gap: 11px;
  padding: 12px 16px;
  background: var(--bg-2);
  overflow-x: auto;
}

.modal-thumbs::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.modal-thumb {
  width: 160px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

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

.modal-thumb.active {
  border-color: var(--accent);
}

.modal-thumb:hover {
  border-color: var(--accent-h);
}

.modal-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.modal-sidebar::-webkit-scrollbar {
  width: 4px;
}

.modal-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.modal-sidebar-inner {
  padding: 32px 24px;
}

.modal-cat {
  display: inline-block;
  font-size: 0.75rem;       /* увеличено с 0.68 */
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.modal-desc {
  font-size: 0.9rem;        /* увеличено с 0.82 */
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  letter-spacing: 0.01em;   /* добавлено */
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.modal-meta-value {
  font-size: 0.9rem;        /* увеличено с 0.82 */
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;   /* добавлено */
}

@media (max-width: 700px) {
  .modal-content {
    flex-direction: column;
  }
  .modal-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 240px;
  }
  .modal-thumb {
    width: 80px;
    height: 60px;
  }
}

/* ========== НОВЫЙ ВЕРТИКАЛЬНЫЙ МОДАЛ ========== */
.vertical-modal .modal-box {
  max-width: 1400px;
  width: 90vw;
  max-height: 90vh;
  background: #0a0819;
  position: relative;
  overflow: hidden;
  border-radius: 24;
}

.vertical-modal-container {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  border-radius: inherit;
}

.vertical-modal-container::-webkit-scrollbar {
  width: 6px;
}

.vertical-modal-container::-webkit-scrollbar-track {
  background: #2a2a3a;
}

.vertical-modal-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.vertical-images-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vertical-img-item {
  width: 100%;
  display: block;
}

.vertical-img-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.vertical-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  cursor: pointer;
}

.vertical-modal-close:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 60px;
  color: white;
  font-size: 0.9rem;        /* увеличено с 0.8 */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2100;
  pointer-events: none;
  white-space: nowrap;
  font-family: monospace;
  letter-spacing: 1px;
  animation: fadeUpDown 2s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mouse-wheel {
  width: 28px;
  height: 44px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
}

.mouse-wheel::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes fadeUpDown {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
  }
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-h);
  transform: translateY(-3px);
}

/* MOBILE MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition);
}

.mobile-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .floating-nav {
    padding: 8px 12px;
    gap: 2px;
  }
  .nav-links {
    display: none;
  }
  .floating-nav {
    justify-content: space-between;
  }
  .nav-hamburger {
    display: flex;
  }
  .hero-scroll {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .accordion-gallery {
    height: 280px;
    gap: 6px;
  }
  .acc-title {
    font-size: 0.82rem;
  }
  section {
    padding: 70px 18px;
  }
  .vertical-modal .modal-box {
    width: 95vw;
  }
}
@media (max-width: 700px) {
  .modal-thumb {
    width: 100px;
    height: 75px;
  }
}
/* Крестик закрытия */
.modal-close svg {
  stroke: #7B61FF;
  stroke-width: 2;
}

/* Стрелки влево/вправо */
.gallery-arrow svg {
  stroke: #7B61FF;
  stroke-width: 2;
}

/* При наведении можно сделать ярче или белый */
.modal-close:hover svg,
.gallery-arrow:hover svg {
  stroke: #9A84FF;
}
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,97,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,97,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* ===== CURSOR GLOW (мягкое свечение) ===== */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, 
    rgba(123, 97, 255, 0.2) 0%, 
    rgba(123, 97, 255, 0.06) 40%, 
    rgba(123, 97, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  will-change: transform;
  filter: blur(12px);
  opacity: 0.8;
}

/* Отключаем на устройствах с тач-экраном */
@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 97, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 97, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.hero-deco-fixed {
  position: fixed;
  width: 500px;
  height: auto;
  pointer-events: none;
  z-index: 100;
  opacity: 1;
  transition: top 0.1s ease-out;
}

@media (max-width: 1200px) {
  .hero-deco-fixed {
    width: 290px;
  }
}
@media (max-width: 992px) {
  .hero-deco-fixed {
    display: none;
  }
}
.hero-deco-fixed {
  animation: fadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
             float 5s ease-in-out infinite 0.6s;
  opacity: 0;
  transform: translateX(20px);
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0px) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(0);
  }
  100% {
    transform: translateY(0px) translateX(0);
  }
}
@media (max-width: 992px) {
  .hero-deco-fixed {
    animation: none;
  }
}
/* Логотип в меню — круг */
.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px var(--accent-glow-strong);
  cursor: pointer;
}

.logo-mark .logo-svg {
  width: 21px;
  height: 21px;
  display: block;
  color: #fff;
  transition: color 0.3s ease;
  transform: translateY(-1px);
}

.nav-logo-link:hover .logo-mark {
  background: #DDE1E9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.nav-logo-link:hover .logo-mark .logo-svg {
  color: var(--accent);
}
/* Исправление центрирования "Листать" — переопределяем transform для visible */
.hero-scroll.visible {
  transform: translateX(-50%) !important;
  opacity: 1 !important;
}

.hero-scroll {
  margin-top: 0 !important;
  bottom: 40px !important;
}
/* Маленькое изображение в контактной секции */
.contact-badge {
  max-width: 450px;
  width: 100%;
  height: 120px;
  margin-top: 24px;
  display: block;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .contact-badge {
    margin-left: auto;
    margin-right: auto;
  }
}
.hero-subtitle .amp {
  font-size: 1.6em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  /* небольшая ручная подстройка — если нужно, измените значение */
  transform: translateY(-0.1em);
}
/* Контейнер для 3D модели в hero – абсолютное позиционирование */
.hero-spline-wrap {
  position: absolute;
  right: 5%;          /* отступ от правого края hero-inner */
  top: 28%;           /* поднимите выше – можно менять */
  width: 500px;
  height: 500px;
  z-index: 2;
  pointer-events: auto;
  transform: translateY(0);
}

/* Сам spline-viewer */
.hero-spline-wrap spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Скрываем логотип Spline, если мешает */
spline-viewer::part(logo) {
  display: none;
}

/* Адаптив: на планшетах и телефонах модель становится меньше и смещается */
@media (max-width: 992px) {
  .hero-spline-wrap {
    width: 280px;
    height: 280px;
    right: 2%;
    top: 20%;
  }
}

@media (max-width: 768px) {
  .hero-spline-wrap {
    position: relative;   /* возвращаем в поток на мобильных */
    right: auto;
    top: auto;
    width: 240px;
    height: 240px;
    margin: 2rem auto 0;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.hero-spline-wrap spline-viewer [class*="logo"],
.hero-spline-wrap spline-viewer [class*="built"] {
  display: none !important;
}
/* ========== ОБЛАКА ПО БОКАМ (ПАРЕНИЕ) ========== */
.cloud {
  position: fixed;
  width: 600px;
  height: 400px;
  background: url('assets/images/cloud.png') no-repeat center/contain;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
}

.cloud-left {
  left: -240px;
  top: 60%;            /* было 75% – подняли выше */
  animation: floatLeft 6s ease-in-out infinite;
}

.cloud-right {
  right: -240px;
  top: 0%;             /* было 15% – подняли ещё выше */
  animation: floatRight 6s ease-in-out infinite -3s;
}

@keyframes floatLeft {
  0% { transform: translateX(0); }
  50% { transform: translateX(12px); }
  100% { transform: translateX(0); }
}

@keyframes floatRight {
  0% { transform: translateX(0) scaleX(-1); }
  50% { transform: translateX(12px) scaleX(-1); }
  100% { transform: translateX(0) scaleX(-1); }
}

/* Адаптив для планшетов */
@media (max-width: 768px) {
  .cloud {
    width: 300px;
    height: 200px;
    opacity: 0.5;
  }
  .cloud-left {
    left: -120px;
    top: 80%;
  }
  .cloud-right {
    right: -120px;
    top: 5%;
  }
}

/* На телефонах скрываем облака */
@media (max-width: 480px) {
  .cloud { display: none; }
}
/* Убираем рамку у всех iframe */
iframe {
  border: none;
  outline: none;
}

/* Для контейнера, в который вставлен iframe (если есть фон или граница) */
.iframe-container {
  background: transparent;
  border: none;
}

/* Если рамка появляется при фокусе (клике по видео) */
iframe:focus {
  outline: none;
}
.social-svg {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}
/* Перекрашиваем иконки соцсетей в акцентный фиолетовый */
.social-icon-wrap img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(89%) saturate(2800%) hue-rotate(235deg) brightness(105%) contrast(101%);
  /* Этот фильтр преобразует любой цвет в #7B61FF */
  transition: filter 0.2s ease;
}

/* При наведении можно сделать светлее */
.social-card:hover .social-icon-wrap img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(97%) saturate(2500%) hue-rotate(230deg) brightness(108%) contrast(102%);
}