/* ==========================================================================
   PCG Landing — стилистика корпоративного лендинга
   Цвета гармонируют с logo.svg (#CB1333)
   ========================================================================== */

:root {
  --color-primary: #CB1333;
  --color-primary-dark: #A00F29;
  --color-primary-light: #E8183F;
  --color-black: #1A1A1A;
  --color-gray-900: #2D2D2D;
  --color-gray-700: #4A4A4A;
  --color-gray-500: #6B7280;
  --color-gray-300: #D1D5DB;
  --color-gray-200: #E8EAED;
  --color-gray-100: #F2F5F8;
  --color-white: #FFFFFF;

  --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --edge-padding: clamp(20px, 4vw, 48px);
  --header-height: 72px;
  --section-title-size: clamp(28px, 4vw, 40px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), top 0.35s ease;
}

.header--hidden {
  top: calc(-1 * var(--header-height));
  pointer-events: none;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.header--scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--scrolled .header__link {
  color: var(--color-gray-900);
}

.header--scrolled .header__link:hover {
  color: var(--color-primary);
}

.header--scrolled .header__burger span {
  background: var(--color-gray-900);
}

.header--hero .header__link {
  color: var(--color-gray-900);
}

.header--hero .header__link:hover {
  color: var(--color-primary);
}

.header--hero .header__link--cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 18px;
}

.header--hero .header__link--cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.header--hero .header__burger span {
  background: var(--color-gray-900);
}

.header--hero .header__phone {
  color: var(--color-gray-900);
}

.header--hero .header__phone:hover {
  color: var(--color-primary);
}

.header--scrolled .header__phone {
  color: var(--color-gray-900);
}

.header--scrolled .header__phone:hover {
  color: var(--color-primary);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 var(--edge-padding);
}

.header__start {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-width: 0;
  flex: 1;
}

.header__end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.header__phone::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header__menu-phone {
  display: none;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 40px;
  width: auto;
  max-width: none;
}

.header__nav {
  display: flex;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__menu > li:not(.header__menu-phone) {
  display: flex;
  align-items: center;
}

.header__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--color-gray-900);
  border-radius: var(--radius-pill);
  transform: translateZ(0);
  transition: color var(--transition), background var(--transition);
}

.header__link:hover {
  color: var(--color-primary);
  font-weight: 500;
}

.header__link--cta {
  color: var(--color-primary);
  font-weight: 600;
  padding: 8px 18px;
}

.header--scrolled .header__link--cta {
  background: var(--color-primary);
  color: var(--color-white);
}

.header--scrolled .header__link--cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gray-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Sections — базовая структура
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section--stack {
  background-color: #1a1a1a;
}

.section--hero.section--stack {
  background-color: var(--color-white);
}

.section--slide-light.section--stack {
  background-color: var(--color-gray-100);
}

.section--slide-light--white.section--stack {
  background-color: var(--color-white);
}

.section--slide-dark.section--stack {
  background-color: var(--color-gray-900);
}

.mypcg-marquee {
  position: absolute;
  top: 0;
  right: 20px;
  left: auto;
  bottom: 0;
  z-index: 1;
  width: min(46%, 650px);
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.mypcg-marquee__track {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px;
  animation: mypcg-scroll 32s linear infinite;
  will-change: transform;
}

.mypcg-marquee__card {
  flex-shrink: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.mypcg-marquee__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  filter: blur(2px);
}

@keyframes mypcg-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mypcg-marquee__track {
    animation: none;
    transform: none;
  }
}

.section--layer {
  position: relative;
  isolation: isolate;
}

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section--hero {
  background-color: var(--color-white);
}

.section__bg--hero {
  background-color: var(--color-white);
}

.section__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.section__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.section__bg-photo.is-loaded {
  opacity: 1;
}

.section--slide-even .section__bg-photo {
  object-position: 72% center;
}

.section--slide-odd .section__bg-photo {
  object-position: 28% center;
}

.section__bg--about {
  background-color: var(--color-white);
  background-image: none;
}

.section__bg--expertise {
  background-color: transparent;
  background-image: none;
}

.section__bg--food {
  background-color: var(--color-white);
  background-image: none;
}

.section__bg--horeca {
  background-color: var(--color-gray-100);
  background-image: none;
}

.section__bg--training {
  background-color: var(--color-white);
  background-image: none;
}

.section__bg--products {
  background-color: var(--color-gray-100);
  background-image: none;
}

.section__bg--digital {
  background-color: var(--color-gray-900);
  background-image: none;
}

.section__bg--audit {
  background-color: var(--color-white);
  background-image: none;
}

.section--contact {
  background-color: var(--color-white);
  align-items: flex-start;
  overflow: visible;
}

.section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section__overlay--dark {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.section__overlay--dark-right {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.section__overlay--light {
  background: rgba(255, 255, 255, 0.82);
}

.section__overlay--accent {
  background: linear-gradient(
    135deg,
    rgba(160, 15, 41, 0.88) 0%,
    rgba(203, 19, 51, 0.75) 100%
  );
}

.section--slide .section__overlay--dark {
  background: linear-gradient(
    90deg,
    rgba(12, 12, 12, 0.84) 0%,
    rgba(12, 12, 12, 0.78) 42%,
    rgba(12, 12, 12, 0.28) 58%,
    rgba(12, 12, 12, 0.04) 74%,
    rgba(12, 12, 12, 0) 100%
  );
}

.section--slide .section__overlay--dark-right {
  background: linear-gradient(
    270deg,
    rgba(12, 12, 12, 0.84) 0%,
    rgba(12, 12, 12, 0.78) 42%,
    rgba(12, 12, 12, 0.28) 58%,
    rgba(12, 12, 12, 0.04) 74%,
    rgba(12, 12, 12, 0) 100%
  );
}

.section__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-height) + 48px) 24px 64px;
}

.section--light {
  background: var(--color-white);
}

.section--light .section__content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section--accent {
  background: var(--color-primary);
}

.section--directions {
  background: var(--color-white);
  min-height: auto;
}

.section--directions .section__content {
  padding: 80px 0 64px;
  max-width: none;
}

.section--awards.section--layer {
  background: var(--color-white);
}

.section__content--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--slide {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
}

.section--slide .section__content {
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 24px 72px;
}

.section--slide-light .section__bg-photo,
.section--slide-dark .section__bg-photo {
  inset: auto;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: min(58vw, 720px);
  max-height: 94%;
  object-fit: contain;
  object-position: right bottom;
}

.section--slide-light.section--slide-odd .section__bg-photo,
.section--slide-dark.section--slide-odd .section__bg-photo {
  right: auto;
  left: 0;
  object-position: left bottom;
}

.section--slide-light .direction-slide__title,
.section--slide-light .slide-group__title,
.section--slide-light .expertise-block__title,
.section--slide-light .result-block__title {
  color: var(--color-black);
  text-shadow: none;
}

.section--slide-light .direction-slide__lead {
  color: var(--color-gray-900);
  text-shadow: none;
}

.section--slide-light .direction-slide__text,
.section--slide-light .expertise-block__text,
.section--slide-light .place-list li,
.section--slide-light .assortment-list__text {
  color: var(--color-gray-700);
  text-shadow: none;
}

.section--slide-light .assortment-list__name,
.section--slide-light .result-list li {
  color: var(--color-black);
  text-shadow: none;
}

.section--awards {
  background: var(--color-white);
  min-height: auto;
  padding: 80px 0 64px;
  overflow: hidden;
}

.section__bg--awards {
  background-color: var(--color-white);
}

.section--awards .section__bg-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.section--awards .section__content {
  padding: 0;
}

.section--contact .section__content {
  padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   Typography & labels
   -------------------------------------------------------------------------- */

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.8);
}

.section-title {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 24px;
}

.section-title--light {
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.block-heading,
.about-layout__title,
.awards-heading,
.direction-slide__title,
.contact-block .section-title {
  position: relative;
}

.block-heading::after,
.about-layout__title::after,
.awards-heading::after,
.direction-slide__title::after,
.contact-block .section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section--approach::before,
.section--services::before,
.section--about::before,
.section--products::before,
.section--contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    rgba(203, 19, 51, 0.4) 22%,
    rgba(203, 19, 51, 0) 58%
  );
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  max-width: 780px;
}

.hero__mark {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--color-gray-700);
  margin-bottom: 16px;
}

.hero__text {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  color: var(--color-gray-700);
  margin-bottom: 32px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn--outline {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.72);
}

.scroll-hint {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
}

.scroll-hint__line {
  position: relative;
  display: block;
  overflow: hidden;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(74, 74, 74, 0.45), transparent);
  border-radius: 2px;
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 100%;
  height: 28px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-gray-900) 40%,
    var(--color-gray-900) 60%,
    transparent
  );
  animation: scroll-hint-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-hint-pulse {
  0% {
    top: -28px;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 80px;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--hero {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--hero:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--primary {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--outline {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
  margin-top: 24px;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--full {
  width: 100%;
}

.btn--slide {
  margin-top: 24px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--slide:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Directions overview (bento-cards with teaser + media)
   -------------------------------------------------------------------------- */

.directions-heading {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 0;
}

.directions-grid {
  --directions-gutter: max(24px, calc((100% - min(100%, var(--container-max))) / 2 + 24px));
  --directions-card-pad: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(210px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 40px;
  padding-inline: max(0px, calc(var(--directions-gutter) - var(--directions-card-pad)));
}

.directions-grid .direction-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.directions-grid .direction-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.directions-grid .direction-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.directions-grid .direction-card:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.directions-grid .direction-card:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.directions-grid .direction-card:nth-child(6) {
  grid-column: 1;
  grid-row: 3;
}

.directions-grid .direction-card:nth-child(7) {
  grid-column: 2 / span 2;
  grid-row: 3;
}

.direction-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: var(--directions-card-pad);
  background: var(--color-gray-100);
  border-radius: 24px;
  color: var(--color-black);
  transition: background var(--transition), transform 0.15s ease;
}

.direction-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 58%;
  z-index: 1;
}

.direction-card__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.direction-card__text {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-gray-700);
}

.direction-card__media {
  flex-shrink: 0;
  align-self: flex-end;
  width: min(42%, 200px);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 20px;
  background: rgba(203, 19, 51, 0.08);
  overflow: hidden;
}

.direction-card__media:has(img) {
  background: transparent;
}

.direction-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.direction-card:hover .direction-card__media img,
.direction-card:focus-visible .direction-card__media img {
  opacity: 1;
}

.direction-card--featured {
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 36px var(--directions-card-pad) 32px;
}

.direction-card--featured .direction-card__body {
  max-width: 90%;
  margin-top: auto;
  order: 2;
}

.direction-card--featured .direction-card__title {
  font-size: clamp(22px, 2.4vw, 32px);
}

.direction-card--featured .direction-card__media {
  align-self: center;
  width: min(72%, 280px);
  margin: 0 auto auto;
  order: 1;
}

.direction-card:hover {
  background: #e8edf2;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Slide panels — полноэкранные секции с контентом
   -------------------------------------------------------------------------- */

.slide-panel {
  width: 60%;
  max-width: none;
}

.slide-panel--left {
  margin-right: auto;
  margin-left: 0;
}

.slide-panel--right {
  margin-left: auto;
  margin-right: 0;
}

.slide-panel__inner {
  display: block;
}

.direction-slide__title {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.slide-panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}

.direction-slide__text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.direction-slide__lead {
  font-size: clamp(17px, 1.85vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.expertise-blocks {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 12px;
}

.slide-group {
  margin-top: 8px;
}

.slide-group .expertise-blocks {
  margin-top: 4px;
}

.slide-group__title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.expertise-block {
  padding-left: 18px;
  border-left: 3px solid var(--color-primary);
}

.expertise-block__title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.expertise-block__text {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.place-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.place-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.assortment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assortment-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assortment-list__name {
  font-size: clamp(16px, 1.65vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.assortment-list__text {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.result-block {
  margin-top: 12px;
}

.result-block__title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.result-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   About — две колонки: текст + видео
   -------------------------------------------------------------------------- */

.section--about {
  background: var(--color-white);
  min-height: auto;
}

.section--about .section__content {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.about-layout__content {
  position: relative;
  z-index: 2;
}

.about-layout__title {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 20px;
}

.about-layout__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-layout__body p {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--color-gray-900);
  margin: 0;
}

.about-layout__media {
  min-height: min(560px, 64vh);
}

.about-emblem-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.about-emblem {
  position: absolute;
  top: 50%;
  left: 48%;
  width: min(58vw, 820px);
  max-width: none;
  height: auto;
  opacity: 0.55;
  transform-origin: center center;
  filter: blur(8px) drop-shadow(0 18px 32px rgba(0, 0, 0, 0.12));
  animation: about-emblem-turn 18s ease-in-out infinite;
  will-change: transform;
}

@keyframes about-emblem-turn {
  0% {
    transform: translate3d(14%, -50%, 0) rotateY(-22deg);
  }
  40% {
    transform: translate3d(4%, calc(-50% - 14px), 0) rotateY(22deg);
  }
  70% {
    transform: translate3d(22%, calc(-50% + 10px), 0) rotateY(-10deg);
  }
  100% {
    transform: translate3d(14%, -50%, 0) rotateY(-22deg);
  }
}

/* --------------------------------------------------------------------------
   Content cards
   -------------------------------------------------------------------------- */

.content-block {
  max-width: 900px;
}

.content-block--on-bg {
  max-width: 680px;
}

.content-card {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.content-card--wide {
  max-width: 100%;
}

.content-card--glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.content-card--accent {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  box-shadow: var(--shadow-md);
}

.content-card__text {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--color-gray-700);
}

.content-card__text--light {
  color: rgba(255, 255, 255, 0.95);
}

/* --------------------------------------------------------------------------
   Card sections — подход, кухня, услуги, проблемы, продукция
   -------------------------------------------------------------------------- */

.section--cards {
  min-height: auto;
  background: var(--color-white);
  align-items: flex-start;
  overflow: hidden;
}

.section--cards .section__content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section--muted {
  background: var(--color-gray-100);
}

.block-heading {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 32px;
}

.section-lead {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
  color: var(--color-gray-700);
  max-width: 720px;
  margin: 0 0 32px;
}

.section-lead--after {
  margin: 32px 0 0;
  max-width: 820px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid--6,
.card-grid--9 {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.service-card,
.problem-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.section--muted .info-card,
.section--muted .problem-card {
  background: var(--color-white);
}

.section--cards:not(.section--muted) .service-card {
  background: var(--color-gray-100);
  box-shadow: none;
}

.info-card__icon,
.service-card__icon,
.problem-card__icon,
.step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-primary);
  background: rgba(203, 19, 51, 0.08);
  border-radius: 14px;
}

.info-card__icon svg,
.service-card__icon svg,
.problem-card__icon svg,
.step-card__icon svg {
  width: 24px;
  height: 24px;
}

.info-card__title,
.service-card__title,
.problem-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-black);
}

.service-card__text,
.problem-card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* Approach slider */

.section--approach .section__content--full {
  padding-left: 0;
  padding-right: 0;
}

.section--approach .container .block-heading {
  margin-bottom: 8px;
}

.approach-stage {
  --approach-gutter: max(24px, calc((100% - min(100%, var(--container-max))) / 2 + 24px));
  margin-top: 28px;
}

.approach-slider {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.approach-slider.is-dragging {
  cursor: grabbing;
}

.approach-slider__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 8px var(--approach-gutter) 12px;
  will-change: transform;
}

.step-card {
  flex: 0 0 min(280px, 78vw);
  width: min(280px, 78vw);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 240px;
}

.step-card__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-700);
}

.approach-note {
  margin-top: 28px;
  max-width: 860px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
  color: var(--color-gray-700);
}

/* Products tabs + carousel */

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.product-tabs__btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-gray-900);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.product-tabs__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-tabs__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.product-slider {
  display: block;
  position: relative;
  --products-gutter: max(24px, calc((100vw - min(100vw, var(--container-max))) / 2 + 24px));
}

.product-slider__viewport {
  overflow: hidden;
  min-width: 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.product-slider__viewport.is-dragging {
  cursor: grabbing;
}

.product-slider__track {
  display: none;
  gap: 20px;
  width: max-content;
  padding-left: var(--products-gutter);
  padding-right: var(--products-gutter);
}

.product-slider__track.is-active {
  display: flex;
  transition: transform 0.4s ease;
}

.product-card {
  flex: 0 0 clamp(220px, 18.5vw, 280px);
  width: clamp(220px, 18.5vw, 280px);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  min-width: 0;
  cursor: default;
  pointer-events: none;
}

.product-card__media {
  aspect-ratio: 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 50%;
  background: #f3f3f3;
}

.product-card__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.product-card__title {
  padding: 16px 8px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-black);
}

.product-card__text {
  padding: 0 18px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-gray-700);
}

.product-slider__arrow {
  position: absolute;
  top: calc(clamp(220px, 18.5vw, 280px) / 2);
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gray-200);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-gray-900);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.product-slider__arrow--prev {
  left: 16px;
}

.product-slider__arrow--next {
  right: 16px;
}

.product-slider__arrow svg {
  width: 20px;
  height: 20px;
}

.product-slider__arrow:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.product-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.product-slider__dots .awards-dots__dot,
.product-dots__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-gray-300);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.product-dots__dot:hover,
.product-dots__dot.is-active {
  background: var(--color-primary);
}

.product-dots__dot.is-active {
  transform: scale(1.2);
}

.contact-form__hint {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-700);
}

.quote-form__textarea {
  resize: vertical;
  min-height: 96px;
}

/* --------------------------------------------------------------------------
   Awards — кубок на фоне и волна карточек-слайдер
   -------------------------------------------------------------------------- */

.section--awards .section__content > .container {
  position: relative;
  z-index: 3;
}

.awards-heading {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 8px;
}

.awards-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
  --awards-gutter: max(24px, calc((100% - min(100%, var(--container-max))) / 2 + 24px));
}

.awards-slider {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 48px 0 64px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  user-select: none;
}

.awards-slider::-webkit-scrollbar {
  display: none;
}

.awards-slider.is-dragging {
  cursor: grabbing;
}

.awards-slider__track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: max-content;
  padding: 0 var(--awards-gutter);
}

.award-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 min(300px, 78vw);
  width: min(300px, 78vw);
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--transition), box-shadow var(--transition);
}

.awards-slider__track .award-card:nth-child(1) { margin-top: 108px; }
.awards-slider__track .award-card:nth-child(2) { margin-top: 0; }
.awards-slider__track .award-card:nth-child(3) { margin-top: 176px; }
.awards-slider__track .award-card:nth-child(4) { margin-top: 32px; }
.awards-slider__track .award-card:nth-child(5) { margin-top: 128px; }

.award-card:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.12);
}

.award-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #606981;
  background: none;
  border-radius: 0;
}

.award-wreath-sprite {
  position: absolute;
  width: 14px;
  height: 34px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.award-card__wreath {
  flex-shrink: 0;
  width: 14px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.award-card__wreath--right {
  transform: scaleX(-1);
}

.award-card__title {
  flex: 1;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-black);
}

.award-card__date {
  align-self: flex-end;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-500);
  line-height: 1;
}

.awards-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.awards-dots__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-gray-300);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.awards-dots__dot:hover,
.awards-dots__dot.is-active {
  background: var(--color-primary);
}

.awards-dots__dot.is-active {
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.contact-block .section-title {
  margin-bottom: 0;
}

.contact-block__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-details__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-details__value {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-gray-900);
}

.contact-details__value--link {
  width: fit-content;
  color: var(--color-gray-900);
  transition: color var(--transition);
}

.contact-details__value--link:hover {
  color: var(--color-primary);
}

.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
}

.contact-map__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px 20px;
  align-items: end;
}

.contact-form__field {
  min-width: 0;
}

.contact-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.contact-form__input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-gray-900);
  background: var(--color-gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.contact-form__input::placeholder {
  color: var(--color-gray-500);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.contact-form__submit {
  height: 52px;
  padding-inline: 36px;
  white-space: nowrap;
}

.contact-form__note {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--edge-padding);
}

.footer__logo {
  margin-bottom: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-gray-500);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-gray-700);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: min(520px, calc(100vw - 40px));
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: cookie-banner-in 0.4s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-gray-900);
}

.cookie-banner__more {
  display: block;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__more:hover {
  color: var(--color-primary-dark);
}

.cookie-banner__agree {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Quote panel
   -------------------------------------------------------------------------- */

.quote-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1080;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(203, 19, 51, 0.28);
  transition: bottom 0.2s ease, opacity 0.2s ease;
}

.quote-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 1180;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.quote-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-overlay[hidden] {
  display: none;
}

.quote-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--color-white);
  box-shadow: -16px 0 48px rgba(26, 26, 26, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow: hidden;
}

.quote-panel.is-open {
  transform: translateX(0);
}

.quote-panel[hidden] {
  display: none;
}

.quote-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 28px 24px 16px;
}

.quote-panel__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
}

.quote-panel__close {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-gray-100);
  cursor: pointer;
}

.quote-panel__close:hover {
  background: var(--color-gray-200);
}

.quote-panel__close span,
.quote-panel__close span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--color-gray-900);
  border-radius: 1px;
}

.quote-panel__close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.quote-panel__close span::before {
  content: "";
  transform: translate(-50%, -50%) rotate(90deg);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 32px;
}

.quote-form__field {
  display: flex;
  flex-direction: column;
}

.quote-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.quote-form__input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-gray-900);
  background: var(--color-gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.quote-form__input::placeholder {
  color: var(--color-gray-500);
}

.quote-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.quote-form__input.is-invalid {
  border-color: var(--color-primary);
}

.quote-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%234A4A4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.quote-form__area {
  position: relative;
}

.quote-form__area .quote-form__input {
  padding-right: 52px;
}

.quote-form__unit {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-500);
  pointer-events: none;
}

.quote-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-gray-700);
  cursor: pointer;
}

.quote-form__consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-primary);
}

.quote-form__consent.is-invalid input {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

body.is-quote-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Scroll reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.direction-card.reveal {
  transition: opacity 0.55s ease, transform 0.55s ease, background var(--transition);
}

.direction-card.reveal.is-visible {
  transition: opacity 0.55s ease, transform 0.15s ease, background var(--transition);
}

.direction-card.reveal.is-visible:hover,
.direction-card.reveal.is-visible:focus-visible {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .section__bg-video {
    display: none;
  }

  .section__bg--hero {
    background-image: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 50%, #3a3a3a 100%);
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .direction-card.reveal,
  .direction-card.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: background var(--transition);
  }

  .header {
    transition: background var(--transition), box-shadow var(--transition);
  }

  .cookie-banner {
    animation: none;
  }

  .scroll-hint__line::after {
    animation: none;
    display: none;
  }

  .quote-overlay,
  .quote-panel,
  .quote-fab {
    transition: none;
  }

  .product-slider__track.is-active {
    transition: none;
  }

  .about-emblem {
    animation: none;
    transform: translate3d(8%, -50%, 0) rotateY(-8deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
  .scroll-hint {
    display: block;
  }
}

@media (max-width: 1024px) {
  .card-grid--6,
  .card-grid--9 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex: 0 0 clamp(200px, 28vw, 240px);
    width: clamp(200px, 28vw, 240px);
  }

  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form__submit {
    width: 100%;
    grid-column: 1 / -1;
  }

  .header__end > .header__phone:not(.header__phone--menu) {
    font-size: 13px;
  }

  .header__menu {
    gap: 0;
  }

  .header__link {
    padding: 8px 8px;
    font-size: 13px;
  }

  .awards-stage {
    min-height: 560px;
  }

  .directions-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .directions-grid .direction-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .direction-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 220px;
    padding: var(--directions-card-pad);
  }

  .direction-card--featured .direction-card__body {
    max-width: 58%;
    margin-top: 0;
    order: 0;
  }

  .direction-card--featured .direction-card__title {
    font-size: clamp(20px, 2.2vw, 28px);
  }

  .direction-card--featured .direction-card__media {
    align-self: flex-end;
    width: min(42%, 200px);
    margin: 0;
    order: 0;
  }

  .slide-panel--right {
    margin-left: auto;
  }

  .about-layout {
    gap: 36px;
  }

  .about-layout__media {
    min-height: min(420px, 52vh);
  }
}

@media (max-width: 1399px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: var(--color-white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .header__nav .header__link {
    display: flex;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--color-gray-900) !important;
    border-radius: var(--radius-sm);
    transform: none;
    white-space: normal;
  }

  .header__nav .header__link:hover {
    background: var(--color-gray-100);
  }

  .header__burger {
    display: flex;
  }

  .header__end .header__cta {
    width: auto;
    margin-top: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  .header--hero .header__end .header__link--cta,
  .header--scrolled .header__end .header__link--cta {
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --section-title-size: 26px;
  }

  .header__end > .header__phone:not(.header__phone--menu) {
    display: none;
  }

  .header__menu-phone {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .header__phone--menu {
    display: inline-flex;
    font-size: 18px;
    color: var(--color-primary) !important;
  }

  .section {
    min-height: auto;
  }

  .section--hero {
    min-height: 55vh;
    min-height: 55dvh;
  }

  .section--hero .section__bg-video {
    object-position: center 35%;
  }

  .hero__mark {
    width: min(100%, 168px);
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .hero__text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section__content {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 32px;
  }

  .section--light .section__content,
  .section--cards .section__content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .card-grid--6,
  .card-grid--9 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card,
  .service-card,
  .problem-card {
    padding: 22px 20px;
  }

  .product-slider {
    gap: 8px;
  }

  .product-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .product-slider__arrow--prev {
    left: 8px;
  }

  .product-card {
    flex: 0 0 min(220px, 72vw);
    width: min(220px, 72vw);
  }

  .product-card__media {
    padding: 22px;
  }

  .approach-stage {
    --approach-gutter: 16px;
  }

  .step-card {
    flex-basis: min(260px, 82vw);
    width: min(260px, 82vw);
    min-height: 220px;
  }

  .section--about .section__content {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 36px;
  }

  .section--directions .section__content {
    padding: 40px 0 32px;
  }

  .directions-grid {
    --directions-gutter: 16px;
    --directions-card-pad: 20px;
    margin-top: 24px;
    gap: 12px;
    padding-inline: 16px;
  }

  .content-card {
    padding: 28px 24px;
  }

  .direction-card {
    min-height: 168px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .directions-grid .direction-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .direction-card--featured {
    grid-column: 1;
    flex-direction: row;
    min-height: 168px;
  }

  .direction-card--featured .direction-card__body,
  .direction-card__body {
    max-width: 62%;
  }

  .direction-card--featured .direction-card__title,
  .direction-card__title {
    font-size: 20px;
  }

  .direction-card--featured .direction-card__media,
  .direction-card__media {
    width: 88px;
    min-width: 88px;
    border-radius: 16px;
  }

  .section--slide {
    min-height: auto;
    align-items: stretch;
  }

  .section--slide .slide-panel {
    width: 100%;
    max-width: none;
  }

  .section--slide .section__overlay--dark,
  .section--slide .section__overlay--dark-right {
    background: linear-gradient(
      180deg,
      rgba(12, 12, 12, 0.5) 0%,
      rgba(12, 12, 12, 0.78) 36%,
      rgba(12, 12, 12, 0.88) 100%
    );
  }

  .section--slide-even .section__bg-photo,
  .section--slide-odd .section__bg-photo,
  .section--slide-light .section__bg-photo,
  .section--slide-dark .section__bg-photo {
    left: auto;
    right: 0;
    object-position: right bottom;
    max-width: 48%;
    max-height: 150px;
  }

  .section--slide .section__content,
  .section--slide-light .section__content,
  .section--slide-dark .section__content {
    align-items: flex-start;
    padding: calc(var(--header-height) + 16px) 20px 132px;
  }

  .mypcg-marquee {
    top: auto;
    left: 0;
    width: 100%;
    height: 200px;
    max-width: none;
  }

  .mypcg-marquee__track {
    padding: 24px 28px 32px;
  }

  #digital .section__content {
    padding-bottom: 220px;
  }

  .slide-panel--left,
  .slide-panel--right {
    margin-left: 0;
    margin-right: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-layout__media,
  .about-emblem-wrap {
    display: none;
  }

  .awards-stage {
    min-height: 360px;
  }

  .awards-slider {
    padding: 16px 0 40px;
  }

  .awards-slider__track .award-card:nth-child(1) { margin-top: 64px; }
  .awards-slider__track .award-card:nth-child(2) { margin-top: 0; }
  .awards-slider__track .award-card:nth-child(3) { margin-top: 96px; }
  .awards-slider__track .award-card:nth-child(4) { margin-top: 20px; }
  .awards-slider__track .award-card:nth-child(5) { margin-top: 72px; }

  .award-card {
    min-height: 200px;
    padding: 20px;
  }

  .contact-block {
    gap: 24px;
  }

  .section--contact .section__content {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 40px;
  }

  .contact-block__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-map {
    min-height: 260px;
    height: 260px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
  }

  .footer__nav {
    display: none;
  }

  .quote-fab {
    padding: 12px 18px;
    font-size: 14px;
    white-space: normal;
    max-width: min(260px, calc(100vw - 40px));
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 1216px) {
  .directions-grid {
    --directions-card-pad: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .directions-grid {
    padding-inline: 16px;
    --directions-card-pad: 18px;
  }

  .hero__title {
    font-size: 24px;
  }
}
