/* ── VARIABLES ── */
:root {
  --cream: #F5F0E8;
  --dark: #1A1A18;
  --stone: #8C8678;
  --gold: #C4A96D;
  --light-stone: #E8E2D8;
  --white: #FAFAF7;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Geologica', sans-serif; background: var(--cream); color: var(--dark); overflow-x: hidden; }

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 60px;
  background: transparent;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(245,240,232,0.96);
  backdrop-filter: blur(14px);
  padding: 14px 60px;
  box-shadow: 0 1px 0 var(--light-stone);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; letter-spacing: 5px; color: var(--dark); text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.2s; }
.nav-cta:hover { color: var(--gold); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; z-index: 200; width: 36px; height: 36px; background: none; border: none; padding: 6px; }
.burger span { display: block; width: 22px; height: 1px; background: var(--dark); transition: transform 0.3s, opacity 0.3s, width 0.3s; transform-origin: center; }
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; width: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ DRAWER ══ */
.drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 149;
  background: rgba(26,26,24,0.5);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s;
}
.drawer-overlay.visible { display: block; opacity: 1; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(300px, 82vw);
  background: var(--dark);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  flex-shrink: 0;
}
.drawer-logo { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; letter-spacing: 4px; color: var(--cream); text-decoration: none; }
.drawer-close { background: none; border: none; cursor: pointer; color: rgba(245,240,232,0.4); font-size: 20px; line-height: 1; padding: 4px 6px; transition: color 0.2s; }
.drawer-close:hover { color: var(--cream); }

.drawer-nav { display: flex; flex-direction: column; padding: 24px 24px 0; flex: 1; }
.drawer-link { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: rgba(245,240,232,0.55); text-decoration: none; padding: 11px 0; border-bottom: 1px solid rgba(245,240,232,0.07); transition: color 0.25s, padding-left 0.25s; display: block; }
.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover { color: var(--cream); padding-left: 8px; }

.drawer-footer { padding: 20px 24px 24px; border-top: 1px solid rgba(245,240,232,0.08); flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; }
.drawer-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.drawer-contacts a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-size: 13px; color: rgba(245,240,232,0.4); font-weight: 300; transition: color 0.2s; }
.drawer-contacts a:hover { color: var(--gold); }
.drawer-contacts span { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,232,0.2); min-width: 60px; flex-shrink: 0; }
.drawer-cta { display: block; text-align: center; background: var(--gold); color: var(--dark); padding: 13px 20px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.drawer-cta:hover { opacity: 0.88; }

/* ══ HERO ══ */
#hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 60px 80px; background: var(--cream); }
.hero-tag { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--stone); margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(48px, 5.5vw, 88px); font-weight: 300; line-height: 1.05; color: var(--dark); margin-bottom: 28px; }
.hero-title em { font-style: italic; color: var(--stone); }
.hero-desc { font-size: 15px; line-height: 1.75; color: var(--stone); max-width: 420px; margin-bottom: 44px; font-weight: 300; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn-primary { background: var(--dark); color: var(--cream); padding: 15px 32px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-weight: 500; border: none; cursor: pointer; display: inline-block; transition: background 0.3s, transform 0.2s; white-space: nowrap; }
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
.btn-link { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); text-decoration: none; font-weight: 400; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-link:hover { color: var(--dark); border-color: var(--dark); }

.hero-right { position: relative; overflow: hidden; background: var(--dark); min-height: 100vh; }
.hero-image-grid { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 40%; background-repeat: no-repeat; opacity: 0.9; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,24,0.3) 0%, transparent 60%); }
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; display: flex; background: rgba(26,26,24,0.6); backdrop-filter: blur(16px); border-top: 1px solid rgba(245,240,232,0.1); }
.hero-stat { color: var(--cream); flex: 1; padding: 20px 16px; border-right: 1px solid rgba(245,240,232,0.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1; display: block; margin-bottom: 4px; }
.hero-stat-label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.5; }

/* ══ ABOUT ══ */
.about-strip { background: var(--dark); color: var(--cream); padding: 80px 60px; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.about-strip h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 48px); font-weight: 300; line-height: 1.1; }
.about-strip h2 em { font-style: italic; color: var(--gold); }
.about-text p { font-size: 15px; line-height: 1.85; color: rgba(245,240,232,0.6); font-weight: 300; margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }

/* ══ SCALE BANNER ══ */
.scale-banner { background: var(--gold); padding: 48px 60px; display: flex; align-items: flex-start; gap: 40px; }
.scale-banner-icon { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(26,26,24,0.2); margin-top: 4px; }
.scale-banner-icon svg { width: 28px; height: 28px; stroke: var(--dark); fill: none; stroke-width: 1.3; }
.scale-banner-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--dark); margin-bottom: 10px; }
.scale-banner-text p { font-size: 14px; line-height: 1.75; color: rgba(26,26,24,0.65); font-weight: 300; max-width: 680px; }

/* ══ SERVICES ══ */
#services { padding: 100px 60px; }
.section-header { margin-bottom: 56px; }
.section-tag { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4vw, 56px); font-weight: 300; line-height: 1.1; }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: transparent;
}
.service-card {
  background: var(--cream);
  width: calc(33.333% - 2px);
  padding: 44px 36px;
  position: relative; overflow: hidden;
  transition: background 0.35s;
  box-sizing: border-box;
}
.service-card:nth-child(4) {
  margin-left: calc(16.666% + 1px);
}
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: var(--white); }
.service-num { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; line-height: 1; color: var(--light-stone); position: absolute; top: 20px; right: 28px; transition: color 0.35s; pointer-events: none; }
.service-card:hover .service-num { color: rgba(196,169,109,0.12); }
.service-icon { width: 44px; height: 44px; margin-bottom: 24px; display: flex; align-items: center; }
.service-icon svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.2; }
.service-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; margin-bottom: 14px; }
.service-desc { font-size: 13px; line-height: 1.75; color: var(--stone); font-weight: 300; }

/* ══ PORTFOLIO ══ */
#portfolio { padding: 0 0 100px; background: var(--white); }
.portfolio-header { padding: 100px 60px 56px; }
.portfolio-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 400px 300px; gap: 3px; padding: 0 60px; }
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; background: var(--dark); }
.portfolio-item:first-child { grid-row: 1 / 3; }

.portfolio-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.72;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}

/* ── portfolio-info: базовое состояние (десктоп — скрыт до ховера) ── */
.portfolio-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 32px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.portfolio-info h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 400;
  color: var(--cream); margin-bottom: 6px;
  transform: translateY(8px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.portfolio-info span {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  display: block;
  transform: translateY(8px);
  opacity: 0.8;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* ══ PORTFOLIO DESKTOP HOVER ══ */
@media (min-width: 1025px) {
  .portfolio-item:hover .portfolio-bg {
    transform: scale(1.06);
    opacity: 0.95;
    filter: brightness(1) saturate(1.05);
  }
  .portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
  }
  .portfolio-item:hover .portfolio-info h3,
  .portfolio-item:hover .portfolio-info span {
    transform: translateY(0);
  }
}

/* ══ PORTFOLIO CTA ══ */
.portfolio-cta {
  padding: 48px 60px 0;
  display: flex;
  justify-content: center;
  background: var(--white);
}
.btn-portfolio-full {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(26,26,24,0.18);
  color: var(--dark);
  background: transparent;
  padding: 16px 44px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-portfolio-full::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}
.btn-portfolio-full:hover::before { transform: scaleX(1); }
.btn-portfolio-full:hover { color: var(--cream); border-color: var(--dark); }
.btn-portfolio-full span,
.btn-portfolio-full svg {
  position: relative; z-index: 1;
}
.btn-portfolio-full svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.4;
  transition: transform 0.3s;
}
.btn-portfolio-full:hover svg { transform: translateX(4px); }

/* ══ CONTACT ══ */
#contact { padding: 120px 60px; background: var(--dark); position: relative; overflow: hidden; }
#contact::before { content: 'КОНТАКТЫ'; position: absolute; right: -60px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: 'Cormorant Garamond', serif; font-size: 160px; font-weight: 300; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; }
.contact-centered { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.contact-centered h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; color: var(--cream); margin-bottom: 16px; }
.contact-centered h2 em { font-style: italic; color: var(--gold); }
.contact-centered > p { font-size: 15px; line-height: 1.8; color: rgba(245,240,232,0.45); font-weight: 300; margin-bottom: 56px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(245,240,232,0.06); }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; text-decoration: none; color: var(--cream); background: rgba(245,240,232,0.03); position: relative; overflow: hidden; transition: background 0.35s; }
.contact-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.4s; }
.contact-card:hover { background: rgba(245,240,232,0.07); }
.contact-card:hover::after { transform: scaleX(1); }
.contact-card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(196,169,109,0.3); transition: border-color 0.3s; }
.contact-card:hover .contact-card-icon { border-color: var(--gold); }
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(245,240,232,0.35); }
.contact-card-value { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--cream); line-height: 1.2; }
.contact-card-sub { font-size: 12px; color: rgba(245,240,232,0.35); font-weight: 300; }

/* ══ FOOTER ══ */
footer { background: #111110; color: var(--cream); padding: 32px 60px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(245,240,232,0.05); }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; letter-spacing: 5px; }
.footer-copy { font-size: 11px; color: rgba(245,240,232,0.22); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,232,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ══ ANIMATIONS ══ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.service-card.scroll-active { background: var(--white); }
.service-card.scroll-active::after { transform: scaleX(1); }
.service-card.scroll-active .service-num { color: rgba(196,169,109,0.12); }

/* ══ TABLET ≤1024px ══ */
@media (max-width: 1024px) {
  nav { padding: 18px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 110px 40px 56px; }
  .hero-right { height: 60vw; min-height: 320px; max-height: 520px; }
  .hero-img { background-position: center 100%; }

  .about-strip { grid-template-columns: 1fr; gap: 28px; padding: 60px 40px; }
  .scale-banner { padding: 36px 40px; gap: 28px; }

  #services { padding: 80px 40px; }
  .service-card { width: calc(50% - 1px); }
  .service-card:nth-child(4) { margin-left: 0; }
  .service-card:nth-child(5) { margin-left: calc(25% + 0.5px); }

  .portfolio-header { padding: 80px 40px 48px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 260px; padding: 0 40px; }
  .portfolio-item:first-child { grid-row: auto; }
  .portfolio-cta { padding: 40px 40px 0; }

  #contact { padding: 80px 40px; }
  .contact-cards { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 18px; text-align: center; padding: 32px 40px; }
}

/* ══ PHONE ≤600px ══ */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }

  .hero-left { padding: 96px 20px 44px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-desc { font-size: 14px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .btn-primary { width: 100%; text-align: center; }
  .hero-right { height: 75vw; min-height: 260px; max-height: 420px; }
  .hero-img { background-position: center 120%; }
  .hero-stats { flex-wrap: nowrap; }
  .hero-stat { padding: clamp(8px, 2.5vw, 14px) clamp(4px, 1.8vw, 10px); }
  .hero-stat-num { font-size: clamp(14px, 4.5vw, 22px); margin-bottom: 2px; }
  .hero-stat-label { font-size: clamp(6px, 1.8vw, 8px); letter-spacing: 1px; }

  .about-strip { padding: 48px 20px; gap: 24px; }
  .about-strip h2 { font-size: 32px; }

  .scale-banner { padding: 28px 20px; flex-direction: column; gap: 18px; }
  .scale-banner-text h3 { font-size: 22px; }

  #services { padding: 56px 20px; }
  .service-card { width: 100%; }
  .service-card:nth-child(4),
  .service-card:nth-child(5) { margin-left: 0; }

  .portfolio-header { padding: 56px 20px 36px; }
  .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: none; padding: 0 20px; }
  .portfolio-item, .portfolio-item:first-child { height: 54vw; min-height: 200px; grid-row: auto; }
  .portfolio-cta { padding: 32px 20px 0; }
  .btn-portfolio-full { width: 100%; justify-content: center; }

  #contact { padding: 56px 20px; }
  #contact::before { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 20px; }
  .contact-card-value { font-size: 18px; }

  footer { padding: 24px 20px; gap: 14px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ══ NARROW ≤375px ══ */
@media (max-width: 375px) {
  .hero-title { font-size: 34px; }
  .hero-right { height: 85vw; max-height: 340px; }
  .scale-banner-text h3 { font-size: 20px; }
  .section-title { font-size: 28px; }
  .contact-centered h2 { font-size: 30px; }
  .portfolio-item, .portfolio-item:first-child { height: 58vw; }
}

/* ═══════════════════════════════════════ */
/* MOBILE CINEMATIC ANIMATIONS            */
/* ═══════════════════════════════════════ */

@media (max-width: 1024px) {

  * { -webkit-tap-highlight-color: transparent; }
  body { overflow-x: hidden; }

  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-img {
    background-position: center 120%;
    transform: scale(1.06);
    filter: brightness(0.9);
    transition: transform 7s ease-out, filter 2s ease;
  }

  /* SERVICE CARDS */
  .service-card {
    opacity: 0;
    transform: translateY(44px) scale(0.97);
    transition:
      opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
      background 0.3s ease;
    will-change: transform, opacity;
  }
  .service-card::after {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
  }
  .service-num {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
      color 0.4s ease;
  }
  .service-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .service-card.card-visible::after {
    transform: scaleX(1);
  }
  .service-card.card-visible .service-num {
    opacity: 1;
    transform: translateY(0);
    color: rgba(196, 169, 109, 0.14);
  }
  .service-card.card-exit {
    opacity: 0;
    transform: translateY(-32px) scale(0.97);
    transition:
      opacity   0.45s cubic-bezier(0.4, 0, 1, 1),
      transform 0.45s cubic-bezier(0.4, 0, 1, 1),
      background 0.3s ease;
  }
  .service-card.card-exit::after {
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1);
  }
  .service-card.card-exit .service-num {
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity   0.3s cubic-bezier(0.4, 0, 1, 1),
      transform 0.3s cubic-bezier(0.4, 0, 1, 1);
  }

  /* PORTFOLIO — мобильные анимации переопределяют базовые стили */
  .portfolio-bg {
    opacity: 0.38;
    transform: scale(1.07);
    filter: brightness(0.55) saturate(0.7);
    transition:
      opacity   0.9s  cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
      filter    0.9s  cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
  }
  .portfolio-info {
    opacity: 0;
    transform: translateY(48px);
    transition:
      opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s,
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
  }
  .portfolio-info h3 {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.36s,
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.36s;
  }
  .portfolio-info span {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity   0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.46s,
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.46s;
  }
  .portfolio-item.item-visible .portfolio-bg {
    opacity: 0.9;
    transform: scale(1);
    filter: brightness(0.88) saturate(1);
  }
  .portfolio-item.item-visible .portfolio-info {
    opacity: 1;
    transform: translateY(0);
  }
  .portfolio-item.item-visible .portfolio-info h3,
  .portfolio-item.item-visible .portfolio-info span {
    opacity: 1;
    transform: translateY(0);
  }
  .portfolio-item.item-exit .portfolio-bg {
    opacity: 0.3;
    transform: scale(1.04);
    filter: brightness(0.45) saturate(0.5);
    transition:
      opacity   0.5s cubic-bezier(0.4, 0, 1, 1),
      transform 0.5s cubic-bezier(0.4, 0, 1, 1),
      filter    0.5s cubic-bezier(0.4, 0, 1, 1);
  }
  .portfolio-item.item-exit .portfolio-info {
    opacity: 0;
    transform: translateY(-28px);
    transition:
      opacity   0.35s cubic-bezier(0.4, 0, 1, 1),
      transform 0.35s cubic-bezier(0.4, 0, 1, 1);
  }
  .portfolio-item.item-exit .portfolio-info h3,
  .portfolio-item.item-exit .portfolio-info span {
    opacity: 0;
    transition:
      opacity   0.25s cubic-bezier(0.4, 0, 1, 1),
      transform 0.25s cubic-bezier(0.4, 0, 1, 1);
  }
}