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

:root {
  --orange: #ff6900;
  --orange-hover: #ff8904;
  --orange-line: #fd9a00;
  --text: #424242;
  --ink: #262626;
  --grad: linear-gradient(180deg, #ffb86a 2%, #ff6900 98%);
  --nunito: "Nunito", system-ui, sans-serif;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --card-shadow: 0 0.76px 3.15px rgba(0, 0, 0, 0.01), 0 3.34px 6.52px rgba(0, 0, 0, 0.02),
    0 8.2px 13px rgba(0, 0, 0, 0.02), 0 15.79px 25.48px rgba(0, 0, 0, 0.02),
    0 26.57px 46.85px rgba(0, 0, 0, 0.03), 0 41px 80px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--nunito);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  padding: 20px 0 38px;
  background: #fff;
}

.grad-text,
.title__accent,
.eyebrow,
.about__side--accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

.blob {
  position: absolute;
  top: 133px;
  width: 400px;
  height: 393px;
  border-radius: 50%;
  background: #ff8904;
  opacity: 0.5;
  filter: blur(100px);
  pointer-events: none;
}

.blob--left {
  left: -200px;
}

.blob--right {
  left: 1240px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  padding: 16px 34px;
  border: 0;
  border-radius: 99px;
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--orange-hover);
}

.btn--primary:active {
  background: var(--orange);
}

.btn--secondary {
  padding: 14px 34px;
  border: 2px solid var(--orange-line);
  background: transparent;
  color: #000;
  font-weight: 500;
}

.btn--secondary:hover {
  background: rgba(255, 137, 4, 0.08);
}

.btn--secondary:active {
  border-color: #ffba00;
}

.btn--icon-left {
  padding-left: 32px;
}

.btn--icon-right {
  padding-right: 32px;
}

/* Header */

.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  margin: 0 36px;
  padding-left: 24px;
}

.logo img {
  width: 205px;
  height: auto;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 31px;
  height: 60px;
  padding: 0 31px;
  border: 1px solid #ffd6a8;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav a {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--orange);
}

/* Hero */

.hero__bars,
.hero__icon {
  position: absolute;
  pointer-events: none;
}

.hero__bars {
  top: 187px;
  width: 440px;
  height: 263px;
}

.hero__bars--left {
  left: -80px;
}

.hero__bars--right {
  left: 1080px;
}

.hero__icon {
  width: 304px;
  height: 304px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 516px;
  margin: 98px auto 0;
  text-align: center;
}

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

.title__accent {
  font-size: 48px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -1.44px;
}

.title__main {
  font-size: 60px;
  line-height: 64px;
  font-weight: 700;
  color: #000;
}

.hero__text {
  margin-top: 20px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* Portfolio */

.eyebrow {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}

.portfolio {
  position: relative;
  z-index: 2;
  margin-top: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 440px);
  column-gap: 24px;
  row-gap: 29px;
  margin: 32px 36px 0;
}

.card {
  position: relative;
  width: 440px;
  height: 489px;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: none;
  cursor: pointer;
}

.card__img {
  position: absolute;
  left: -20px;
  top: 0;
  width: 480px;
  height: 529px;
  max-width: none;
  pointer-events: none;
}


.card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* Numbers */

.numbers {
  position: relative;
  margin: 80px 36px 0;
}

.numbers__label {
  position: relative;
  z-index: 1;
  width: max-content;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #fff;
}

.numbers__box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  height: 166px;
  margin-top: -12px;
  padding: 40px 80px;
  border: 1px solid #e5e5e5;
  border-radius: 40px;
  background: #fff;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat strong {
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -1.44px;
}

.stat span {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

/* About */

.about {
  margin-top: 120px;
}

.about__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 116px;
  height: 360px;
}

.about__side {
  width: 233px;
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -1.44px;
  text-align: center;
}

.about__art {
  position: relative;
  flex: none;
  width: 464px;
  height: 360px;
}

.about__art img {
  position: absolute;
  left: -114px;
  top: 0;
  width: 578px;
  height: 361px;
  max-width: none;
}

.about__text {
  width: 660px;
  margin: 0 auto;
  text-align: center;
}

.about__text p + p {
  margin-top: 8px;
}

/* Services */

.services {
  margin-top: 120px;
}

.services .title,
.services__text {
  width: 904px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services__text {
  margin-top: 12px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 440px);
  gap: 24px;
  margin: 40px 36px 0;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 288px;
  padding: 32px 40px;
  border-radius: 40px;
  background: #fff7ed;
  box-shadow: var(--card-shadow);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange);
}

.service h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink);
}

.service p {
  margin-top: -16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 672px 672px;
  gap: 24px;
  height: 598px;
  margin: 122px 36px 0;
}

.contact__promo {
  position: relative;
  z-index: 1;
  padding: 48px 60px;
  border-radius: 40px;
  background: radial-gradient(48% 48% at 50% 50%, #ffb86a 0%, #ff6900 100%);
}

.contact__piece {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.contact__title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 552px;
  color: #fff;
}

.contact__title span {
  font-size: 48px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -1.44px;
  color: rgba(255, 255, 255, 0.8);
}

.contact__title strong {
  font-size: 60px;
  line-height: 64px;
  font-weight: 700;
}

.contact__panel {
  padding: 66px 116px 48px;
  border-radius: 40px;
  background: #e5e5e5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field span {
  padding: 0 16px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: none;
  background: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field textarea {
  height: 108px;
  padding: 12px 16px;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange-line);
}

.form .btn {
  align-self: flex-end;
}

/* Footer */

.footer {
  position: relative;
  height: 197px;
  margin: 39px 36px 0;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 20px;
}

.footer__info img {
  width: 205px;
  height: auto;
}

.footer__legal {
  max-width: 469px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

.footer__nav {
  position: absolute;
  left: 828px;
  top: 5px;
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.footer__nav a:hover,
.footer__contacts a:hover {
  color: var(--orange);
}

.footer__contacts {
  position: absolute;
  left: 1108px;
  top: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  transition: color 0.2s;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  animation: fade 0.25s ease;
}

.modal__dialog {
  position: relative;
  flex: none;
  width: 1136px;
  border: 8px solid #fff;
  border-radius: 40px;
  padding-bottom: 32px;
  color: #fff;
  font-family: var(--sf);
  animation: modal-in 0.3s ease;
}

.modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 160px;
  padding: 32px 40px 32px;
}

.modal__icon {
  flex: none;
  width: 96px;
  height: 96px;
}

.modal__titles {
  flex: 1;
  min-width: 0;
  margin-left: -16px;
}

.modal__titles h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
}

.modal__titles p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 20px;
}

.modal__store {
  flex: none;
  border-radius: 9.6px;
  transition: transform 0.2s;
}

.modal__store:hover {
  transform: scale(1.03);
}

.modal__track {
  position: relative;
}

.modal__shots {
  display: flex;
  gap: 20px;
  padding: 0 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 40px;
  scrollbar-width: none;
}

.modal__shots::-webkit-scrollbar {
  display: none;
}

.modal__shots img {
  flex: none;
  width: 245px;
  height: 530px;
  scroll-snap-align: start;
}

.modal--wide .modal__shots img {
  width: 626px;
  height: 289px;
}

.modal__next {
  position: absolute;
  top: 50%;
  right: 24px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal__next:hover {
  background: #fff;
}

.modal__next[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .modal__dialog {
    border-width: 6px;
    border-radius: 32px;
  }
}

@media (max-width: 899px) {
  .page {
    width: 100%;
    padding: 12px 0 32px;
  }

  .blob {
    top: 60px;
    width: 260px;
    height: 260px;
  }

  .blob--left {
    left: -140px;
  }

  .blob--right {
    left: auto;
    right: -140px;
  }

  .header {
    height: 52px;
    margin: 0 16px;
    padding-left: 0;
  }

  .logo img {
    width: 160px;
  }

  .nav {
    display: none;
  }

  .header .btn {
    height: 44px;
    padding: 10px 18px;
    font-size: 15px;
    line-height: 24px;
    gap: 6px;
  }

  .header .btn img {
    width: 20px;
    height: 20px;
  }

  .hero {
    position: relative;
    display: block;
    padding-top: 196px;
  }

  .hero__bars {
    top: 30px;
    width: 220px;
    height: auto;
  }

  .hero__bars--left {
    left: -60px;
  }

  .hero__bars--right {
    left: auto;
    right: -60px;
  }

  .hero__icon {
    width: 152px;
    height: 152px;
  }

  .hero__icon:nth-of-type(3) { left: -60px !important; top: 6px !important; }
  .hero__icon:nth-of-type(4) { left: 4px !important; top: 82px !important; }
  .hero__icon:nth-of-type(5) { left: 22% !important; top: 0 !important; }
  .hero__icon:nth-of-type(6) { left: auto !important; right: -46px !important; top: 6px !important; }
  .hero__icon:nth-of-type(7) { left: auto !important; right: -6px !important; top: 82px !important; }
  .hero__icon:nth-of-type(8) { left: auto !important; right: 22% !important; top: 24px !important; }

  .hero__content {
    width: auto;
    margin: 0 16px;
  }

  .title__accent {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.96px;
  }

  .title__main {
    font-size: 38px;
    line-height: 44px;
  }

  .text {
    font-size: 16px;
    line-height: 26px;
  }

  .hero__actions {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .btn {
    height: 52px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
    line-height: 28px;
  }

  .btn--secondary {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .portfolio {
    margin-top: 56px;
  }

  .cards {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    row-gap: 24px;
    margin: 24px 16px 0;
  }

  .card {
    width: 100%;
    height: auto;
    aspect-ratio: 440 / 489;
  }

  .card__img {
    left: -4.545%;
    width: 109.09%;
    height: auto;
  }

  .numbers {
    margin: 64px 16px 0;
  }

  .numbers__box {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
    height: auto;
    padding: 36px 16px 28px;
    border-radius: 28px;
  }

  .stat strong {
    font-size: 36px;
    line-height: 42px;
  }

  .stat span {
    font-size: 15px;
    line-height: 22px;
  }

  .about {
    margin-top: 72px;
    padding: 0 16px;
  }

  .about__row {
    flex-direction: column;
    gap: 8px;
    height: auto;
  }

  .about__side {
    width: auto;
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .about__art {
    width: 100%;
    max-width: 464px;
    height: auto;
    aspect-ratio: 464 / 360;
    overflow: visible;
  }

  .about__art img {
    left: -12.3%;
    width: 124.6%;
    height: auto;
  }

  .about__text {
    width: auto;
    margin-top: 24px;
  }

  .services {
    margin-top: 72px;
    padding: 0 16px;
  }

  .services .title,
  .services__text {
    width: auto;
  }

  .services__text br {
    display: none;
  }

  .services__grid {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    gap: 16px;
    margin: 32px 0 0;
  }

  .service {
    height: auto;
    padding: 28px 24px 32px;
    border-radius: 32px;
  }

  .service p {
    font-size: 16px;
    line-height: 26px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
    margin: 72px 16px 0;
  }

  .contact__promo {
    height: 420px;
    padding: 32px 24px;
    overflow: hidden;
    border-radius: 32px;
  }

  .contact__piece {
    zoom: 0.62;
  }

  .contact__piece:nth-of-type(1) { left: 10px !important; top: 380px !important; }
  .contact__piece:nth-of-type(2) { left: 40px !important; top: 270px !important; }
  .contact__piece:nth-of-type(3) { left: 330px !important; top: 250px !important; }
  .contact__piece:nth-of-type(4) { left: auto !important; right: 0 !important; top: 330px !important; }
  .contact__piece:nth-of-type(5) { left: 150px !important; top: 545px !important; }

  .contact__title {
    width: auto;
  }

  .contact__title span {
    font-size: 32px;
    line-height: 38px;
  }

  .contact__title strong {
    font-size: 40px;
    line-height: 46px;
  }

  .contact__panel {
    padding: 32px 20px;
    border-radius: 32px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: auto;
    margin: 48px 16px 0;
  }

  .footer__info {
    order: 3;
    padding-left: 0;
  }

  .footer__nav,
  .footer__contacts {
    position: static;
  }

  .footer__contacts a {
    word-break: break-all;
  }

  .modal {
    padding: 12px;
    align-items: flex-start;
  }

  .modal__dialog {
    width: 100%;
    margin: auto 0;
    border-width: 5px;
    border-radius: 28px;
    padding-bottom: 20px;
  }

  .modal__close {
    top: -12px;
    right: -8px;
  }

  .modal__head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 16px 14px;
    height: auto;
    padding: 24px 20px 20px;
  }

  .modal__icon {
    width: 64px;
    height: 64px;
  }

  .modal__titles {
    margin-left: 0;
    padding-right: 12px;
  }

  .modal__store {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .modal__titles h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .modal__store img {
    width: 156px;
    height: auto;
  }

  .modal__shots {
    gap: 12px;
    padding: 0 20px;
    scroll-padding: 0 20px;
  }

  .modal__shots img {
    width: 200px;
    height: auto;
  }

  .modal--wide .modal__shots img {
    width: 86%;
    height: auto;
  }

  .modal__next {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__content {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .title__accent {
    font-size: 40px;
    line-height: 46px;
  }

  .title__main {
    font-size: 50px;
    line-height: 56px;
  }

  .cards,
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-left: 24px;
    margin-right: 24px;
  }

  .services__grid {
    margin-left: 0;
    margin-right: 0;
  }

  .service:last-child {
    grid-column: 1 / -1;
  }

  .numbers {
    margin-left: 24px;
    margin-right: 24px;
  }

  .numbers__box {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__text,
  .services .title,
  .services__text {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .about,
  .services {
    padding: 0 24px;
  }

  .contact {
    margin-left: 24px;
    margin-right: 24px;
  }

  .contact__promo {
    height: 480px;
  }

  .contact__piece {
    zoom: 0.8;
  }

  .contact__piece:nth-of-type(1) { left: 40px !important; top: 300px !important; }
  .contact__piece:nth-of-type(2) { left: 110px !important; top: 190px !important; }
  .contact__piece:nth-of-type(3) { left: 500px !important; top: 170px !important; }
  .contact__piece:nth-of-type(4) { right: 40px !important; top: 230px !important; }
  .contact__piece:nth-of-type(5) { left: 220px !important; top: 440px !important; }

  .contact__panel {
    padding: 40px;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-left: 24px;
    margin-right: 24px;
  }

  .footer__info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .contact__piece:nth-of-type(2),
  .contact__piece:nth-of-type(5) {
    top: auto !important;
    bottom: 0;
  }
}

.modal__icon-link {
  flex: none;
  border-radius: 22px;
  transition: transform 0.3s;
}

.modal__icon-link:hover {
  transform: scale(1.05);
}

.modal__titles a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.form__status {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  text-align: right;
}

.form__status.is-error {
  color: #d93240;
}

.form__status.is-ok {
  color: #16884a;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d93240;
}

.form .btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}

.form .btn.is-loading img {
  animation: send-fly 0.9s ease-in-out infinite;
}

@keyframes send-fly {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px) rotate(-12deg); }
}

@media (max-width: 599px) {
  .form__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form__status {
    text-align: center;
  }
}
