:root {
  --bg: #F2EDE6;
  --card: #ffffff;
  --text: #2A2A2A;
  --muted: #5A5A5A;
  --accent: #5A0F17;
  --accent-bright: #7A1620;
  --neutral: #D4C7BC;
  --border: rgba(90, 15, 23, 0.15);
  --radius: 20px;
}

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

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

main {
  margin: 0;
  padding: 0;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 100px);
  margin: 0;
  margin-bottom: 0;
  background: rgba(242, 237, 230, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 199, 188, 0.3);
  gap: clamp(12px, 2vw, 24px);
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  height: clamp(32px, 5vw, 40px);
  flex-shrink: 0;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  margin: 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav .nav-order {
  margin-left: clamp(4px, 1vw, 8px);
  min-width: clamp(100px, 12vw, 140px);
  color: #fff !important;
  font-size: clamp(0.85rem, 1.3vw, 1.15rem);
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 28px);
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  line-height: 1.5;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover {
  color: var(--accent);
}

.cta {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.cta:hover::before {
  width: 400px;
  height: 400px;
  opacity: 1;
}

.cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(90, 15, 23, 0.5);
  background: var(--accent-bright);
}

.cta:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.15s ease;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(24px, 6vw, 120px) clamp(64px, 8vw, 120px) clamp(24px, 6vw, 120px);
  margin: 0;
  padding-top: 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: var(--accent);
}

.hero::before {
  display: none;
}

.hero-content {
  text-align: left;
  max-width: 100%;
  width: 100%;
  padding-top: clamp(64px, 8vw, 120px);
  margin-top: 0;
}

.hero-visual {
  order: 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.04);
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 600px);
  aspect-ratio: 4 / 3;
}

/* Анимации для 4 кругов */
.mobile-animation {
  transform-origin: center center;
}

.node {
  text-anchor: middle;
}

.disc {
  transform-origin: center;
  animation:
    breathe 8s ease-in-out infinite,
    dissolve 10s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(90, 15, 23, 0.35));
}

.disc-1 {
  animation-delay: 0s, 3s;
}
.disc-2 {
  animation-delay: 0.5s, 3.2s;
}
.disc-3 {
  animation-delay: 1s, 3.4s;
}
.disc-4 {
  animation-delay: 1.5s, 3.6s;
}

.disc-label {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.0);
  font-weight: 600;
  animation: revealText 6s ease forwards;
}

.node-brand .disc-label {
  animation-delay: 4s;
}
.node-retail .disc-label {
  animation-delay: 4.2s;
}
.node-service .disc-label {
  animation-delay: 4.4s;
}
.node-customer .disc-label {
  animation-delay: 4.6s;
}

.connector {
  transform-origin: center;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  stroke-dashoffset: 100;
  opacity: 1;
  animation: 
    linePulse 5s ease-in-out infinite,
    dissolve 10s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(90, 15, 23, 0.25));
}

.connector-1 {
  animation-delay: 0s, 3s;
}
.connector-2 {
  animation-delay: 0s, 3.2s;
}
.connector-3 {
  animation-delay: 0s, 3.4s;
}
.connector-4 {
  animation-delay: 0s, 3.3s;
}
.connector-5 {
  animation-delay: 0s, 3.4s;
}
.connector-6 {
  animation-delay: 0s, 3.3s;
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 10px 30px rgba(90, 15, 23, 0.35));
  }
  30% {
    transform: translate(4px, -6px) scale(1.04);
    filter: drop-shadow(0 15px 35px rgba(90, 15, 23, 0.45));
  }
  60% {
    transform: translate(-3px, 4px) scale(0.97);
    filter: drop-shadow(0 8px 24px rgba(90, 15, 23, 0.3));
  }
}

@keyframes linePulse {
  0% {
    stroke-dashoffset: 100;
  }
  60% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -100;
  }
}

@keyframes dissolve {
  0%,
  30% {
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.25;
  }
}

@keyframes revealText {
  0% {
    fill: rgba(255, 255, 255, 0);
    letter-spacing: 0.3em;
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    fill: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    opacity: 1;
  }
}

.hero-content .subhead {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 32px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
.hero-content .lead {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  color: #ffffff;
  font-weight: 400;
  max-width: 100%;
  width: 100%;
  line-height: 1.2;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

.hero-content .lead strong {
  font-weight: 700;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: clamp(80px, 12vw, 160px) clamp(32px, 8vw, 140px);
}

#about {
  background: var(--accent);
  color: #ffffff;
}

#about .section-header h2,
#about .section-header .eyebrow,
#about h3 {
  color: #ffffff;
}

#about .section-text,
#about p {
  color: rgba(255, 255, 255, 0.9);
}

#about .pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

#about .pill h3 {
  color: #ffffff;
}

#about .pill p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.section-text {
  max-width: 640px;
  color: var(--text);
  font-weight: 400;
}

#about .section-text {
  max-width: none;
  font-size: 1.25rem;
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.pill {
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.stats {
  background: var(--neutral);
}

.stats .section-header h2,
.stats .section-header .eyebrow {
  color: var(--accent);
}

.stats .section-text,
.stats p {
  color: var(--text);
}

.stats .stat-number {
  color: var(--accent);
}

#why {
  background: var(--accent);
  color: #ffffff;
}

#why .section-header h2,
#why .section-header .eyebrow,
#why h3 {
  color: #ffffff;
}

#why .section-text,
#why p {
  color: rgba(255, 255, 255, 0.9);
}

#why .why-grid article {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding-left: 40px;
  padding-top: 60px;
}

#why .why-grid article h3,
#why .why-title {
  color: #ffffff;
}

#why .why-grid article p,
#why .why-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.stats-grid article:first-child {
  border-right: 2px solid var(--accent);
  padding-right: 24px;
  margin-right: -12px;
}

.stats-grid article {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.stats-grid article:first-child {
  text-align: center;
  border-right: 2px solid var(--accent);
  padding-right: 24px;
  margin-right: -12px;
}

.stats-grid article:last-child {
  text-align: center;
}

.stat-two-columns {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.stat-column-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-column-left .stat-number {
  font-size: clamp(4rem, 8vw, 10rem);
  line-height: 1;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-column-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.stat-column-right p {
  margin: 0;
  line-height: 1.4;
}

.stat-column-right p:first-child {
  margin-top: 0;
  padding-top: 0;
}

.stat-column-right p {
  margin: 0;
  text-align: left;
}

.stats-grid article p {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.stats-grid article p .text-normal,
.stats-grid article p.text-normal {
  font-weight: 400;
}

.stats-grid .stat-number {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.stats-grid article p .stat-number {
  display: inline;
  margin-bottom: 0;
  margin-right: 8px;
}

.stats-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  box-sizing: border-box;
}


.stats-images img {
  max-width: min(3.75em, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  font-size: clamp(4rem, 8vw, 10rem);
}

/* Обеспечиваем одинаковую скорость проявления для изображений, как и для текста */
.stats-images img.slide-up {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.stats-images img.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.stat-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.why-grid article {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
}

.why-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  z-index: 1;
}

.why-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px 0;
  padding-top: 8px;
  padding-left: 0;
  line-height: 1.2;
}

.why-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  margin: 0;
  padding-left: 0;
  line-height: 1.5;
  opacity: 0.9;
}


#process {
  background: var(--neutral);
}

#process .section-header h2,
#process .section-header .eyebrow {
  color: var(--accent);
}

#process .section-text,
#process p {
  color: var(--text);
}

.timeline {
  background: var(--card);
  border-radius: var(--radius);
  padding: 60px;
}
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.timeline-steps article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-steps article h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-align: center;
}

.timeline-steps article p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding: 24px;
  box-sizing: border-box;
}

.step-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#contact {
  background: var(--accent);
  color: #ffffff;
}

#contact .section-header h2,
#contact .section-header .eyebrow {
  color: #ffffff;
}

#contact .section-text,
#contact p {
  color: rgba(255, 255, 255, 0.9);
}

.contact {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.contact-map {
  width: 100%;
  height: 500px;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.contact-map iframe,
#yandex-map {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  border-radius: 12px;
  display: block;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
}

.contact-btn::before {
  display: none;
}

.contact-btn:hover {
  transform: scale(1.1);
}

.contact-btn svg {
  width: 96px;
  height: 96px;
  transition: opacity 0.3s ease;
}

.contact-btn:hover svg {
  opacity: 0.8;
}

.contact-btn:active {
  transform: translateY(-2px) scale(1.02);
  transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              transform 0.45s ease;
}

/* Специальные задержки для кнопок контактов (в 3 раза медленнее) */
.contact-btn.slide-up,
.contact-btn.slide-up:active {
  /* Transition для цветов наследуется из базового правила .contact-btn */
  transition-property: opacity, transform, box-shadow, background-color, border-color, color;
  transition-duration: 2.4s, 2.4s, 1.2s, 0.5s, 0.5s, 0.5s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-btn.slide-up:hover {
  /* Для hover убираем все задержки */
  transition-property: opacity, transform, box-shadow, background-color, border-color, color;
  transition-duration: 2.4s, 2.4s, 1.2s, 0.5s, 0.5s, 0.5s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0s, 0s, 0s, 0s, 0s, 0s !important;
}

.contact-btn.slide-up.delay-1 {
  transition-delay: 0.3s, 0.3s, 0s, 0s, 0s;
}

.contact-btn.slide-up.delay-2 {
  transition-delay: 0.6s, 0.6s, 0s, 0s, 0s;
}

.contact-btn.slide-up.delay-3 {
  transition-delay: 0.9s, 0.9s, 0s, 0s, 0s;
}

.contact-btn.slide-up.delay-4 {
  transition-delay: 1.2s, 1.2s, 0s, 0s, 0s;
}

/* Принудительное применение медленного transition для цветов при наведении */
.contact-container .contact-btn,
.contact-container .contact-btn:hover,
.contact-container .contact-btn:active,
.contact-container .contact-btn:focus,
.contact-container .contact-btn.slide-up,
.contact-container .contact-btn.slide-up:hover,
.contact-container .contact-btn.slide-up:active {
  transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.contact-btn-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.contact-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

#contact .contact-form label {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 20px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transition: border 0.2s ease, background 0.2s ease;
}

#contact .contact-form input,
#contact .contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  background: #ffffff;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.contact-card {
  margin-top: 40px;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(90, 15, 23, 0.03);
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

#contact .contact-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

#contact .contact-card p,
#contact .contact-card a {
  color: rgba(255, 255, 255, 0.9);
}

#contact .cta {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#contact .cta::before {
  background: rgba(255, 255, 255, 0.3);
}

#contact .cta:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.25);
  transform: translateY(-4px) scale(1.05);
}

#contact .cta:active {
  transform: translateY(-1px) scale(1.02);
}

.site-footer {
  text-align: center;
  padding: 60px 32px;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  height: 50px;
}

.footer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Базовые анимации появления */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Задержки для последовательного появления */
.slide-up.delay-1 {
  transition-delay: 0.1s;
}

.slide-up.delay-2 {
  transition-delay: 0.2s;
}

.slide-up.delay-3 {
  transition-delay: 0.3s;
}

.slide-up.delay-4 {
  transition-delay: 0.4s;
}

/* Старые классы для обратной совместимости */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 1200px) {
  .main-nav {
    gap: clamp(8px, 1.5vw, 16px);
    font-size: clamp(0.85rem, 1.3vw, 1rem);
  }
  
  .main-nav .nav-order {
    min-width: clamp(90px, 10vw, 120px);
    padding: clamp(8px, 1.2vw, 10px) clamp(12px, 2.5vw, 20px);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  }
}

@media (max-width: 820px) {
  .main-nav {
    gap: clamp(6px, 1.2vw, 12px);
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .main-nav a {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    padding: clamp(4px, 0.8vw, 6px) clamp(6px, 1.2vw, 10px);
  }
  
  .main-nav .nav-order {
    min-width: clamp(70px, 8vw, 100px);
    padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 16px);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    margin-left: clamp(4px, 0.8vw, 6px);
  }
  
  .site-header {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 12px);
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content .lead,
  .section-text {
    margin-inline: auto;
  }
  
  .section {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 32px);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-buttons {
    gap: 24px;
  }
  
  .contact-map {
    height: 400px;
  }
  
  /* Адаптивность для секции "Наш опыт" */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid article:first-child {
    border-right: none;
    border-bottom: 2px solid var(--accent);
    padding-right: 0;
    padding-bottom: 24px;
    margin-right: 0;
    margin-bottom: -16px;
  }
  
  .stat-column-left .stat-number {
    font-size: clamp(3rem, 12vw, 6rem);
  }
  
  .stats-images img {
    font-size: clamp(3rem, 12vw, 6rem);
    max-width: 90%;
  }
  
  .stat-two-columns {
    gap: clamp(8px, 3vw, 16px);
  }
  
  .stats-grid article p {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: clamp(4px, 1vw, 8px);
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  }
  
  .main-nav a {
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    padding: clamp(3px, 0.6vw, 5px) clamp(5px, 1vw, 8px);
  }
  
  .main-nav .nav-order {
    min-width: clamp(60px, 7vw, 85px);
    padding: clamp(5px, 0.8vw, 7px) clamp(8px, 1.5vw, 12px);
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  }
  
  .site-header {
    padding: clamp(12px, 2.5vw, 16px) clamp(12px, 3vw, 16px);
  }
  
  .logo {
    height: clamp(28px, 4vw, 32px);
  }
  
  .stat-column-left .stat-number {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }
  
  .stats-images img {
    font-size: clamp(2.5rem, 15vw, 4rem);
    max-width: 95%;
  }
  
  .stats-grid article p {
    font-size: clamp(0.7rem, 3.5vw, 1rem);
  }
  
  .stat-two-columns {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .stat-column-right {
    align-items: center;
    text-align: center;
  }
  
  .stat-column-right p {
    text-align: center;
  }
  
  .contact-container {
    gap: 24px;
  }
  
  .contact-buttons {
    gap: 24px;
  }
  
  .contact-map {
    height: 300px;
  }
  
  .contact-btn svg {
    width: 80px;
    height: 80px;
  }
}

/* Финальное правило с максимальной специфичностью для гарантированного применения медленного transition */
a.contact-btn,
a.contact-btn:active,
a.contact-btn:focus,
a.contact-btn-whatsapp,
a.contact-btn-telegram,
a.contact-btn-phone,
a.contact-btn-email,
#contact .contact-container .contact-buttons .contact-btn,
#contact .contact-container .contact-buttons .contact-btn:active,
#contact .contact-container .contact-buttons .contact-btn:focus {
  transition-property: background-color, border-color, color, transform, box-shadow !important;
  transition-duration: 0.5s, 0.5s, 0.5s, 1.2s, 1.2s !important;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Для hover состояний убираем все задержки */
a.contact-btn:hover,
a.contact-btn-whatsapp:hover,
a.contact-btn-telegram:hover,
a.contact-btn-phone:hover,
a.contact-btn-email:hover,
#contact .contact-container .contact-buttons .contact-btn:hover {
  transition-property: background-color, border-color, color, transform, box-shadow !important;
  transition-duration: 0.5s, 0.5s, 0.5s, 1.2s, 1.2s !important;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94), cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transition-delay: 0s, 0s, 0s, 0s, 0s !important;
}



