@charset "utf-8";

@font-face {
  font-family: "ImpactCustom";
  src: url("../ttf/Impact.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ArialCustom";
  src: url("../ttf/Arial.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine: #47171F;
  --gold-start: #A79775;
  --gold-end: #776B52;
  --black: #161616;
  --white: #FFFFFF;
  --gray: #777777;
  --line: #E7E7E7;
  --shadow-menu: rgba(18, 71, 77, 0.15);
  --content-max: 1600px;
  --content-padding-desktop: 40px;
  --content-padding-mobile: 20px;
  --header-h: 70px;
  --header-mobile-h: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-h);
  background: var(--white);
  color: var(--black);
  font-family: "ArialCustom", Arial, sans-serif;
  font-weight: 400;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
figure, h1, h2, h3, p { margin: 0; }

.contentZone {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding-desktop);
}

.goldText {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Общая шапка */
.header {
  width: 100%;
  height: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 4px 20px var(--shadow-menu);
}
.headerContent {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.desktopNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.navLink {
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 120%;
  text-transform: uppercase;
  transition: color .25s ease;
  white-space: nowrap;
}
.navLink:hover { color: var(--wine); }
.navLinkActive { font-weight: 700; color: var(--wine); }
.headerMobile, .mobileMenu { display: none; }

/* Главная */
.homeHero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(460px, 34vw) minmax(0, 1fr);
  overflow: visible;
  background: var(--wine);
}
.homeIntro {
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(64px, 9vh, 120px) clamp(34px, 4vw, 72px) clamp(54px, 7vh, 90px);
  background: var(--wine);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.homeNameStrong {
  display: block;
  font-size: clamp(50px, 4vw, 78px);
  line-height: .94;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  white-space: nowrap;
}
.homeNameLight {
  display: block;
  margin-top: 22px;
  font-size: clamp(30px, 2.6vw, 50px);
  line-height: 1.08;
  text-transform: uppercase;
}
.homeSubtitle {
  margin-top: 62px;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 125%;
  text-transform: uppercase;
}
.homeCity {
  font-size: 20px;
  line-height: 120%;
  text-transform: uppercase;
}
.homeSlider {
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  position: relative;
  overflow: hidden;
  background: #DDD;
}
.homeSliderTrack {
  height: 100%;
  display: flex;
  transition: transform .6s ease;
}
.homeSlide {
  min-width: 100%;
  min-height: calc(100vh - var(--header-h));
}
.homeSlide img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-h));
  object-fit: cover;
}
.sliderDots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.sliderDot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  transition: background .25s ease;
}
.sliderDot.activeDot { background: var(--white); }

/* О нас */
.aboutGrid {
  display: grid;
  grid-template-columns: 52% 48%;
}
.aboutText {
  padding: 72px clamp(40px, 7vw, 120px) 80px;
}
.aboutTitle {
  font-size: clamp(44px, 4vw, 76px);
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}
.aboutMeta {
  margin-top: 34px;
  font-size: 20px;
  line-height: 130%;
  text-transform: uppercase;
}
.aboutPortrait {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 16 / 7;
  margin-top: 34px;
  object-fit: cover;
}
.aboutQuote {
  max-width: 760px;
  margin-top: 30px;
  font-size: 20px;
  line-height: 140%;
  text-transform: uppercase;
}
.aboutGallery {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 28px;
  background: var(--wine);
}
.aboutGallery figure { min-height: 420px; }
.aboutGallery img { width: 100%; height: 100%; object-fit: cover; }

/* Проекты */
.projectsPage { background: var(--white); }
.projectsFilter {
  min-height: 68px;
  padding: 14px 0;
  background: var(--wine);
  color: var(--white);
  display: flex;
  align-items: center;
}
.filterControls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
}
.filterButton {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 15px;
  line-height: 120%;
  text-transform: uppercase;
  opacity: .68;
  transition: opacity .25s ease;
}
.filterButton:hover,
.filterButton.activeFilter { opacity: 1; }
.filterButton.activeFilter { font-weight: 700; }
.projectsArea {
  padding: 46px 0 56px;
  background: var(--white);
}
.projectsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.projectCard {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #DDD;
}
.projectCard.isHidden { display: none; }
.projectCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.projectCard:hover img { transform: scale(1.025); }
.projectCardTitle {
  position: absolute;
  top: 18px;
  left: 28px;
  right: 28px;
  z-index: 2;
  color: var(--white);
  font-size: 16px;
  line-height: 125%;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.28);
}
.projectCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.46) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.14) 100%);
  pointer-events: none;
  transition: background .25s ease;
}
.projectCard:hover::after {
  background: linear-gradient(to bottom, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.24) 100%);
}

/* Страница проекта */
.projectHeader {
  min-height: 132px;
  padding: 28px 0;
  background: var(--wine);
  color: var(--white);
}
.projectHeaderInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "back type" "title type";
  gap: 8px 34px;
  align-items: center;
}
.projectType {
  grid-area: type;
  font-size: 14px;
  line-height: 120%;
  text-transform: uppercase;
  opacity: .5;
  text-align: right;
}
.projectTitle {
  grid-area: title;
  max-width: 1100px;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 115%;
  font-weight: 400;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.projectBack {
  grid-area: back;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 120%;
  text-transform: uppercase;
  opacity: .75;
  transition: opacity .25s ease;
  white-space: nowrap;
}
.projectBack::before { content: "←"; margin-right: 10px; font-size: 18px; line-height: 1; }
.projectBack:hover { opacity: 1; }
.projectHero { padding: 24px var(--content-padding-desktop) 0; }
.projectHero img {
  width: 100%;
  height: min(68vw, 820px);
  min-height: 480px;
  object-fit: cover;
}
.projectBody { padding: 48px 0 64px; }
.projectTextColumn { width: 790px; max-width: 100%; margin-left: 8%; }
.projectTextColumn h2 { font-size: 34px; line-height: 120%; font-weight: 700; }
.projectTextColumn p { margin-top: 28px; font-size: 20px; line-height: 145%; }
.projectFacts {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
}
.projectFactTitle { font-size: 12px; line-height: 120%; text-transform: uppercase; color: var(--gray); }
.projectFactValue { margin-top: 6px; font-size: 17px; line-height: 130%; }
.projectGallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--content-padding-desktop) 20px;
  margin-bottom: 64px;
  scrollbar-color: var(--wine) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.projectGallery::-webkit-scrollbar { height: 8px; }
.projectGallery::-webkit-scrollbar-track { background: transparent; }
.projectGallery::-webkit-scrollbar-thumb { background-color: var(--wine); border-radius: 4px; }
.projectGalleryImage {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 526px;
  object-fit: cover;
  cursor: pointer;
  scroll-snap-align: start;
  transition: opacity .25s ease;
}
.projectGalleryImage:hover { opacity: .88; }

/* Лайтбокс — реализация по системе исходного сайта */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 130px;
  background-color: rgba(0, 0, 0, 0.85);
}
.lightbox.show { display: flex; }
.lightboxContent {
  max-width: 80vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.lightboxImage { max-width: 80vw; max-height: 78vh; object-fit: contain; }
.lightboxCaption {
  margin-top: 20px;
  width: 100%;
  font-size: 20px;
  line-height: 120%;
  color: var(--white);
  text-align: right;
}
.lightboxClose {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 48px;
  line-height: 100%;
  color: var(--white);
  transition: opacity .25s ease;
}
.lightboxClose:hover { opacity: .65; }
.lightboxArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .25s ease;
}
.lightboxArrow:hover { opacity: .65; }
.lightboxArrow:active { opacity: .35; }
.lightboxArrow span { position: relative; width: 42px; height: 42px; display: block; }
.lightboxArrow span::before {
  content: ""; position: absolute; top: 19px; left: 4px; width: 34px; height: 4px;
  border-radius: 2px; background-color: var(--white);
}
.lightboxArrow span::after {
  content: ""; position: absolute; top: 11px; right: 4px; width: 16px; height: 16px;
  border-top: 4px solid var(--white); border-right: 4px solid var(--white); transform: rotate(45deg);
}
.lightboxArrowPrev { left: 40px; }
.lightboxArrowNext { right: 40px; }
.lightboxArrowPrev span { transform: rotate(180deg); }

/* Контакты */
.contactsPage { min-height: calc(100vh - var(--header-h)); }
.contactsGrid {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: calc(100vh - var(--header-h));
}
.contactsIntro {
  padding: 84px clamp(40px, 7vw, 120px);
  background: var(--wine);
  overflow: visible;
}
.contactsTitle {
  padding: .05em 0 .12em;
  font-size: clamp(40px, 4vw, 70px);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: normal;
  white-space: nowrap;
}
.contactsLead {
  margin-top: 38px;
  max-width: 520px;
  color: var(--white);
  font-size: 18px;
  line-height: 145%;
}
.contactsInfo {
  padding: 74px clamp(40px, 8vw, 130px);
  display: flex;
  align-items: center;
}
.contactList { width: 100%; max-width: 700px; }
.contactItem { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contactLabel { font-size: 13px; line-height: 120%; color: var(--gray); text-transform: uppercase; }
.contactValue { margin-top: 8px; font-size: clamp(20px, 2vw, 30px); line-height: 125%; overflow-wrap: anywhere; }

/* Подвал */
.footer { background: var(--wine); color: var(--white); padding: 30px 0; }
.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  line-height: 120%;
  text-transform: uppercase;
}

/* Планшет — та же система брейкпоинтов, что в исходном сайте */
@media (min-width: 650px) and (max-width: 1199px) {
  body { padding-top: var(--header-mobile-h); }
  .contentZone { max-width: none; padding: 0 var(--content-padding-mobile); }
  .header { height: var(--header-mobile-h); }
  .headerContent { display: none; }
  .headerMobile {
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-menu);
  }
  .mobilePageTitle {
    width: calc(100% - 112px);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    line-height: 120%;
    color: var(--wine);
    text-align: center;
  }
  .mobileIconButton {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
  }
  .homeButton { background-image: url("../img/vector/home.svg"); }
  .menuButton { background-image: url("../img/vector/menu.svg"); margin-left: auto; }
  .menuCloseButton { background-image: url("../img/vector/close.svg"); margin-left: auto; display: none; }
  .mobileMenu {
    width: 100%;
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 2;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    box-shadow: 0 8px 25px var(--shadow-menu);
    transition: height .45s ease, padding-top .45s ease;
  }
  .mobileMenu.show { height: 255px; padding-top: 35px; }
  .mobileMenuLink {
    width: 350px;
    max-width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    text-transform: uppercase;
  }

  .homeHero { display: flex; flex-direction: column; min-height: 0; }
  .homeIntro { min-width: 0; min-height: 390px; padding: 58px max(40px, calc((100vw - 790px)/2)) 46px; }
  .homeSlider { width: 100%; height: 56vw; min-height: 360px; max-height: 620px; }
  .homeSlide, .homeSlide img { height: 56vw; min-height: 360px; max-height: 620px; }
  .homeNameStrong { font-size: clamp(52px, 8vw, 76px); }
  .homeNameLight { font-size: clamp(30px, 5vw, 42px); }
  .homeSubtitle { margin-top: 38px; font-size: 16px; }
  .homeCity { font-size: 16px; }

  .aboutGrid { grid-template-columns: 1fr; }
  .aboutText { padding: 60px max(40px, calc((100vw - 790px)/2)) 66px; }
  .aboutGallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; }
  .aboutGallery figure { min-height: 330px; }

  .projectsFilter { min-height: 0; height: auto; padding: 16px 0; }
  .filterControls { gap: 12px 16px; }
  .filterButton { min-height: 44px; font-size: 14px; }
  .projectsArea { padding-top: 32px; }
  .projectCard { min-height: 0; }

  .projectHeader { min-height: 112px; height: auto; padding: 22px 0 24px; }
  .projectHeaderInner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .projectType { font-size: 12px; }
  .projectTitle { max-width: 100%; font-size: 25px; }
  .projectHero { padding: 20px 20px 0; }
  .projectHero img { min-height: 380px; height: 55vw; }
  .projectTextColumn { width: 790px; max-width: 100%; margin: 0 auto; }
  .projectGallery { gap: 10px; padding: 0 20px 14px; margin-bottom: 56px; }
  .projectGalleryImage { height: 360px; }

  .contactsGrid { grid-template-columns: 1fr; min-height: 0; }
  .contactsIntro, .contactsInfo { padding: 60px max(40px, calc((100vw - 790px)/2)); }
  .contactsTitle { font-size: clamp(42px, 7vw, 56px); white-space: nowrap; }
}

/* Мобильный */
@media (max-width: 649px) {
  body { padding-top: var(--header-mobile-h); }
  .contentZone { max-width: none; padding: 0 var(--content-padding-mobile); }
  .header { height: var(--header-mobile-h); }
  .headerContent { display: none; }
  .headerMobile {
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-menu);
  }
  .mobilePageTitle {
    width: calc(100% - 112px);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    line-height: 120%;
    color: var(--wine);
    text-align: center;
  }
  .mobileIconButton {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
  }
  .homeButton { background-image: url("../img/vector/home.svg"); }
  .menuButton { background-image: url("../img/vector/menu.svg"); margin-left: auto; }
  .menuCloseButton { background-image: url("../img/vector/close.svg"); margin-left: auto; display: none; }
  .mobileMenu {
    width: 100%;
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 2;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    box-shadow: 0 8px 25px var(--shadow-menu);
    transition: height .45s ease, padding-top .45s ease;
  }
  .mobileMenu.show { height: 255px; padding-top: 35px; }
  .mobileMenuLink {
    width: 350px;
    max-width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    text-transform: uppercase;
  }

  .homeHero { display: flex; flex-direction: column; min-height: 0; }
  .homeIntro { min-width: 0; min-height: 410px; padding: 54px 20px 36px; }
  .homeNameStrong { font-size: clamp(46px, 14vw, 72px); }
  .homeNameLight { margin-top: 15px; font-size: clamp(25px, 8vw, 38px); }
  .homeSubtitle { margin-top: 35px; font-size: 14px; }
  .homeCity { font-size: 14px; }
  .homeSlider { height: 54vw; min-height: 250px; max-height: 420px; }
  .homeSlide, .homeSlide img { min-height: 250px; height: 54vw; max-height: 420px; }
  .sliderDots { bottom: 16px; }

  .aboutGrid { display: block; }
  .aboutText { padding: 40px 20px; }
  .aboutTitle { font-size: 36px; line-height: 105%; }
  .aboutMeta { margin-top: 24px; font-size: 15px; }
  .aboutPortrait { margin-top: 24px; aspect-ratio: 16/9; }
  .aboutQuote { margin-top: 22px; font-size: 14px; line-height: 140%; }
  .aboutGallery { display: block; background: var(--white); }
  .aboutGallery figure { min-height: 0; margin-top: 8px; }
  .aboutGallery img { aspect-ratio: 16/10; height: auto; }

  .projectsFilter { min-height: 0; padding: 14px 0; }
  .filterControls { justify-content: flex-start; gap: 8px 10px; }
  .filterButton { min-height: 42px; padding: 8px 10px; font-size: 12px; }
  .projectsArea { padding: 20px 0 36px; }
  .projectsGrid { grid-template-columns: 1fr; gap: 8px; }
  .projectCard { min-height: 0; aspect-ratio: 16/10; }
  .projectCardTitle { top: 14px; left: 16px; right: 16px; font-size: 13px; }

  .projectHeader { min-height: 118px; height: auto; padding: 20px 0 22px; }
  .projectHeaderInner { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "back type" "title title"; gap: 12px 16px; align-items: start; }
  .projectType { font-size: 11px; line-height: 120%; }
  .projectTitle { max-width: 100%; margin-top: 6px; font-size: 20px; line-height: 118%; overflow-wrap: anywhere; }
  .projectBack { display: inline-flex; margin-top: 12px; font-size: 12px; }
  .projectHero { padding: 14px 0 0; }
  .projectHero img { width: 100%; height: 58vw; min-height: 230px; max-height: 420px; }
  .projectBody { padding: 32px 0 42px; }
  .projectTextColumn { width: 100%; margin: 0; }
  .projectTextColumn h2 { font-size: 20px; }
  .projectTextColumn p { margin-top: 18px; font-size: 14px; line-height: 145%; }
  .projectFacts { margin-top: 24px; grid-template-columns: 1fr; gap: 14px; }
  .projectFactValue { font-size: 15px; }
  .projectGallery { gap: 10px; padding: 0 0 12px 20px; margin-bottom: 42px; }
  .projectGalleryImage { height: 220px; }
  .lightbox { padding: 80px 20px 40px; }
  .lightboxContent { max-width: 100%; }
  .lightboxImage { max-width: 100%; max-height: 70vh; }
  .lightboxCaption { margin-top: 16px; font-size: 14px; }
  .lightboxArrow { top: auto; bottom: 30px; transform: none; width: 46px; height: 46px; }
  .lightboxArrow span { width: 32px; height: 32px; }
  .lightboxArrow span::before { top: 14px; left: 3px; width: 26px; height: 3px; }
  .lightboxArrow span::after { top: 8px; right: 3px; width: 12px; height: 12px; border-top-width: 3px; border-right-width: 3px; }
  .lightboxArrowPrev { left: 20px; }
  .lightboxArrowNext { right: 20px; }
  .lightboxClose { top: 20px; right: 20px; }

  .contactsGrid { display: block; min-height: 0; }
  .contactsIntro { padding: 54px 20px 48px; }
  .contactsTitle { padding-top: .08em; font-size: clamp(34px, 10vw, 42px); line-height: 1.12; white-space: nowrap; }
  .contactsLead { margin-top: 28px; font-size: 14px; }
  .contactsInfo { padding: 36px 20px 48px; }
  .contactItem { padding: 20px 0; }
  .contactValue { font-size: 20px; }

  .footer { padding: 24px 0; }
  .footerInner { flex-direction: column; align-items: center; text-align: center; font-size: 12px; }
}

/* Карусель проекта: ограниченная ширина, оригинальные пропорции всех изображений. */
.projectAutoGallery {
  position: relative;
  width: calc(100% - 2 * var(--content-padding-desktop));
  max-width: 1520px;
  margin: 28px auto 0;
  overflow: hidden;
  background: #f2f2f2;
}
.projectAutoTrack { display: flex; width: 100%; transition: transform .6s ease; }
.projectAutoSlide {
  flex: 0 0 100%;
  min-width: 0;
  height: clamp(360px, 55vw, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.projectAutoSlide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.projectAutoDots {
  position: absolute;
  left: 50%; bottom: 18px;
  z-index: 3;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px; max-width: calc(100% - 24px);
  transform: translateX(-50%);
  padding: 7px 10px; border-radius: 24px;
  background: rgba(0,0,0,.35);
}
.projectAutoDot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.35); cursor: pointer;
}
.projectAutoDot.active { background: white; }
/* Отступ между крупным слайдером и лентой миниатюр. */
.projectAutoGallery + .projectGallery { margin-top: 34px; }
@media (min-width: 650px) and (max-width: 1199px) {
  .projectAutoGallery { width: calc(100% - 40px); margin-top: 20px; }
  .projectAutoSlide { height: clamp(320px, 58vw, 650px); }
  .projectAutoGallery + .projectGallery { margin-top: 24px; }
}
@media (max-width: 649px) {
  .projectAutoGallery { width: calc(100% - 28px); margin-top: 14px; }
  .projectAutoSlide { height: clamp(240px, 68vw, 470px); }
  .projectAutoDots { bottom: 10px; gap: 6px; }
  .projectAutoDot { width: 8px; height: 8px; }
  .projectAutoGallery + .projectGallery { margin-top: 18px; }
  .projectHeaderInner { display: grid; grid-template-columns: 1fr; grid-template-areas: "back" "title" "type"; gap: 10px; align-items: start; justify-items: start; }
  .projectBack { margin-top: 0; text-align: left; }
  .projectTitle { margin-top: 2px; text-align: left; }
  .projectType { margin-top: 2px; text-align: left; justify-self: start; }
}

/* Правки по присланному образцу: главная и страница «О нас» */
.homeIntro {
  text-align: center;
  align-items: center;
}
.homeIntro > div {
  width: 100%;
}
.homeNameStrong {
  font-family: "ImpactCustom", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.homeNameLight,
.homeSubtitle {
  font-family: "ArialCustom", Arial, sans-serif;
  font-weight: 400;
}
.homeCity {
  align-self: center;
  text-align: center;
}

.aboutTitle {
  font-family: "ArialCustom", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 3.45vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

@media (min-width: 650px) and (max-width: 1199px) {
  .homeIntro { align-items: center; text-align: center; }
  .homeCity { align-self: center; }
  .aboutTitle { font-size: clamp(40px, 6vw, 58px); }
}

@media (max-width: 649px) {
  .homeIntro { align-items: center; text-align: center; }
  .homeCity { align-self: center; }
  .aboutTitle { font-size: clamp(32px, 9vw, 40px); }
}

/* Уточнение размеров по обратной связи */
.homeNameStrong { font-size: clamp(58px, 4.8vw, 92px); }
.homeNameLight { font-size: clamp(25px, 2.15vw, 41px); }
.aboutTitle { font-size: clamp(50px, 4.25vw, 82px); line-height: 1.01; }

@media (min-width: 650px) and (max-width: 1199px) {
  .homeNameStrong { font-size: clamp(58px, 9vw, 86px); }
  .homeNameLight { font-size: clamp(25px, 4.3vw, 36px); }
  .aboutTitle { font-size: clamp(48px, 7vw, 68px); }
}

@media (max-width: 649px) {
  .homeNameStrong { font-size: clamp(52px, 16vw, 78px); }
  .homeNameLight { font-size: clamp(22px, 7vw, 32px); }
  .aboutTitle { font-size: clamp(38px, 10.5vw, 48px); }
}


/* Фиксированная высота главной: пропорции изображений больше не меняют высоту страницы. */
@media (min-width: 1200px) {
  .homeHero,
  .homeIntro,
  .homeSlider,
  .homeSlide,
  .homeSlide img {
    height: calc(100vh - var(--header-h));
    min-height: 0;
  }
}

@media (min-width: 650px) and (max-width: 1199px) {
  .homeHero { height: auto; min-height: 0; }
  .homeIntro { height: 390px; min-height: 390px; }
  .homeSlider,
  .homeSlide,
  .homeSlide img {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }
}

@media (max-width: 649px) {
  .homeHero { height: auto; min-height: 0; }
  .homeIntro { height: 410px; min-height: 410px; }
  .homeSlider,
  .homeSlide,
  .homeSlide img {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}

/* Контакты: перенос только по заданному в HTML <br>.
   Слово «ИНФОРМАЦИЯ» не разбивается на части. */
.contactsTitle {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* Главная: сохраняем существующие размеры слайдера.
   Изображение прилегает к левому краю, лишняя часть обрезается справа. */
.homeSlide img {
  object-position: left center;
}

/* Контакты: сохраняем исходный размер заголовка.
   На десктопе даём длинному слову больше места внутри левой колонки. */
@media (min-width: 1200px) {
  .contactsIntro { padding-right: 12px; }
}

/* Только на самых узких телефонах немного уменьшаем заголовок,
   чтобы "ИНФОРМАЦИЯ" целиком помещалась в одну строку. */
@media (max-width: 370px) {
  .contactsTitle { font-size: clamp(31px, 9.2vw, 34px); }
}


/* Ошибка 404 */
.notFoundPage { min-height: calc(100vh - var(--header-h)); }
.notFoundGrid {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: calc(100vh - var(--header-h));
}
.notFoundVisual {
  min-width: 0;
  padding: 54px clamp(30px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  text-align: center;
}
.notFoundNumber {
  display: block;
  font-family: "ImpactCustom", Impact, sans-serif;
  font-size: clamp(140px, 19vw, 360px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}
.notFoundVisualCaption {
  margin-top: 24px;
  color: var(--white);
  font-size: 14px;
  line-height: 130%;
  letter-spacing: .2em;
}
.notFoundContent {
  min-width: 0;
  padding: 70px clamp(40px, 8vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.notFoundEyebrow {
  margin-bottom: 28px;
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.notFoundTitle {
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--wine);
}
.notFoundDescription {
  max-width: 440px;
  margin-top: 30px;
  font-size: 18px;
  line-height: 150%;
}
.notFoundButton {
  min-height: 54px;
  margin-top: 44px;
  padding: 17px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: var(--white);
  font-size: 14px;
  line-height: 120%;
  text-align: center;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease;
}
.notFoundButton:hover { background: #682b36; transform: translateY(-2px); }
.notFoundButton:focus-visible { outline: 3px solid var(--gold-start); outline-offset: 4px; }
@media (min-width: 650px) and (max-width: 1199px) {
  .notFoundPage, .notFoundGrid { min-height: calc(100vh - var(--header-mobile-h)); }
  .notFoundGrid { grid-template-columns: 45% 55%; }
  .notFoundVisual { padding: 45px 24px; }
  .notFoundNumber { font-size: clamp(115px, 17vw, 215px); }
  .notFoundContent { padding: 60px 40px; }
  .notFoundTitle { font-size: clamp(36px, 4.5vw, 56px); }
}
@media (max-width: 649px) {
  .notFoundPage { min-height: calc(100vh - var(--header-mobile-h)); }
  .notFoundGrid { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-mobile-h)); }
  .notFoundVisual { min-height: 32vh; padding: 32px 20px; }
  .notFoundNumber { font-size: clamp(110px, 32vw, 190px); }
  .notFoundVisualCaption { margin-top: 10px; font-size: 10px; }
  .notFoundContent { flex: 1; padding: 42px 20px 56px; }
  .notFoundEyebrow { margin-bottom: 18px; font-size: 12px; }
  .notFoundTitle { font-size: clamp(34px, 9vw, 48px); }
  .notFoundDescription { margin-top: 22px; font-size: 15px; }
  .notFoundButton { margin-top: 30px; }
}
