/* =========================================================
   САВЬЕ КЕЙТЕРИНГ — ГЛАВНАЯ
   Базовая ширина макета: 1440px
   Брейкпоинты: xs <576 / sm ≥576 / md ≥768 / lg ≥992 / xl ≥1200 / xxl ≥1400
   ========================================================= */

/* ---- CSS Variables ---- */
:root {
  /* brand */
  --c-red:        #93181a;
  --c-red-dark:   #580c0e;
  --c-red-soft:   rgba(147, 24, 26, 0.04);

  /* text & ui */
  --c-text:       #434343;
  --c-heading:    #4a4a4a;
  --c-muted:      #d2d2d2;
  --c-line:       #e2ddd7;
  --c-black:      #111;
  --c-white:      #ffffff;

  /* layout */
  --container:    1352px;   /* width внутри 1440px макета */
  --gutter:       40px;
  --radius-card:  12px;
  --radius-btn:   20px;
  --radius-img:   6px;

  /* type — единый шрифт во всём макете */
  --font-main:    'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-alt:     'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;  /* чтобы якорные ссылки учитывали fixed-шапку */
}
body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--c-heading); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 63px;
  min-width: 280px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 400;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn--red   { background: var(--c-red);   color: #fff; }
.btn--white { background: #fff;           color: #151515; }

/* =========================================================
   HEADER (HERO)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;          /* всегда на весь экран */
  min-height: 100dvh;         /* iOS — учитываем динамическую панель */
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #333;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- HERO SLIDER (Ken Burns) ---- */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  /* Один полный цикл = 30s. 5 слайдов по 6s каждый, с плавным cross-fade. */
  animation: hero-slide 30s infinite;
  will-change: opacity, transform;
}
.hero__slide:nth-child(1) { animation-delay:  0s; }
.hero__slide:nth-child(2) { animation-delay:  6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
.hero__slide:nth-child(5) { animation-delay: 24s; }

@keyframes hero-slide {
  /* % считаются от 30s. 6s активного показа = 20%. */
  0%   { opacity: 0; transform: scale(1.04); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.16); }
  24%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 1; }
  .hero__slide:not(:first-child) { display: none; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}
.hero__top {
  position: fixed;            /* шапка плавает поверх контента всегда */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 900;          /* всегда над контентом, ниже lightbox (1000) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 36px;
  color: #fff;           /* пункты меню и иконки — всегда белые */
  border-radius: 0;
  border: 1px solid transparent;
  transition:
    top 0.35s var(--ease-out, ease),
    width 0.35s var(--ease-out, ease),
    max-width 0.35s var(--ease-out, ease),
    padding 0.35s ease,
    background 0.3s ease,
    border-radius 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}
.hero__nav {
  display: flex;
  align-items: center;
  gap: 63px;
  font-weight: 200;
  font-size: 20px;
}
.hero__nav a { transition: color .2s; }
.hero__nav a:hover { color: var(--c-muted); }

.hero__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero__action {
  width: 63px; height: 63px;
  border-radius: 14px;
  background: var(--c-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, width .3s ease, height .3s ease;
}
.hero__action:hover { background: var(--c-red-dark); }
.hero__action img {
  width: 44px; height: 44px;
  transition: width .3s ease, height .3s ease;
}

.hero__center {
  max-width: 1107px;
  margin: auto;                 /* центрируем по вертикали — hero растёт */
  padding: 80px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.hero__title {
  font-weight: 200;
  font-size: 48px;
  line-height: 1;
  max-width: 1005px;
  color: #fff;
}

/* Hamburger (mobile menu toggle) */
.hero__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero__burger span,
.hero__burger span::before,
.hero__burger span::after {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  position: relative;
  border-radius: 1px;
}
.hero__burger span::before,
.hero__burger span::after {
  content: "";
  position: absolute; left: 0;
}
.hero__burger span::before { top: -7px; }
.hero__burger span::after  { top: 7px; }

/* Logo (готовый SVG из Figma — единый файл) */
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 60px;
  transition: height 0.3s ease, transform 0.3s var(--ease-back, ease);
}
.logo__img {
  display: block;
  height: 60px;
  width: auto;
  transition: height 0.3s ease;
}
.logo--light { color: #fff; }

/* =========================================================
   "НАШ ПОДХОД" — 6 cards in a 3x2 grid with cross lines
   ========================================================= */
.approach { padding: 85px 0 0; }
.approach__head {
  text-align: center;
  max-width: 935px;
  margin: 0 auto 60px;
}
.approach__title {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 25px;
  color: var(--c-heading);
}
.approach__title em { font-style: normal; color: var(--c-muted); }
.approach__lead {
  font-size: 20px;
  font-weight: 300;
  color: var(--c-text);
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d9d3cb;
  border-bottom: 1px solid #d9d3cb;
}
.approach__cell {
  padding: 37px 46px 37px 0;
  border-right: 1px solid #d9d3cb;
  position: relative;
}
.approach__cell:nth-child(3n)   { border-right: 0; padding-right: 0; }
.approach__cell:nth-child(n+4)  { border-top: 1px solid #d9d3cb; padding-top: 37px; }
.approach__cell:not(:nth-child(3n)) { padding-right: 46px; }
.approach__cell:nth-child(3n-1),
.approach__cell:nth-child(3n)   { padding-left: 46px; }
.approach__cell:nth-child(3n-2) { padding-left: 0; }

.approach__icon { width: 45px; height: 45px; margin-bottom: 26px; }
.approach__cell h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-red-dark);
  margin-bottom: 26px;
}
.approach__cell p {
  font-weight: 300;
  font-size: 20px;
  color: var(--c-text);
}

/* =========================================================
   "ЛЕТНЕЕ МЕНЮ"
   ========================================================= */
.summer {
  padding: 112px 0 0;
  position: relative;
}
.summer__card {
  position: relative;
  background: var(--c-red);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 79px 20px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
}
.summer__card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../images/summer-menu-bg.png") center/cover no-repeat;
  opacity: 0.2;
}
.summer__title {
  font-size: 44px;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 38px;
  color: #fff;
}
.summer__title em { font-style: normal; color: rgba(255,255,255,.7); }
.summer__list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 28px 11px;
  max-width: 708px;
  margin: 0 auto 50px;
  text-align: left;
  font-weight: 200;
  font-size: 20px;
}
.summer__list li {
  width: 302px;
  list-style: disc;
  margin-left: 30px;
}
.summer__decor {
  position: absolute;
  bottom: 0;                         /* вплотную к низу красной плашки */
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
}
.summer__decor img { width: 100%; height: 100%; object-fit: cover; display: block; }
.summer__decor--left  { left:  0; width: 269px; height: 337px; }
.summer__decor--right { right: 0; width: 301px; height: 377px; }

/* =========================================================
   SECTION HEADER (общий для «Наши услуги» и «Портфолио»)
   ========================================================= */
.section-head {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}
.section-head__title {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 24px;
}
.section-head__lead {
  font-weight: 300;
  font-size: 20px;
  max-width: 935px;
  margin: 0 auto;
}

/* =========================================================
   "НАШИ УСЛУГИ" — 4x3 grid
   ========================================================= */
.services { padding: 120px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  display: block;
  height: 251px;
  border-radius: var(--radius-img);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.service-card,
.service-card * { color: #fff; }   /* принудительно белый — заголовок и описание */
.service-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(102,102,102,0));
}
.service-card__body {
  position: absolute; left: 16px; right: 16px; bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.service-card__desc {
  font-weight: 300;
  font-size: 14px;
}

/* =========================================================
   "ПОРТФОЛИО" — 3x3 grid
   ========================================================= */
.portfolio { padding: 0 0 100px; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 65px;
}
.portfolio__item {
  height: 304px;
  border-radius: var(--radius-img);
  overflow: hidden;
}
.portfolio__item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.portfolio__cta { display: flex; justify-content: center; }

/* =========================================================
   "ОТВЕТЫ НА ВОПРОСЫ" — FAQ
   ========================================================= */
.faq {
  background: var(--c-red);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 65px 20px 80px;
  max-width: var(--container);
  margin: 0 auto;
}
.faq__head { text-align: center; margin-bottom: 55px; }
.faq__title { font-size: 48px; color: #fff; margin-bottom: 22px; }
.faq__lead  {
  font-weight: 300; font-size: 20px;
  color: rgba(255,255,255,.56);
}
.faq__list {
  max-width: 864px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--c-line);
}
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
}
.faq__q .faq__chevron {
  flex-shrink: 0;
  width: 16px; height: 16px;
  transition: transform .35s var(--ease-out, ease);
  filter: brightness(0) invert(1);    /* делаем стрелку белой */
}
.faq__item.is-open .faq__q .faq__chevron { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.86);
}
.faq__a > div { padding: 0 0 24px; }
.faq__item.is-open .faq__a { max-height: 600px; }

/* =========================================================
   "ОБСУДИМ ВАШЕ МЕРОПРИЯТИЕ" — Contact section
   ========================================================= */
.contact { padding: 130px 0 110px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 552px;
  gap: 56px;
}
.contact__title {
  font-size: 48px;
  line-height: 1;
  max-width: 585px;
  margin-bottom: 28px;
}
.contact__eyebrow {
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(0,0,0,.6);
  margin-bottom: 16px;
}
.contact__lead {
  font-size: 16px;
  color: rgba(0,0,0,.7);
  line-height: 1.2;
  margin-bottom: 64px;
}
.contact__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
}
.contact__detail {
  display: grid;
  grid-template-columns: 33px 1fr;
  align-items: start;
  gap: 16px;
}
.contact__detail img { width: 33px; height: 33px; }
.contact__detail-label {
  font-size: 14px;
  color: rgba(0,0,0,.6);
  display: block;
  margin-bottom: 4px;
}
.contact__detail-value {
  font-weight: 500;
  font-size: 16px;
  color: #000;
}

/* Form */
.form {
  background: var(--c-red-soft);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 32px;
  align-self: start;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-size: 14px;
  color: rgba(0,0,0,.6);
}
.form__input,
.form__textarea {
  width: 100%;
  height: 36px;
  padding: 8px 12px;
  font: 400 14px var(--font-main);
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  color: #000;
  transition: border-color .2s, background .2s;
}
.form__input::placeholder,
.form__textarea::placeholder { color: rgba(0,0,0,.4); }
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: rgba(255,255,255,.6);
}
.form__textarea {
  height: 64px;
  padding-top: 10px;
  resize: vertical;
}
.form__submit {
  width: 100%;
  height: 48px;
  background: var(--c-red);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  margin-top: 8px;
  transition: background .2s;
}
.form__submit:hover { background: var(--c-red-dark); }
.form__terms {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,.5);
  line-height: 1.35;
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — шапка страницы и хлебные крошки
   ========================================================= */
.page-head {
  background: linear-gradient(180deg, #93181a 0%, #580c0e 100%);
  color: #fff;
  padding: 160px 0 80px;        /* запас сверху на фиксированную капсулу-шапку */
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.25), transparent 60%);
  z-index: -1;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 22px;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.85);
  transition: color .2s ease;
}
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__sep    { opacity: .5; }
.breadcrumbs__current{ color: #fff; }
.page-head__title {
  font-size: 56px;
  line-height: 1.05;
  color: #fff;
  max-width: 880px;
}
.page-head__lead {
  margin-top: 18px;
  font-weight: 300;
  font-size: 20px;
  color: rgba(255,255,255,.85);
  max-width: 720px;
}

@media (max-width: 991.98px) {
  .page-head { padding: 120px 0 60px; }
  .page-head__title { font-size: 40px; }
}
@media (max-width: 575.98px) {
  .page-head { padding: 100px 0 48px; }
  .page-head__title { font-size: 30px; }
  .page-head__lead  { font-size: 17px; }
}

/* На внутренних страницах FAQ-блок не нужно красить в красный — он стоит на белом */
.page-faq .faq {
  background: #f7f4f0;
  color: var(--c-text);
}
.page-faq .faq__title { color: var(--c-heading); }
.page-faq .faq__lead  { color: rgba(0,0,0,.5); }
.page-faq .faq__q     { color: var(--c-heading); }
.page-faq .faq__q .faq__chevron { filter: none; }       /* возвращаем оригинальный цвет иконки */
.page-faq .faq__item  { border-color: rgba(0,0,0,.08); }
.page-faq .faq__item:hover { background: rgba(0,0,0,0.02); }
.page-faq .faq__item.is-open { background: rgba(147,24,26,0.06); }
.page-faq .faq__a { color: rgba(0,0,0,.7); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--c-black);
  color: rgba(249,248,247,.8);
  padding: 64px 0 0;
  isolation: isolate;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../images/footer-bg.png") center/cover no-repeat;
  opacity: 0.2;
}
.footer__top {
  display: grid;
  grid-template-columns: 260px 2fr 1fr 1fr;        /* колонка услуг шире — там 2 столбца внутри */
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(249,248,247,.1);
}
.footer__brand p {
  margin-top: 32px;
  font-family: var(--font-alt);
  font-size: 14px;
  color: rgba(249,248,247,.6);
  line-height: 1.625;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 16px;
  color: #f9f8f7;
  margin-bottom: 22px;
}
.footer__col li { margin-bottom: 18px; }
.footer__col--services ul {                           /* 12 услуг — в 2 столбца по 6 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
}
.footer__col--services li { margin-bottom: 12px; }
.footer__col a {
  font-family: var(--font-alt);
  font-size: 14px;
  color: rgba(249,248,247,.8);
  transition: color .2s;
}
.footer__col a:hover { color: #f9f8f7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 32px;
  font-family: var(--font-alt);
  font-size: 14px;
  color: rgba(249,248,247,.5);
}

/* =========================================================
   Accessibility
   ========================================================= */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn:focus-visible,
.form__submit:focus-visible { outline-color: var(--c-red-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
