@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --bg: #080b0d;
  --bg-soft: #0d1114;
  --panel: #11171a;
  --panel-2: #151c20;
  --text: #f1f4f3;
  --muted: #98a4a6;
  --line: rgba(255, 255, 255, 0.11);
  --copper: #dc8a51;
  --copper-bright: #f0a66d;
  --cyan: #50d6e8;
  --display: "Unbounded", sans-serif;
  --body: "Manrope", sans-serif;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--copper) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 15;
  width: 100%;
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(8, 11, 13, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 33px;
  height: 33px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(220, 138, 81, 0.55);
  transform: rotate(45deg);
}

.brand-mark span {
  align-self: end;
  height: 60%;
  background: var(--copper);
}

.brand-mark span:nth-child(2) {
  height: 100%;
}

.brand-mark span:nth-child(3) {
  height: 38%;
}

.brand-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-name span {
  color: var(--copper);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #c5cccd;
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-nav > a:hover {
  color: #fff;
}

.main-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 17px;
  color: var(--text);
  border: 1px solid rgba(220, 138, 81, 0.55);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(220, 138, 81, 0.1);
  border-color: var(--copper);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 9px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: var(--text);
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  min-height: 790px;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/hero-cnc.jpg") center center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.83) 34%, rgba(8, 11, 13, 0.08) 72%),
    linear-gradient(0deg, rgba(8, 11, 13, 0.8) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.55) 0%, transparent 30%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(80, 214, 232, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 214, 232, 0.09) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, transparent 55%);
}

.hero-content,
.hero-meta {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin-right: auto;
  margin-left: auto;
}

.hero-content {
  padding-top: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 27px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.payment h2,
.order h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.4vw, 91px);
  line-height: 1.04;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(240, 166, 109, 0.95);
}

.hero-lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: #bbc3c4;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 38px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: #100d0a;
  background: var(--copper);
}

.button-primary:hover {
  background: var(--copper-bright);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 33px;
  left: 0;
  display: flex;
  gap: 50px;
}

.hero-meta div {
  min-width: 130px;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
}

.hero-meta span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.scroll-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  background: var(--copper);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -80%; }
  60%, 100% { top: 110%; }
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 130px 0;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 65px;
}

.section-heading h2,
.payment h2,
.order h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.12;
}

.section-heading > p:last-child,
.heading-row > p,
.payment-copy > p,
.order-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-heading > p:last-child {
  max-width: 590px;
  margin: 22px 0 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 34px 28px;
  overflow: hidden;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card::before {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(80, 214, 232, 0.12), transparent 68%);
  content: "";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  z-index: 1;
  background: var(--panel);
  transform: translateY(-7px);
}

.service-card:hover::before {
  opacity: 1;
}

.card-index {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #475154;
  font-family: var(--display);
  font-size: 11px;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 65px;
  color: var(--copper);
}

.service-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.service-card h3 {
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.prices {
  padding-top: 30px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.price-card {
  position: relative;
  min-height: 330px;
  padding: 38px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.price-card::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(80, 214, 232, 0.1), transparent 68%);
  content: "";
}

.price-card-accent {
  background:
    linear-gradient(135deg, rgba(220, 138, 81, 0.12), transparent 55%),
    var(--panel);
  border-color: rgba(220, 138, 81, 0.35);
}

.price-card > p:first-of-type {
  margin: 0 0 28px;
  color: var(--copper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.price-card h3 {
  max-width: 370px;
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.45;
}

.price-value {
  margin: 32px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--copper-bright);
}

.price-value small {
  color: var(--muted);
  font-size: 12px;
}

.price-value strong {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.price-value span {
  font-family: var(--display);
  font-size: 22px;
}

.price-description {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.price-notice {
  grid-column: 1 / -1;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: #15110e;
  border: 1px solid rgba(220, 138, 81, 0.4);
}

.price-notice > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--copper);
  border: 1px solid rgba(220, 138, 81, 0.55);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.price-notice strong {
  font-size: 14px;
  line-height: 1.55;
}

.price-notice p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.portfolio {
  position: relative;
}

.portfolio::before {
  position: absolute;
  top: 0;
  right: calc((100vw - var(--page)) / -2);
  bottom: 0;
  left: calc((100vw - var(--page)) / -2);
  z-index: -1;
  background: #0b0f11;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  content: "";
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.heading-row > p {
  max-width: 420px;
  margin: 0 0 4px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: repeat(2, 330px);
  gap: 18px;
}

.portfolio-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.portfolio-main {
  grid-row: 1 / 3;
}

.portfolio-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 8, 0.92), transparent 48%);
  content: "";
}

.portfolio-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portfolio-item:hover img {
  transform: scale(1.045);
}

.portfolio-item figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 1;
}

.portfolio-item figcaption span,
.signature {
  display: block;
  margin-bottom: 8px;
  color: var(--copper-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-item figcaption strong {
  font-family: var(--display);
  font-size: 17px;
}

.portfolio-note {
  position: relative;
  padding: 45px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.portfolio-note .quote-mark {
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: 62px;
  line-height: 0.7;
}

.portfolio-note p {
  position: relative;
  z-index: 1;
  max-width: 410px;
  margin: 20px 0 30px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.7;
}

.signature {
  margin: 0;
  color: var(--muted);
}

.trace-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 230px;
  height: 180px;
  opacity: 0.18;
  transform: rotate(-18deg);
}

.trace-art i {
  position: absolute;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
}

.trace-art i::before {
  position: absolute;
  top: -3px;
  left: 20%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  content: "";
}

.trace-art i:nth-child(1) { top: 20px; width: 70%; }
.trace-art i:nth-child(2) { top: 50px; width: 88%; }
.trace-art i:nth-child(3) { top: 80px; width: 55%; }
.trace-art i:nth-child(4) { top: 110px; width: 100%; }
.trace-art i:nth-child(5) { top: 140px; width: 78%; }

.process-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  padding: 0 26px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: -4px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.process-list > li > span {
  width: 45px;
  margin-top: -1px;
  padding-top: 22px;
  color: var(--copper);
  border-top: 2px solid var(--copper);
  font-family: var(--display);
  font-size: 11px;
}

.process-list h3 {
  margin: 34px 0 12px;
  font-family: var(--display);
  font-size: 15px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.payment {
  padding-top: 0;
}

.payment-card {
  position: relative;
  padding: 70px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 90px;
  background:
    linear-gradient(110deg, rgba(220, 138, 81, 0.12), transparent 40%),
    var(--panel);
  border: 1px solid rgba(220, 138, 81, 0.27);
}

.payment-card::after {
  position: absolute;
  top: -200px;
  right: -130px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(80, 214, 232, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(80, 214, 232, 0.025), 0 0 0 110px rgba(80, 214, 232, 0.02);
  content: "";
}

.payment-copy,
.payment-action {
  position: relative;
  z-index: 1;
}

.payment-copy > p {
  max-width: 560px;
  margin: 22px 0 0;
}

.payment-features {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 26px;
  color: #c9cfd0;
  font-size: 13px;
}

.payment-features span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-features i {
  color: var(--copper);
  font-style: normal;
}

.seller-details {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.seller-details small,
.seller-details strong {
  display: block;
}

.seller-details small {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.seller-details strong {
  font-size: 13px;
  font-weight: 600;
}

.payment-action {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 7, 8, 0.5);
  border: 1px solid var(--line);
}

.yookassa-mark {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.yookassa-mark > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: #7f45e6;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 800;
}

.yookassa-mark small,
.yookassa-mark strong {
  display: block;
}

.yookassa-mark small {
  color: var(--muted);
  font-size: 10px;
}

.yookassa-mark strong {
  margin-top: 2px;
  font-size: 18px;
}

.payment-action > small {
  margin-top: 13px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.order {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
}

.order-copy {
  padding-top: 10px;
}

.order-copy > p {
  margin: 22px 0 0;
}

.contact-list {
  margin-top: 50px;
  display: grid;
  gap: 22px;
}

.contact-list a {
  width: fit-content;
}

.contact-list small,
.contact-list span {
  display: block;
}

.contact-list small {
  margin-bottom: 6px;
  color: var(--copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list span {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
}

.order-form {
  padding: 42px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.order-form label:not(.consent) {
  margin-bottom: 24px;
  display: block;
}

.order-form label > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: #c9d0d1;
  font-size: 11px;
  font-weight: 700;
}

.order-form input,
.order-form textarea {
  width: 100%;
  color: var(--text);
  outline: none;
  background: #0b0f11;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-form input {
  height: 49px;
  padding: 0 15px;
}

.order-form textarea {
  padding: 14px 15px;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: rgba(220, 138, 81, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 138, 81, 0.06);
}

.order-form ::placeholder {
  color: #586164;
}

.file-field {
  min-height: 74px;
  padding: 14px 16px;
  display: flex !important;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  color: var(--copper) !important;
  border: 1px solid rgba(220, 138, 81, 0.4);
  font-size: 21px !important;
  font-weight: 400 !important;
}

.file-field > span:nth-child(3) {
  margin: 0 !important;
}

.file-field strong,
.file-field small {
  display: block;
}

.file-field strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.file-field small {
  color: var(--muted);
  font-size: 10px;
}

.file-field i {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.form-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.consent {
  max-width: 300px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--copper);
}

.form-status {
  min-height: 18px;
  margin: 16px 0 0;
  color: var(--copper-bright);
  font-size: 11px;
}

.site-footer {
  width: var(--page);
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.site-footer > p {
  margin: 0;
}

.site-footer > span {
  text-align: right;
}

.footer-links {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: -35px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--text);
}

.site-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 48px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid rgba(220, 138, 81, 0.4);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.site-dialog::backdrop {
  background: rgba(3, 5, 6, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 28px;
}

.dialog-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 23px;
  display: grid;
  place-items: center;
  color: #17100b;
  background: var(--copper);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 24px;
}

.site-dialog h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
}

.site-dialog p {
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  :root {
    --page: min(100% - 40px, 760px);
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(48px, 9vw, 76px);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 520px 360px auto;
  }

  .prices {
    padding-top: 15px;
  }

  .portfolio-main {
    grid-row: auto;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 20px;
  }

  .payment-card,
  .order {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .payment-card {
    padding: 54px;
  }

  .contact-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .menu-toggle {
    z-index: 2;
    display: block;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    padding: 110px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 11, 13, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a:not(.nav-cta) {
    padding: 18px 0;
    display: block;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 18px;
  }

  .nav-cta {
    margin-top: 28px;
    text-align: center;
  }

  .hero {
    min-height: 740px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.96), rgba(8, 11, 13, 0.42)),
      linear-gradient(0deg, rgba(8, 11, 13, 0.92), transparent 65%);
  }

  .hero-content {
    padding-top: 25px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.4vw, 48px);
    line-height: 1.08;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-meta {
    bottom: 25px;
    gap: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta div {
    min-width: 0;
  }

  .hero-meta strong {
    font-size: 12px;
  }

  .hero-meta span {
    font-size: 8px;
    line-height: 1.4;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .payment h2,
  .order h2 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 300px;
    padding: 30px 24px;
  }

  .price-notice {
    grid-column: auto;
    padding: 27px 23px;
    grid-template-columns: auto 1fr;
  }

  .price-notice .button {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 260px;
  }

  .service-icon {
    margin-bottom: 40px;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-rows: 430px 300px auto;
  }

  .portfolio-note {
    padding: 35px 28px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .process-list li:not(:last-child)::after {
    display: none;
  }

  .payment-card {
    padding: 36px 24px;
    gap: 36px;
  }

  .payment-features {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-action {
    padding: 25px 18px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .order-form {
    padding: 25px 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .file-field {
    align-items: flex-start;
  }

  .file-field i {
    display: none;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    padding: 42px 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    margin: 5px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-dialog {
    padding: 42px 24px 30px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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