/* ===== Performance & Accessibility Optimizations ===== */
/* Improve paint performance with CSS containment */
.gallery-item {
  contain: layout style paint;
}

.pricing-card {
  contain: layout style paint;
}

.about-section {
  contain: layout style paint;
}

/* Force GPU layer for expensive animations */
.pricing-card:hover {
  will-change: transform, box-shadow, background;
}

body {
  margin: 0;
  padding: 0;
}

/* ===== COLOR VARIABLES (light-only now) ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-surface: #ffffff;
  --color-surface-alt: #fbfaf9;
  --color-border: rgba(0,0,0,0.12);
  --color-border-strong: rgba(0,0,0,0.22);
  --color-text: #111111;
  --color-text-soft: rgba(0,0,0,0.72);
  --color-text-faint: rgba(0,0,0,0.55);
  --color-accent: #E8D2A2;
  --color-accent-rgb: 232,210,162;
  --color-accent-alt: #d2b981;
  --color-danger: #d9534f;
  --color-focus-ring: rgba(232,210,162,0.55);
  --shadow-elev-1: 0 2px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.08);
  --shadow-elev-2: 0 6px 18px -5px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.10);
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px;
  /* Homepage semantic tokens */
  --hero-bg-image: url('../assets/background.webp');
  --hero-overlay-light: rgba(0,0,0,0.15);
  --hero-heading-color: #ffffff;
  --hero-subheading-color: #ffffff;
  --glass-bg-light: rgba(255,255,255,0.12);
  --glass-bg-hover-light: rgba(255,255,255,0.18);
  --glass-border-light: rgba(255,255,255,0.28);
  --glass-border-hover-light: rgba(255,255,255,0.4);
  --carousel-surface: var(--color-bg-alt);
  --carousel-slide-bg: var(--color-bg-alt);
  --carousel-slide-gradient: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  --about-section-bg: var(--color-bg);
  --about-card-bg: #efefef;
  --about-card-bg-hover: #f5f5f5;
  --about-card-text: #2C2C2C;
  --about-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --about-card-shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.2);
  --counter-color: #000;
  color-scheme: light;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'RF Dewi Extended', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}

@font-face {
  font-family: 'RF Dewi Extended';
  font-weight: 300;
  font-style: normal;
  src: url('../fonts/rf-dewi-extended-light.otf') format('opentype');
}
@font-face {
  font-family: 'RF Dewi Extended';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/rf-dewi-extended-regular.otf') format('opentype');
}
@font-face {
  font-family: 'RF Dewi Extended';
  font-weight: 600;
  font-style: normal;
  src: url('../fonts/rf-dewi-extended-semibold.otf') format('opentype');
}
@font-face {
  font-family: 'RF Dewi Extended';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/rf-dewi-extended-semibold.otf') format('opentype');
}

/* ===== КРАСИВЫЕ АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInStaggered {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backgroundZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg-image) center/cover no-repeat;
    color: var(--hero-heading-color);
    font-family: 'RF Dewi Extended', sans-serif;
    height: 100vh;
    transition: background-color .6s ease, color .6s ease;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('../assets/background.webp') center/cover no-repeat;
    animation: backgroundZoom 20s ease-in-out infinite alternate;
    z-index: -1;
  }
  .hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-light);
    z-index: 0;            /* кладём под контент */
    pointer-events: none;  /* не перехватывает клики */
  }
    .hero__content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
  }
  
  .hero__content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 0 0 16px 0;
    font-family: 'RF Dewi Extended', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
  color: var(--hero-heading-color);
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    animation: fadeInUp 1.4s ease-out 0.2s both;
  }
  
  .hero__content p {
    font-size: 24px;
    margin: 0;
    font-family: 'RF Dewi Extended', sans-serif;
    font-weight: 300;
  color: var(--hero-subheading-color);
    animation: fadeInUp 1.6s ease-out 0.4s both;
  }
  /* Pricing strip: фиксируем внизу hero по центру (desktop) */
  .hero__pricing {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: stretch;
    gap: 18px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.5s both;
    padding: 0 40px; /* небольшая внутренняя защита от краёв */
    pointer-events: none; /* слой клики пропускает кроме карточек */
  }
  .hero__pricing .pricing-card { pointer-events: auto; }
  
  .hero__pricing .pricing-card {
    animation: slideInStaggered 0.8s ease-out both;
  }
  
  .hero__pricing .pricing-card:nth-child(1) {
    animation-delay: 0.8s;
  }
  
  .hero__pricing .pricing-card:nth-child(2) {
    animation-delay: 1.0s;
  }
  
  .hero__pricing .pricing-card:nth-child(3) {
    animation-delay: 1.2s;
  }
  
  .hero__pricing .pricing-card:nth-child(4) {
    animation-delay: 1.4s;
  }
  .pricing-card {
  position: relative;
  width: 270px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 15px 26px 26px 26px;
  border-radius: 12px;
  text-align: left;
  /* improved hover foundation */
  transform: translateY(0) scale(1);
  transform-origin: 50% 50%;
  transition: all 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color .45s ease, border-color .45s ease, color .45s ease, box-shadow .6s ease;
  will-change: transform, box-shadow, background;
  color: inherit; /* наследуем цвет текста из hero */
}

@media (hover:hover) and (pointer:fine) {
  .hero__pricing .pricing-card:hover,
  .hero__pricing .pricing-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
  background: var(--glass-bg-hover-light);
  border-color: var(--glass-border-hover-light);
  }
  
  .hero__pricing .pricing-card:hover .type {
    transform: translateY(-2px);
    color: #E8D2A2;
  }
  
  .hero__pricing .pricing-card:hover .price,
  .hero__pricing .pricing-card:hover .area {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pricing .pricing-card { transition: none; }
  .hero__pricing .pricing-card, 
  .hero__content,
  .hero__content h1,
  .hero__content p,
  .carousel,
  .carousel__nav,
  .carousel__counter,
  .about-project,
  .about-project__title,
  .about-project__subtitle,
  .about-project__cards,
  .about-project__image,
  .about-project__cards .card:nth-child(1),
  .about-project__cards .card:nth-child(2),
  .about-project__cards .card:nth-child(3) {
    animation: none !important;
  }
  
  .hero::before {
    animation: none !important;
  }
}
  .pricing-card .type {
    display: block;
    font-size: 27px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 40px;
    text-transform: uppercase;
    transition: all 300ms ease;
  }
  .pricing-card .price {
    position: absolute;
    bottom: 20px;
    left: 26px;
    font-size: 16px;
    transition: transform 300ms ease;
  }
  .pricing-card .area {
    position: absolute;
    bottom: 20px;
    right: 26px;
    font-size: 16px;
    transition: transform 300ms ease;
  }
  .hero__bank {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 1;
  }

.pricing-card-ad {
  background: var(--color-surface);
  position: relative;
  border: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pricing-card-ad img {
  width: 90%;
  height: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



/* Стили для секции с каруселью */
.carousel {
  max-width: 1200px;
  margin: 60px auto 48px;
  position: relative;
  animation: fadeInUp 0.9s ease-out;
  /* высоту даём контейнеру внутри, если нужно */
}
.carousel__track-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 540px; /* разумная базовая высота */
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  background: var(--carousel-surface); /* fallback */
}

.carousel__track-container:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--carousel-slide-bg); /* fallback на случай проблем с изображением */
}

.carousel__slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--carousel-slide-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.carousel__slide:hover::before {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  /* Улучшаем качество отрисовки */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.carousel__slide:hover img {
  transform: scale(1.02);
}
.carousel__nav {
  position: static;
  float: right;
  margin: 16px 20px 0 0;
  display: flex;
  gap: 10px;
  animation: fadeInRight 1s ease-out 0.3s both;
}
.carousel__button {
  background: rgba(var(--color-accent-rgb),0.05);
  border: 1px solid var(--color-border);
  padding: 8px;
  cursor: pointer;
  display: inline-block;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel__button:hover {
  background: rgba(232, 210, 162, 0.95);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel__button:active {
  transform: translateY(0) scale(0.98);
}

.carousel__button img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.carousel__button:hover img {
  transform: scale(1.1);
}
.carousel__button--prev img {
  transform: rotate(180deg);
}
.carousel__counter {
  position: static;
  float: left;
  margin: 16px 0 0 20px;
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--counter-color);
  animation: fadeInLeft 1s ease-out 0.3s both;
  transition: color 0.3s ease;
}

.carousel__counter:hover {
  color: var(--color-accent);
}
.carousel__button:focus,
.carousel__button:active {
  outline: none;
}
.carousel::after {
  content: "";
  display: table;
  clear: both;
}


/* Секция "О проекте" */
.about-project {
  padding: 60px 20px;
  background: var(--about-section-bg);
  animation: fadeInUp 1s ease-out;
  transition: background-color .6s ease, color .6s ease;
}
.about-project__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 32px;
  row-gap: 16px;
}

/* Раскладка: слева — заголовок/подзаголовок/карточки, справа — фото */
.about-project__title    { 
  grid-column: 1; 
  grid-row: 1; 
  animation: fadeInLeft 1s ease-out 0.2s both;
}
.about-project__subtitle { 
  grid-column: 1; 
  grid-row: 2; 
  animation: fadeInLeft 1s ease-out 0.4s both;
}
.about-project__cards    { 
  grid-column: 1; 
  grid-row: 3; 
  animation: fadeInLeft 1s ease-out 0.6s both;
}
.about-project__image    { 
  grid-column: 2; 
  grid-row: 3; 
  align-self: start; 
  animation: fadeInRight 1s ease-out 0.8s both;
}

.about-project__image img {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-project__image:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-project__info {
  display: contents;             /* разворачиваем внутрь контейнера */
}
.about-project__title { order: 0; }
.about-project__subtitle { order: 1; }
.about-project__image {
  order: 2;                      /* на всякий случай дублируем */
  align-self: start;
  max-width: 100%;
  margin: 8px 0 12px;
}
.about-project__cards { order: 3; }

.about-project__image {
  order: 2;                      /* на всякий случай дублируем */
  align-self: start;
  max-width: 100%;
  margin: 8px 0 12px;
}
.about-project__title {
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 16px;
  color: var(--color-text);
}
.about-project__subtitle {
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 300;
  font-size: 18px;
  margin: 0 0 24px;
  color: var(--about-card-text);
  /* max-width удалён для полной ширины */
}
.about-project__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-project__cards .card:nth-child(1) {
  animation: slideInStaggered 0.8s ease-out 0.8s both;
}

.about-project__cards .card:nth-child(2) {
  animation: slideInStaggered 0.8s ease-out 1.0s both;
}

.about-project__cards .card:nth-child(3) {
  animation: slideInStaggered 0.8s ease-out 1.2s both;
}

.card {
  background: var(--about-card-bg);
  border-radius: 12px;
  box-shadow: var(--about-card-shadow);
  padding: 24px;
  max-width: 500px; /* ограничиваем ширину карточки */
  margin: 0;        /* выравниваем по левому краю */
  transition: background-color .45s ease, color .45s ease, box-shadow .6s ease, transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  background: var(--about-card-bg-hover);
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(5deg);
}

.card:hover .card__title {
  color: #E8D2A2;
}

.card__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: top; /* выравнивание по верхнему краю */
  margin-right: 8px;
  margin-top: 0px; /* небольшое смещение вверх */
  transition: all 0.3s ease;
}
.card__title {
  display: inline-block;
  vertical-align: middle;
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 16px;
  transition: color 0.3s ease;
}
.card__text {
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--about-card-text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.card__list {
  margin: 0 0 12px 32px;
  padding: 0;
  list-style: disc;
  font-family: 'RF Dewi Extended', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--about-card-text);
  line-height: 1.5;
}
.about-project__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0; /* без скругления, как просили */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* визуально как отдельная карточка */
  display: block;
}


/* Уменьшаем высоту последней карточки */
.about-project__cards .card:last-child {
  padding: 20px;
}


/* Упростили позиционирование изображения: без смещений */
.about-project__container { position: relative; overflow: visible; }


/* Адаптив для экранов с соотношением сторон не менее 16:9 и шириной от 1600px */
@media screen and (min-width: 1600px) and (min-aspect-ratio: 16/9) {
  .about-project__info {
    margin-left: -200px; /* смещаем карточки влево */
  }
  .about-project__cards {
    margin-left: 30px;
    gap: 15px;
  }
  .card__text {
    line-height: 1.6;
    font-size: 16px;
  }
  .card__title {
    font-size: 24px;
  }
  .about-project__image { max-width: 100%; }

  .pricing-card{
    width: 330px; /* увеличиваем ширину карточки */
  }

  .hero__content h1 {
    font-size: 78px;
    line-height: 1.1;
    margin: 0;
    font-family: 'RF Dewi Extended', sans-serif;
    font-weight: 600;
    letter-spacing: 6%;
  }
  .hero__content p {
    font-size: 32px;
    margin-top: 10px;
    font-family: 'RF Dewi Extended', sans-serif;
    font-weight: 300;
  }
  
  .carousel {
    max-width: 1600px; /* увеличиваем ширину карусели */
  }
  .carousel__track-container {
    height: 850px;
  }
}

/* Page fade-in on load (0.5s) */
html.js body {
  opacity: 0;
  transition: opacity 500ms ease;
}
html.is-loaded body {
  opacity: 1;
}

/* Уважение системной настройки «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html.js body {
    opacity: 1;
    transition: none;
  }
}

/* ===== Responsive: tablets & mobile ===== */
@media (max-width: 1200px) {
  .hero__content h1 { font-size: 56px; }
  .hero__content p { font-size: 22px; }
  .hero__pricing { bottom: 40px; gap: 14px; }
  .pricing-card { width: 240px; }
  .about-project__container { gap: 24px; }
  .about-project__title { font-size: 32px; }
  .about-project__subtitle { font-size: 16px; }
  .about-project__container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .about-project__image { margin-top: 24px; }
}

@media (max-width: 900px) {
  /* уменьшить боковые поля секции на мобильных/планшетах */
  .about-project { padding-left: 12px; padding-right: 12px; }
  .about-project__container { margin-left: 0; margin-right: 0; width: 100%; }

  /* About-project: делаем фото full‑bleed на планшетах/мобилках */
  .about-project__image { margin-left: 0; margin-right: 0; margin-top: 16px; }

  /* Hero: переводим в поток, контент центрируем */
  .hero { height: auto; min-height: 100vh; padding: 120px 0 40px; }
  .hero__content { 
    position: static; 
    top: auto; 
    left: auto; 
    transform: none; 
    text-align: center; 
    padding: 0 20px;
    margin-bottom: 40px;
  }
  .hero__content h1 { font-size: 40px; letter-spacing: 0.03em; }
  .hero__content p { font-size: 18px; }

  /* Pricing: в поток, центрируем */
  .hero__pricing { 
    position: static;
    transform: none;
    margin: 0 auto 32px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 900px;
    padding: 0 12px;
  }
  .pricing-card { width: calc(50% - 8px); min-width: 200px; }
  .pricing-card .type { font-size: 22px; margin-bottom: 20px; }
  .pricing-card .price, .pricing-card .area { position: static; font-size: 14px; display: inline-block; margin-right: 12px; }

  /* Mobile refinement: hero heading & spacing */
  .hero__content h1 { line-height: 1.18; margin-bottom: 14px; }
  .hero__content p { margin-bottom: 20px; }
  .hero__pricing { margin-top: 0; }

  /* Mobile pricing cards polish */
  .hero__pricing { gap: 14px; }
  .hero__pricing .pricing-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px 18px 18px;
    position: relative;
    width: 100%;
  }
  .hero__pricing .pricing-card::before {
    content: '';
    position: absolute;
    left: 0; top: 10px; bottom: 10px; width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg,#E8D2A2 0%, rgba(255,255,255,0.4) 100%);
    opacity: 0.85;
  }
  .hero__pricing .pricing-card .type { margin-bottom: 12px; font-size: 20px; }
  .hero__pricing .pricing-card .price, 
  .hero__pricing .pricing-card .area { margin-right: 0; }

  /* Remove translate hover animations on mobile pricing */
  @media (hover:none) {
    .hero__pricing .pricing-card:hover { transform: none; }
  }

  /* Carousel mobile layout refinements */
  .carousel { margin: 32px auto 28px; }
  .carousel__track-container {
    height: auto;
    aspect-ratio: 4/3;
    max-height: 360px;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
  }
  .carousel__track { height: 100%; }
  .carousel__slide img { object-position: center; }
  .carousel__counter { position: absolute; top: 10px; left: 14px; margin: 0; color: var(--hero-heading-color); text-shadow: 0 2px 6px rgba(0,0,0,0.4); z-index: 3; }
  .carousel__nav { position: absolute; bottom: 12px; right: 12px; margin: 0; float: none; display: flex; }
  .carousel__button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; }
  .carousel__button img { width: 22px; height: 22px; }

  /* Performance: lessen animations & shadows */
  .about-project__cards .card, .hero__pricing .pricing-card { transition: none; }
  .about-project__cards .card { box-shadow: 0 3px 10px -3px rgba(0,0,0,0.25); }

  /* Footer tightening */
  footer, .site-footer { padding-top: 40px !important; padding-bottom: 40px !important; }
  .site-footer nav, .site-footer .links { row-gap: 4px; }

  /* (Dark theme component tweaks moved to global section) */

  /* Carousel: по ширине экрана, ниже высота */
  .carousel { max-width: 100%; margin: 40px auto 32px; padding: 0 16px; }
  .carousel__track-container { height: 360px; }
  .carousel__nav { float: right; margin: 12px 16px 0 0; display: block; }
  .carousel__counter { float: left; margin: 12px 0 0 16px; text-align: left; }

  /* About-project: мобильная раскладка в одну колонку с нужным порядком */
  .about-project__container { grid-template-columns: 1fr; }
  .about-project__title    { grid-column: 1; grid-row: 1; }
  .about-project__subtitle { grid-column: 1; grid-row: 2; }
  .about-project__cards    { grid-column: 1; grid-row: 3; }
  .about-project__image    { grid-column: 1; grid-row: 4; }
}

@media (max-width: 600px) {
  /* ещё немного уменьшить поля на телефонах */
  .about-project { padding-left: 10px; padding-right: 10px; }

  /* About-project: на телефонах — тоже full‑bleed */
  .about-project__image { margin-left: 0; margin-right: 0; }

  .hero { padding: 104px 0 28px; min-height: 92vh; }
  .hero::before { animation: none; transform: none !important; }
  .hero { background-position: center top; }
  .hero__content h1 { font-size: 32px; color: var(--hero-heading-color); margin-top: 20px; }
  .hero__content p { font-size: 16px; }

  .pricing-card { width: 92%; max-width: 360px; padding: 14px 18px 18px; margin: 0 auto; }
  .pricing-card .type { font-size: 20px; margin-bottom: 14px; }

  /* Override for single-column pricing cards */
  .hero__pricing { padding: 0 10px; gap: 12px; }
  .hero__pricing .pricing-card { width: 100%; max-width: 480px; }
  .hero__pricing .pricing-card::before { left: 0; top: 8px; bottom: 8px; }

  .carousel__track-container { aspect-ratio: 4/3; max-height: 300px; }
  .carousel__button { width: 44px; height: 44px; }
  .carousel__button img { width: 20px; height: 20px; }

  /* Footer more compact */
  footer, .site-footer { padding-top: 32px !important; padding-bottom: 32px !important; }
  .site-footer button, .site-footer a.button { width: 100%; max-width: 320px; }

  /* Optional: reduce blur & shadow for nav moved here (reinforced with JS styles) */
  .hero__nav { box-shadow: 0 3px 12px -4px rgba(0,0,0,0.4); }

  .carousel__track-container { height: 260px; }
  .carousel__button img { width: 28px; height: 28px; }
  .carousel__counter { font-size: 16px; }

  .about-project__title { font-size: 28px; }
  .about-project__subtitle, .card__text, .card__list { font-size: 14px; }

  .hero__pricing .pricing-card-ad { display: none; }

  .hero__overlay { display: none; }
}

/* ===== Wide screens fine-tune: 16:9 (1920x1080 class) ===== */
@media screen and (min-width: 1600px) and (max-width: 1920px) and (min-aspect-ratio: 16/9) and (max-aspect-ratio: 16/9) {
  /* Hero: чуть компактнее типографика и позиции */
  .hero__content { top: 52%; left: 48px; }
  .hero__content h1 { font-size: 68px; letter-spacing: 0.04em; }
  .hero__content p  { font-size: 24px; }

  /* Цены: не слишком широкие карточки и аккуратный отступ снизу */
  .hero__pricing { bottom: 80px; gap: 18px; }
  .pricing-card { width: 300px; }

  /* Карусель: чуть ниже высота и ширина */
  .carousel { max-width: 1440px; }
  .carousel__track-container { height: 700px; }

  /* О проекте: убираем смещения, выравниваем ширины */
  .about-project__info  { margin-left: 0; }
  .about-project__cards { margin-left: 0; }
  .about-project__image { max-width: 100%; }
  .card__title { font-size: 22px; }
  .card__text  { font-size: 15px; }
}