/* ══════════════════════════════════════════════════════════════
   F5 Interiors — Premium Interior Design
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:      #282120;
  --bg-2:    #38312f;
  --bg-3:    #453E3A;
  --bg-4:    #4e4744;
  --accent:     #BA9256;
  --accent-dim: rgba(186,146,86,0.12);
  --cream:   #EDE8DF;
  --cream-2: #C4B9A8;
  --gray:    #6B6560;
  --gray-2:  #3D3A37;
  --border:  rgba(237,232,223,0.07);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.45, 0, 0.55, 1);

  --container: 1440px;
  --site-max:  1600px;
  --gap:       clamp(24px, 3vw, 40px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
html {
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background-color: #1a1615;
  /* Фото интерьера фиксировано — "просматривается" между блоками при скролле */
  background-image: url('/images/bg-parallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Полупрозрачный оверлей поверх фонового фото — затемняет, но не скрывает */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 15, 0.72);
  z-index: -1;
  pointer-events: none;
}

/* iOS Safari не поддерживает fixed — fallback на статичный тёмный фон */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    background-image: none;
  }
  body::before { display: none; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Site wrapper ─────────────────────────────────────────── */
body > * { max-width: var(--site-max); margin-left: auto; margin-right: auto; }
/* Фиксированные элементы не ограничиваем */
.header, .fsmenu, .toast { max-width: none; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}
:root {
  --radius-block: 20px;
}

.section {
  padding: var(--gap) clamp(12px, 2vw, 24px);
}

/* Каждая секция — плавающий блок со скруглениями */
.hero,
.about,
.services,
.portfolio,
.process,
.contact,
.footer,
.ticker {
  border-radius: var(--radius-block);
  overflow: hidden;
  width: calc(100% - clamp(16px, 3vw, 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Отступы между секциями */
.hero      { margin-top: clamp(4px, 1.5vw, 16px); }
.ticker    { margin-top: 8px; }
.about     { margin-top: 8px; }
.services  { margin-top: 8px; }
.portfolio { margin-top: 8px; }
.process  { margin-top: 8px; }
.contact  { margin-top: 8px; }
.footer   { margin-top: 8px; margin-bottom: 8px; }

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Typography helpers ───────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label__line {
  display: block; width: 28px; height: 1px; background: var(--accent); flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--cream-2); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.3s var(--ease);
}
.btn-link:hover { gap: 16px; }

/* ══════════════════════════════════════════════════════════════
   FULLSCREEN MENU
   ══════════════════════════════════════════════════════════════ */
.fsmenu {
  position: fixed;
  top: 76px;
  right: clamp(8px, 2vw, 24px);
  z-index: 900;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.fsmenu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.fsmenu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.fsmenu__link {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream-2);
  letter-spacing: -0.01em;
  transition: color 0.25s, padding-left 0.25s var(--ease);
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(8px);
}
.fsmenu.open .fsmenu__link {
  transform: none;
  opacity: 1;
  transition: color 0.25s, padding-left 0.25s var(--ease), opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.fsmenu.open .fsmenu__link:nth-child(1) { transition-delay: 0.04s; }
.fsmenu.open .fsmenu__link:nth-child(2) { transition-delay: 0.08s; }
.fsmenu.open .fsmenu__link:nth-child(3) { transition-delay: 0.12s; }
.fsmenu.open .fsmenu__link:nth-child(4) { transition-delay: 0.16s; }

.fsmenu__link::before {
  content: attr(data-num);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 400;
  position: relative;
  top: -2px;
  opacity: 0.7;
}
.fsmenu__link:hover { color: var(--cream); padding-left: 4px; }

.fsmenu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.fsmenu__foot a, .fsmenu__foot span {
  font-size: 12px;
  color: var(--gray);
  transition: color 0.3s;
}
.fsmenu__foot a:hover { color: var(--cream); }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 950;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.header.scrolled {
  background: rgba(40,33,32,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.7; }
.logo__f5 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.logo__dot { color: var(--accent); font-size: 26px; font-family: var(--serif); line-height: 0; position: relative; top: 3px; margin: 0 1px; }
.logo__int {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--cream);
}

/* ── Burger ───────────────────────────────────────────────── */
.burger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.burger__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s;
}
.burger:hover .burger__label { color: var(--accent); }
.burger__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burger__lines span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.burger.open .burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open .burger__lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open .burger__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 75svh;
  min-height: 520px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Background */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img { position: absolute; inset: 0; }
.hero__img-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 100% 80% at 70% 40%, #3d2a28 0%, #282120 55%),
    radial-gradient(ellipse 60% 60% at 20% 80%, #1e1615 0%, transparent 60%);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(40,33,32,0.4) 0%,
    rgba(40,33,32,0.1) 30%,
    rgba(40,33,32,0.2) 60%,
    rgba(40,33,32,0.85) 100%
  );
}

/* Top bar */
.hero__top {
  position: relative; z-index: 1;
  padding-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.5);
}
.hero__year {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(237,232,223,0.35);
  letter-spacing: 0.1em;
}

/* Giant title */
.hero__center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(20px, 5vw, 80px);
  pointer-events: none;
}
.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  user-select: none;
}
.hero__title-f5 {
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 0.85;
}
.hero__title-int {
  font-family: var(--sans);
  font-size: clamp(14px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(237,232,223,0.6);
  text-transform: uppercase;
  padding-left: 6px;
  margin-top: 12px;
}

/* Bottom bar */
.hero__bottom {
  position: relative; z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 100px;
}
.hero__sub {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300;
  color: rgba(237,232,223,0.55);
  line-height: 1.6;
  max-width: 320px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(237,232,223,0.3);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.hero__cta:hover { gap: 16px; border-color: var(--accent); color: var(--accent); }

/* Stats */
.hero__stats {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 36px;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 36px;
}
.hero__stat-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.hero__stat-num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}
.hero__stat-plus {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  position: relative;
  top: -10px;
}
.hero__stat-label {
  font-size: 11px;
  color: rgba(237,232,223,0.6);
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__stat-div {
  width: 1px; height: 36px;
  background: var(--border);
  margin-right: 36px;
  flex-shrink: 0;
}

/* Side label */
.hero__side {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  z-index: 1;
}
.hero__side span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.25);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════════════════════ */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  animation: ticker 28s linear infinite;
}
.ticker__track span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186,146,86,0.7);
  flex-shrink: 0;
}
.ticker__dot {
  color: rgba(186,146,86,0.25) !important;
  letter-spacing: 0 !important;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
.about { padding: var(--gap) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
}

/* Image */
.about__image {
  position: relative;
  overflow: hidden;
}
.about__image-ph {
  width: 100%; height: 100%;
  min-height: 500px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__image-ph span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.about__image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Materials grid ──────────────────────────────────────── */
.materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  min-height: 480px;
  gap: 2px;
}
.mat {
  position: relative;
  overflow: hidden;
  transition: filter 0.4s;
}
.mat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,16,15,0.25);
  transition: opacity 0.4s;
  pointer-events: none;
}
.mat:hover::after { opacity: 0; }
.mat:hover { filter: brightness(1.08); }
.mat__label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.5);
  z-index: 1;
  transition: color 0.3s;
}
.mat:hover .mat__label { color: rgba(237,232,223,0.9); }

.mat--marble-white {
  background: url('/images/mramor_tekstura_seryj_146385_1280x1024.jpg') center/cover no-repeat;
}
.mat--wood {
  background: url('/images/derevo_linii_tekstura_1283396_1280x1024.jpg') center/cover no-repeat;
}
.mat--marble-dark {
  background: url('/images/close-up-of-black-and-brown-marble-texture-with-material-and-art-keywords-photo.jpg') center/cover no-repeat;
}
.mat--brass {
  background: url('/images/6703979661.jpg') center/cover no-repeat;
}
.mat--concrete {
  background: url('/images/tekstura_beton_seryj_147070_1920x1080.jpg') center/cover no-repeat;
}
.mat--travertine {
  background: url('/images/grunge-background-texture.jpg') center/cover no-repeat;
}

/* Badge */
.about__image-badge {
  position: absolute;
  bottom: 32px; right: -20px;
  background: var(--bg-4);
  border: 1px solid var(--accent);
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 0 8px rgba(186,146,86,0.12);
}
.about__badge-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.about__badge-txt {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* Content */
.about__content {
  padding: clamp(40px, 6vw, 80px) clamp(32px, 6vw, 80px);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__text {
  font-size: 15px;
  color: rgba(237,232,223,0.6);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Values */
.about__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about__value {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.about__value-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 2px;
}
.about__value h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 3px;
}
.about__value p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════ */
.services { padding: clamp(32px, 5vw, 72px) 0 0; background: var(--bg); }
.services__head {
  margin-bottom: clamp(24px, 3vw, 48px);
}
.services__footer {
  padding-top: clamp(32px, 4vw, 48px);
  display: flex;
  justify-content: flex-end;
}

/* Cards */
.services__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.services__cards {
  border-radius: 16px;
  overflow: hidden;
}

.scard {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: background 0.4s;
}
.scard:hover { background: var(--bg-3); }

.scard__img {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: none;
}
.scard__img-ph {
  width: 100%; height: 100%;
  transition: transform 0.6s var(--ease);
}
.scard:hover .scard__img-ph { transform: scale(1.04); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.04); }

.scard__featured {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.scard__body {
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.scard__num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.scard__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 14px;
}
.scard__text {
  font-size: 14px;
  color: rgba(237,232,223,0.5);
  line-height: 1.7;
  margin-bottom: 24px;
}
.scard__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  flex: 1;
}
.scard__list li {
  font-size: 13px;
  color: var(--gray);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.scard__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 1px;
  background: var(--accent);
}
.scard__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: letter-spacing 0.3s;
}
.scard__link:hover { letter-spacing: 0.16em; }

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════════════════════════ */
.portfolio { background: var(--bg); padding-bottom: clamp(32px, 4vw, 60px); }
.portfolio .container { padding: 0 clamp(12px, 1.5vw, 24px); }

.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
  gap: 24px;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.carousel__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-2);
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
}
.carousel__btn:hover:not(:disabled) { color: var(--cream); border-color: var(--accent); }
.carousel__counter {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.1em;
  min-width: 44px;
  text-align: center;
}

.carousel__viewport {
  overflow: hidden;
  padding: 24px clamp(20px, 4vw, 60px) 16px;
}

.carousel__track {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pstory {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 24px 0 0;
}
.pstory:focus-visible .pstory__ring {
  box-shadow: 0 0 0 3px var(--accent);
}

.pstory__ring {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--accent) 0%, rgba(186,146,86,0.3) 60%, var(--accent) 100%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  flex-shrink: 0;
}
.pstory:hover .pstory__ring {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(186,146,86,0.25);
}

.pstory__thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--bg);
}

.pstory__title {
  font-size: 13px;
  color: var(--cream-2);
  text-align: center;
  max-width: clamp(100px, 12vw, 140px);
  line-height: 1.3;
  transition: color 0.3s;
}
.pstory__area {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.pstory:hover .pstory__title { color: var(--cream); }

/* ── Модальное окно ───────────────────────────────────────── */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.pmodal.open {
  opacity: 1;
  pointer-events: all;
}

.pmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,16,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pmodal__inner {
  position: relative;
  z-index: 1;
  width: min(900px, 95vw);
  background: var(--bg-2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.pmodal.open .pmodal__inner { transform: scale(1); }

.pmodal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.pmodal__info { display: flex; flex-direction: column; gap: 2px; }
.pmodal__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--cream);
}
.pmodal__area { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }

.pmodal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  transition: color 0.3s, border-color 0.3s;
}
.pmodal__close:hover { color: var(--cream); border-color: var(--cream-2); }

.pmodal__stage {
  position: relative;
  height: clamp(300px, 55vh, 560px);
  background: var(--bg);
}

.pmodal__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Прозрачный щит — блокирует drag и правый клик на уровне DOM */
.pmodal__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.pmodal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.pmodal__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-2);
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
}
.pmodal__btn:hover { color: var(--cream); border-color: var(--accent); }
.pmodal__counter { font-size: 12px; color: var(--gray); letter-spacing: 0.1em; min-width: 40px; text-align: center; }

/* ══════════════════════════════════════════════════════════════
   PROCESS
   ══════════════════════════════════════════════════════════════ */
.process { background: var(--bg-2); padding: clamp(32px, 4vw, 56px) 0; }
.process__head { margin-bottom: clamp(24px, 3vw, 40px); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.pstep {
  background: var(--bg-2);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.3s;
}
.pstep:hover { background: var(--bg-3); }

.pstep__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}
.pstep__line {
  width: 24px; height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.pstep__body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 12px;
}
.pstep__body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pstep__time {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(186,146,86,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact { background: var(--bg); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.contact__sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(237,232,223,0.65);
  transition: color 0.3s;
}
.contact__info-item:hover { color: var(--cream); }
.contact__info-item svg { flex-shrink: 0; }

/* Form */
.cform {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cform__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cform__field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.cform__field input,
.cform__field select,
.cform__field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  caret-color: var(--accent);
}
.cform__field input::placeholder,
.cform__field textarea::placeholder { color: var(--gray-2); }
.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus { border-color: rgba(186,146,86,0.5); background: var(--bg-4); }
.cform__field input.invalid,
.cform__field textarea.invalid { border-color: rgba(180, 80, 60, 0.6); }
.cform__error {
  font-size: 11px;
  color: rgba(220, 100, 80, 0.9);
  margin-top: 4px;
  display: block;
  min-height: 16px;
}
.cform__field select option { background: var(--bg-3); }
.cform__field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.cform__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cform__btn:hover {
  background: #8a6b3a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(186,146,86,0.3);
}
.cform__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cform__note {
  font-size: 11px;
  color: var(--gray-2);
  line-height: 1.5;
  text-align: center;
}
/* ── Form popup ───────────────────────────────────────────── */
.fpopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.fpopup.open { display: block; }
.fpopup.open .fpopup__box {
  opacity: 1;
  scale: 1;
}
.fpopup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.fpopup__box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  opacity: 0;
  scale: 0.92;
  transition: opacity 0.25s ease, scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fpopup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray-2);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.fpopup__close:hover { color: var(--cream); }
.fpopup__icon { margin-bottom: 4px; }
.fpopup__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  color: var(--cream);
  margin: 0;
}
.fpopup__sub {
  font-size: 14px;
  color: var(--gray-2);
  line-height: 1.6;
  margin: 0;
}
.fpopup__btn {
  margin-top: 12px;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.fpopup__btn:hover { opacity: 0.85; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--cream); }
.footer__copy {
  font-size: 12px;
  color: var(--gray-2);
}

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-3);
  border: 1px solid rgba(186,146,86,0.35);
  padding: 14px 24px;
  font-size: 13px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); }
  .services__cards { grid-template-columns: 1fr; }
  .scard__img { height: 160px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { display: none; }
  .about__image-badge { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤640px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Глобально: меньше воздуха ──────────────────────────── */
  .section { padding-top: 24px; padding-bottom: 24px; }
  .container { padding: 0 16px; }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__top { padding-top: 76px; padding-bottom: 12px; }
  .hero__center {
    position: relative;
    inset: auto;
    padding: 0 16px;
    pointer-events: auto;
    margin-bottom: 12px;
  }
  .hero__title-f5 { font-size: 26vw; }
  .hero__title-int { font-size: 3.5vw; margin-top: 6px; }
  .hero__bottom {
    position: relative;
    padding-bottom: 20px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero__sub { font-size: 13px; max-width: 180px; }
  .hero__stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding-bottom: 0;
  }
  .hero__stat { padding-right: 0; }
  .hero__stat-div { display: none; }
  .hero__side { display: none; }
  .hero__stat-num { font-size: 22px; }
  .hero__stat-label { font-size: 10px; }

  /* ── About ──────────────────────────────────────────────── */
  .about { padding: 0; }
  .about .container { padding-top: 24px; padding-bottom: 24px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { display: none; }
  .about__values { gap: 12px; }
  .about__text { font-size: 13px; }
  .section-title { font-size: clamp(24px, 7vw, 36px); }

  /* ── Services → горизонтальный свайп ───────────────────── */
  .services { padding: 24px 0; }
  .services__head { padding: 0 16px; margin-bottom: 16px; }
  .services__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 16px 16px;
    background: none;
    border-radius: 0;
  }
  .services__cards::-webkit-scrollbar { display: none; }
  .scard {
    min-width: 80vw;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 12px;
  }
  .scard__img { height: 140px; }
  .scard__body { padding: 16px; }
  .scard__list { display: none; }

  /* ── Portfolio ──────────────────────────────────────────── */
  .portfolio .container { padding-top: 24px; }
  .portfolio { padding-bottom: 16px; }
  .portfolio__head { margin-bottom: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .carousel__viewport { padding: 8px 16px 12px; }

  /* ── Process → аккордеон ────────────────────────────────── */
  .process { padding: 24px 0; }
  .process__head { padding: 0 16px; margin-bottom: 16px; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .pstep {
    padding: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .pstep__num { display: none; }
  .pstep__line { display: none; }
  .pstep__accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
  }
  .pstep__accordion-head h3 { font-size: 14px; font-weight: 400; color: var(--cream-2); margin: 0; }
  .pstep__accordion-arrow {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
  }
  .pstep.open .pstep__accordion-arrow { transform: rotate(180deg); }
  .pstep__accordion-body {
    display: none;
    padding: 0 16px 14px;
  }
  .pstep.open .pstep__accordion-body { display: block; }
  .pstep__accordion-body p { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0 0 6px; }
  .pstep__accordion-body .pstep__time { font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
  /* Скрыть десктопное содержимое шагов на мобиле */
  .pstep > .pstep__body { display: none; }

  /* ── Contact ────────────────────────────────────────────── */
  .cform__row { grid-template-columns: 1fr; }
  .contact .container { padding-top: 24px; padding-bottom: 24px; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { gap: 12px; flex-wrap: wrap; }

  /* ── Menu ───────────────────────────────────────────────── */
  .fsmenu { right: 8px; left: 8px; width: auto; }
}

/* ── Focus ────────────────────────────────────────────────── */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
