@font-face {
  font-family: "TildaSans";
  src: url("../fonts/TildaSans-VF.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("../fonts/TildaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("../fonts/TildaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("../fonts/TildaSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("../fonts/TildaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-muted: #dedede;
  --ink: #000000;
  --accent: #d90000;
  --accent-hover: #bf0000;
  --max: 1200px;
  --font: "TildaSans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ========== Header ========== */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  background: transparent;
}

.header__bar {
  display: none;
}

.nav,
.nav__inner {
  background: transparent;
}

.nav__inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  min-height: 140px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header__logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.header__logo--mobile {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list--left {
  justify-content: flex-start;
}

.nav__list--right {
  justify-content: flex-end;
}

.nav__list li + li {
  margin-left: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: none;
}

.burger {
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: 0.25s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8.5px; }
.burger span:nth-child(3) { top: 17px; }

.burger.is-open span:nth-child(1) {
  top: 8.5px;
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  top: 8.5px;
  transform: rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.hero__viewport {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  cursor: grab;
}

.hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero__slide.is-active {
  z-index: 1;
  pointer-events: auto;
  visibility: visible;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  animation: heroZoom 16s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__slide.is-active .hero__image {
  opacity: 1;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero__slide.is-active .hero__overlay {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 72px 80px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero__slide.is-active .hero__content {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hero__arrow:hover {
  opacity: 1;
}

.hero__arrow svg {
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease;
}

.hero__arrow--prev:hover svg {
  transform: translateX(-3px);
}

.hero__arrow--next:hover svg {
  transform: translateX(3px);
}

.hero__arrow--prev { left: 10px; }
.hero__arrow--next { right: 10px; }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero__dots button:hover {
  background: #fff;
}

.hero__dots button.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ========== About ========== */
.about {
  position: relative;
  background: var(--bg-muted);
  padding: 15px 0 0;
  z-index: 1;
}

.about__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: calc(8vw + 20px);
}

.about__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
}

.about__descr {
  margin: 34px 0 0;
  font-size: 20px;
  line-height: 1.55;
}

.about__gallery {
  display: flex;
  align-items: flex-start;
  font-size: 0;
}

.about__col--left {
  width: 60%;
  padding-right: 10px;
}

.about__col--right {
  width: 40%;
  padding-left: 10px;
  position: relative;
}

.about__img {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background: #ccc;
}

.about__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.about__img:hover img {
  transform: scale(1.04);
}

.about__img--tall {
  padding-bottom: 135%;
}

.about__img--top {
  margin-top: 40%;
  width: 110%;
  margin-left: auto;
  padding-bottom: 120%;
}

.about__img--bottom {
  margin-top: 20px;
  width: 160%;
  margin-left: -60%;
  padding-bottom: 100%;
}

/* Divider: white V cut into gray section (as on Tilda) */
.shape-divider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8vw;
  min-height: 72px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

.shape-divider svg {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 101%;
  height: 100%;
  fill: #ffffff;
}

/* ========== Works ========== */
.works {
  padding: 30px 0 70px;
  background: #fff;
}

.section-head--center {
  text-align: center;
}

.section-head__title {
  margin: 0 0 40px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
}

.section-head__descr {
  margin: 0 0 90px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
}

.section-head__descr--lg {
  font-size: 24px;
  line-height: 1.5;
  max-width: 560px;
}

.section-head--center .section-head__descr {
  margin-left: auto;
  margin-right: auto;
}

.section-head__descr a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 50px;
}

.work-card__media {
  position: relative;
  padding-bottom: 66%;
  overflow: hidden;
  background: #eee;
}

.work-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover .work-card__media img {
  transform: scale(1.03);
}

.work-card__title {
  margin: 18px 0 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.work-card__descr {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

/* ========== Services ========== */
.services {
  position: relative;
  background: #dedede;
  padding: 15px 0 0;
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.services .section-head__descr {
  margin-bottom: 50px;
}

.accordion {
  width: min(100%, 780px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion__item {
  background: #fff;
  border: 0;
}

.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 25px 56px 25px 30px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.accordion__item summary:hover {
  color: var(--accent);
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(#222, #222) 50% 50% / 22px 2px no-repeat,
    linear-gradient(#222, #222) 50% 50% / 2px 22px no-repeat;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion__item[open] summary::after {
  transform: translateY(-50%) rotate(-45deg);
}

.accordion__body {
  overflow: hidden;
}

.accordion__inner {
  padding: 0 30px 20px;
  font-size: 16px;
  line-height: 1.55;
}

.accordion__inner ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.accordion__inner li {
  margin: 0;
}

/* JS-driven smooth accordion */
.accordion--js .accordion__body {
  transition: height 0.32s ease;
}

.accordion--js .accordion__item:not([open]) .accordion__body {
  height: 0;
}

/* Button sits on the chevron tip, like Tilda */
.services__cta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  height: 8vw;
  min-height: 72px;
  align-items: flex-end;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 17px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

/* ========== Contacts ========== */
.contacts {
  background: #fff;
  padding: 50px 0 30px;
}

.contacts .section-head__title {
  margin-bottom: 40px;
}

.contacts .section-head__descr {
  margin-bottom: 105px;
  font-size: 24px;
  line-height: 1.5;
  max-width: 560px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
}

.contact-card__title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.contact-card__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.contact-card__text a {
  text-decoration: none;
}

.contact-card__text a:hover {
  text-decoration: underline;
}

/* ========== Map (dark theme as on Tilda) ========== */
.map {
  position: relative;
  height: 60vh;
  min-height: 360px;
  background: #1a1a1a;
  overflow: hidden;
}

.map__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--zoom {
  transform: scale(0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== A11y ========== */
.burger:focus-visible,
.hero__arrow:focus-visible,
.hero__dots button:focus-visible,
.accordion__item summary:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image {
    animation: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
  }

  .header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.55);
  }

  .header__logo--mobile {
    display: block;
  }

  .header__logo--mobile img {
    width: 160px;
  }

  .header__logo--desktop,
  .nav .header__logo {
    display: none !important;
  }

  .burger {
    display: block;
  }

  .nav {
    display: none;
    background: #000;
    padding: 8px 20px 24px;
  }

  .nav.is-open {
    display: block;
  }

  .nav__inner {
    min-height: 0;
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
  }

  .nav__list li {
    width: 100%;
    text-align: center;
  }

  .nav__list li + li {
    margin-left: 0;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
  }

  .hero {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
  }

  .hero__title {
    font-size: 22px;
    line-height: 1.35;
    max-width: 14ch;
  }

  .hero__content {
    padding: 100px 56px 72px;
  }

  .hero__arrow {
    display: grid;
    width: 40px;
    height: 40px;
    opacity: 0.95;
    z-index: 5;
  }

  .hero__arrow svg {
    width: 24px;
    height: 24px;
  }

  .hero__dots {
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  .hero__dots button {
    width: 12px;
    height: 12px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about__title,
  .section-head__title {
    font-size: 30px;
  }

  .about__descr {
    margin-top: 14px;
    font-size: 16px;
  }

  .about__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about__col--left,
  .about__col--right {
    display: contents;
    width: auto;
    padding: 0;
  }

  .about__img--tall,
  .about__img--top,
  .about__img--bottom {
    margin: 0;
    width: 100%;
  }

  .about__img--tall,
  .about__img--top {
    padding-bottom: 100%;
  }

  .about__img--bottom {
    display: block;
    grid-column: 1 / -1;
    padding-bottom: 55%;
  }

  .section-head__descr {
    margin-bottom: 50px;
    font-size: 16px;
  }

  .section-head__descr--lg {
    font-size: 20px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .work-card__title {
    font-size: 22px;
  }

  .accordion__item summary {
    padding: 20px 50px 20px 20px;
    font-size: 22px;
  }

  .accordion__inner {
    padding: 0 20px 20px;
    font-size: 16px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts .section-head__descr {
    margin-bottom: 45px;
  }

  .map {
    background: #000;
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: 20px;
    max-width: 13ch;
  }

  .hero__content {
    padding: 96px 48px 68px;
  }
}
