:root {
  --bg-dark: #2a2a2a;
  --bg-light: #ffffff;
  --bg-footer: #000000;
  --accent: #00ffd1;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #707070;
  --container-max: 1280px;
  --container-pad: 20px;
  --h1: clamp(36px, 4.6vw, 84px);
  --h2: clamp(24px, 2.2vw, 34px);
  --lead: clamp(18px, 2vw, 34px);
  --body: 16px;
  --section-gap: 60px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-hero: 700ms;
  --reveal-distance: 16px;
  --reveal-duration: 600ms;
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-raleway: "Raleway", system-ui, sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    var(--font-raleway),
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: var(--body);
  line-height: 1.3;
  color: var(--text-dark);
  background: var(--bg-light);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.header {
  background: var(--bg-dark);
  color: var(--text-light);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 114px;
}

.header__logo img {
  width: 235px;
  height: auto;
}

.nav {
  font-family: var(--font-raleway);
  font-weight: 500;
  font-size: 16px;
}

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

.nav__link {
  font-family: var(--font-raleway);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-light);
  transition: color 0.2s ease;
}

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

.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-bottom: 100px;
}

.hero .container {
  padding-top: 60px;
  text-align: center;
}

.hero__title,
.hero__subtitle {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-hero) var(--ease-out),
    transform var(--t-hero) var(--ease-out);
  will-change: opacity, transform;
}

body.is-loaded .hero__title,
body.is-loaded .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero__subtitle {
  transition-delay: 120ms;
}

.hero__title {
  margin: 0;
  font-family: var(--font-inter);
  font-style: normal;
  font-weight: 600;
  font-size: var(--h1);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}

.hero__subtitle {
  margin-top: 0;
  font-family: var(--font-raleway);
  font-weight: 500;
  font-size: var(--lead);
  line-height: 1.3;
}

.hero__accent {
  color: var(--accent);
  text-transform: lowercase;
}

.hero__accent_it {
  font-style: italic;
  text-transform: uppercase;
}

.hero__title .i {
  font-style: italic;
}

.section-title {
  margin: 0;
  font-family:
    var(--font-inter),
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.3;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}

.section-title--light {
  color: var(--text-light);
}

.about {
  background: var(--bg-light);
  padding: 100px 0;
}

.about .section-title {
  display: flex;
  justify-content: center;
  width: 100%;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 60px;
  gap: 250px;
}

.about__col {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.about-item {
  display: flex;
  gap: 8px;
}

.about-item__mark {
  position: relative;
  width: 16px;
  flex-shrink: 0;
}

.about-item__mark::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
}

.about-item__mark::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 6px;
  width: 0;
  height: 59px;
  border-left: 2px solid var(--accent);
}

.about-item__title {
  margin: 0;
  font-family: var(--font-inter);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.about-item__text {
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.services {
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

.services__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.services__left {
  width: 1076px;
  padding: 160px 58px 0 320px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.services-list {
  display: flex;
  gap: 90px;
}

.services-list__col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.services-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-inter);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-light);
}

.services-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.services__right {
  width: auto;
  min-width: 320px;
  flex-shrink: 1;
}

.services__right img {
  width: 100%;
  height: 716px;
  object-fit: cover;
  display: block;
}

.services__media {
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.services__media.is-visible {
  opacity: 1;
}

.contacts {
  background: var(--bg-light);
  padding: 100px 0 130px;
}

.contacts__container {
  text-align: center;
}

.contacts .section-title {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contacts__list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contacts__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-inter);
  font-style: italic;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.3;
  color: var(--text-dark);
  transition:
    color 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.contacts__link::after {
  content: "↗";
  font-size: 0.85em;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-out);
  color: rgba(0, 0, 0, 0.45);
}

.contacts__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.contacts__link:hover {
  color: rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.contacts__link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.contacts__link:hover::before {
  transform: scaleX(1);
}

.contacts__link:focus-visible {
  outline: none;
}

.footer {
  background: var(--bg-footer);
  color: var(--text-light);
  padding: 100px 0;
}

.footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.footer__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 320px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__logo {
  width: 235px;
  height: auto;
}

.footer__copyright {
  font-family: var(--font-raleway);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  font-feature-settings:
    "pnum" on,
    "lnum" on;
}

.footer-nav {
  padding-top: 24px;
}

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

.footer-nav__link {
  font-family: var(--font-raleway);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--accent);
}

.menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
  z-index: 50;
}

.menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu__panel {
  width: 100%;
  height: 280px;
  background: var(--bg-dark);
  padding: 120px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  transform: translateY(-18px);
  opacity: 0;
  transition:
    transform 320ms var(--ease-out),
    opacity 220ms var(--ease-out);
  will-change: transform, opacity;
}

.menu.is-open .menu__panel {
  transform: translateY(0);
  opacity: 1;
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu__item {
  margin: 0;
  padding: 0;
}

.menu__nav {
  display: block;
}

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-light);
  font-feature-settings:
    "pnum" on,
    "lnum" on;
}

.menu__close {
  position: absolute;
  top: 35px;
  right: 20px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu__arrow {
  display: inline-flex;
  align-items: center;
}

.menu__close::before,
.menu__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  transform-origin: center;
}

.menu__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.burger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  outline: none;
  display: none;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  content: "";
  position: relative;
  transition:
    transform 220ms var(--ease-out),
    opacity 160ms var(--ease-out);
  will-change: transform, opacity;
}

.burger span::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.burger span::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.burger[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::before {
  transform: rotate(90deg) translateX(7px);
}

.burger[aria-expanded="true"] span::after {
  opacity: 0;
  transform: translateY(-7px);
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(calc(var(--reveal-distance) * -1));
}

.reveal--right {
  transform: translateX(var(--reveal-distance));
}

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

.reveal[data-delay] {
  transition-delay: var(--d, 0ms);
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1920px;
    --container-pad: clamp(20px, 3vw, 160px);
  }

  .hero .container {
    padding-top: 60px;
  }

  .hero__title-row {
    flex-direction: row;
    white-space: nowrap;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-pad: 320px;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .services__left {
    width: auto;
    flex: 1;
    padding-left: clamp(40px, 8vw, 200px);
    padding-right: clamp(40px, 4vw, 80px);
    padding-top: clamp(80px, 10vw, 160px);
  }

  .services__right {
    flex-shrink: 1;
    min-width: clamp(280px, 25vw, 400px);
    max-width: calc(50vw - clamp(40px, 8vw, 200px));
  }

  .services__right img {
    width: 100%;
    height: 716px;
    object-fit: cover;
  }

  .services-list {
    gap: clamp(40px, 6vw, 90px);
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .services__inner {
    flex-direction: column;
    gap: 40px;
  }

  .services__right {
    width: 100%;
    order: -1;
  }

  .services__right img {
    height: 420px;
  }

  .services__left {
    width: 100%;
    max-width: 100%;
    padding: 60px clamp(20px, 5vw, 80px) 60px clamp(20px, 5vw, 80px);
    gap: 40px;
  }

  .services .section-title {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .services-list {
    gap: clamp(30px, 6vw, 60px);
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 16px;
  }

  .header .container {
    height: auto;
    padding: 30px 16px 0;
    min-height: 0;
  }

  .header__logo img {
    width: 133px;
  }

  .nav {
    display: none;
  }

  .burger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .burger::before {
    content: "";
    position: absolute;
    inset: -14px;
  }

  .hero {
    padding-bottom: 30px;
  }

  .hero .container {
    padding: 44px 16px 0;
  }

  .hero__title {
    font-size: 36px;
    line-height: 1.1;
    white-space: normal;
  }

  .hero__subtitle {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero__title-row {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .hero__accent {
    text-align: center;
  }

  .about {
    padding: 40px 0 34px;
  }

  .about .section-title {
    font-size: 22px;
    gap: 8px;
  }

  .section-title::before {
    width: 8px;
    height: 8px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .about__col {
    gap: 10px;
  }

  .about-item__mark::before {
    width: 8px;
    height: 8px;
    left: 2px;
  }

  .about-item__mark::after {
    left: 6px;
    border-left-width: 2px;
    height: 68px;
  }

  .about-item__title {
    font-size: 16px;
  }

  .about-item__text {
    font-size: 14px;
    margin-top: 6px;
  }

  .services .section-title {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 22px;
    gap: 8px;
  }

  .services__inner {
    flex-direction: column;
  }

  .services__right {
    width: 100%;
    order: -1;
  }

  .services__right img {
    width: 100%;
    height: 318px;
    object-fit: cover;
  }

  .services__left {
    width: 100%;
    padding: 40px 16px 50px;
    gap: 28px;
  }

  .services-list {
    flex-direction: column;
    gap: 20px;
  }

  .services-list__col {
    gap: 20px;
  }

  .services-item {
    font-size: 16px;
    gap: 12px;
    font-style: italic;
  }

  .services-item img {
    width: 20px;
    height: 20px;
  }

  .contacts {
    padding: 40px 0 50px;
  }

  .contacts .section-title {
    font-size: 22px;
    gap: 8px;
  }

  .contacts__list {
    margin-top: 28px;
    gap: 8px;
  }

  .contacts__link {
    font-size: 30px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer__inner {
    padding: 0 16px;
    flex-direction: column;
    gap: 21px;
  }

  .footer__left {
    gap: 20px;
  }

  .footer__logo {
    width: 133px;
  }

  .footer__copyright {
    font-size: 14px;
    flex-direction: row;
    gap: 5px;
  }

  .footer-nav {
    display: none;
  }
}

@media (hover: none) {
  .contacts__link:hover {
    transform: none;
  }
}

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

  .hero__title,
  .hero__subtitle {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .menu,
  .menu__panel,
  .burger span,
  .burger span::before,
  .burger span::after {
    transition: none !important;
  }
}
