:root {
  --bg: #ffffff;
  --muted-bg: #f5f6f7;
  --ink: #20242a;
  --text: #626a73;
  --soft: #9aa3ad;
  --line: rgba(32, 36, 42, 0.14);
  --accent: #e7746f;
  --accent-strong: #d85652;
  --teal: #2ca58d;
  --blue: #3578e5;
  --gold: #c18b28;
  --violet: #7861c9;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(27, 34, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: #eeeeee;
  box-shadow: 0 8px 28px rgba(20, 28, 38, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1140px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 27px;
  color: #fff;
  white-space: nowrap;
}

.site-header.scrolled .brand,
.site-header.menu-active .brand {
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-header.scrolled .nav-menu a,
.site-header.menu-active .nav-menu a {
  color: var(--ink);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.site-header.scrolled .nav-toggle,
.site-header.menu-active .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 90px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 25, 40, 0.92), rgba(48, 66, 84, 0.78)),
    radial-gradient(circle at 20% 25%, rgba(231, 116, 111, 0.22), transparent 34%),
    #1f2833;
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  text-align: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.84);
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  max-width: 100%;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

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

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-left: -25px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
}

.scroll-down svg {
  width: 24px;
  height: 24px;
  animation: drop 1.2s linear infinite;
}

@keyframes drop {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

.section {
  padding: 110px 0 96px;
}

.section-muted {
  background: var(--muted-bg);
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section-header {
  max-width: 740px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-header-left {
  margin: 0;
  text-align: left;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
}

.section-line {
  display: block;
  width: 100px;
  height: 1px;
  margin: 26px auto 24px;
  background: rgba(32, 36, 42, 0.26);
}

.section-header-left .section-line {
  margin-left: 0;
}

.section-header p {
  margin: 0;
  font-size: 18px;
}

.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card,
.process-step {
  min-height: 255px;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid #e7ebef;
  border-bottom-color: #cfd6dc;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 12px 26px rgba(27, 34, 44, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(231, 116, 111, 0.34);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--ink);
  border: 1px solid #dbe1e6;
  border-radius: 8px;
  background: #f9fafb;
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-card h3,
.portfolio-card h3,
.skill-ring h3,
.process-step h3 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.2;
}

.service-card p,
.portfolio-card p,
.process-step p {
  margin: 0;
}

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

.portfolio-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e9ee;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(27, 34, 44, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.work-preview {
  position: relative;
  min-height: 230px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background: #2e3844;
}

.work-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.preview-green { background: linear-gradient(135deg, #183d3b, #2ca58d); }
.preview-blue { background: linear-gradient(135deg, #18324f, #3578e5); }
.preview-red { background: linear-gradient(135deg, #4d2732, #d65b5b); }
.preview-violet { background: linear-gradient(135deg, #302a58, #7861c9); }
.preview-gold { background: linear-gradient(135deg, #4f3a19, #c18b28); }
.preview-dark { background: linear-gradient(135deg, #1e252c, #56616e); }

.browser-bar,
.preview-hero,
.preview-lines,
.preview-grid-small,
.catalog-visual,
.article-visual,
.promo-visual,
.support-visual {
  position: relative;
  z-index: 1;
}

.browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.92);
}

.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.browser-bar span:nth-child(2) {
  background: #e3ba4b;
}

.browser-bar span:nth-child(3) {
  background: #42b883;
}

.preview-hero {
  height: 76px;
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.preview-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.preview-lines span,
.article-visual span,
.support-visual span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.preview-lines span:nth-child(2) {
  width: 72%;
}

.preview-lines span:nth-child(3) {
  width: 48%;
}

.preview-grid-small,
.catalog-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.preview-grid-small span,
.catalog-visual span {
  display: block;
  min-height: 70px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

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

.article-visual,
.support-visual {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.article-visual span:first-child {
  height: 58px;
  border-radius: 8px;
}

.article-visual span:nth-child(3) {
  width: 64%;
}

.promo-visual {
  min-height: 146px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 18px;
}

.promo-visual span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.promo-visual span:last-child {
  align-self: center;
  height: 92px;
}

.support-visual span {
  height: 34px;
}

.support-visual span:nth-child(2) {
  width: 82%;
}

.support-visual span:nth-child(3) {
  width: 58%;
}

.portfolio-caption {
  padding: 24px;
}

.skills-section {
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(20, 27, 36, 0.96), rgba(47, 57, 68, 0.94)),
    #20262e;
}

.skills-section h2,
.skills-section h3 {
  color: #fff;
}

.skills-section .section-line {
  background: rgba(255, 255, 255, 0.35);
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.advantage-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.advantage-list li {
  position: relative;
  padding-left: 24px;
}

.advantage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 28px;
}

.skill-ring {
  text-align: center;
}

.ring {
  --progress: calc(var(--value) * 1%);
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #20262e 75%, transparent 76%),
    conic-gradient(var(--accent) var(--progress), rgba(255, 255, 255, 0.14) 0);
}

.ring span {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
}

.process-step {
  text-align: left;
}

.process-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
}

.reviews-section {
  background: #fff;
}

.review-slider {
  position: relative;
  max-width: 960px;
  min-height: 265px;
  margin: 0 auto;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.review {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 38px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}

.review.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review p {
  margin: 0 0 24px;
  color: #767d86;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.55;
  font-weight: 400;
}

.review footer {
  color: var(--ink);
  font-weight: 800;
}

.contact-section {
  background: var(--muted-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid #e0e6ec;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(27, 34, 44, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(231, 116, 111, 0.8);
  box-shadow: 0 0 0 4px rgba(231, 116, 111, 0.14);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .button {
  width: max-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.footer {
  padding: 42px 20px;
  color: #fff;
  text-align: center;
  background: #22272e;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer p {
  margin: 0;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(32, 36, 42, 0.55);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--accent);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: flex !important;
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 3;
    background: rgba(231, 116, 111, 0.96);
    border-color: rgba(231, 116, 111, 0.96);
    visibility: visible;
    opacity: 1;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid #e7ebef;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav {
    width: calc(100vw - 40px);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 13px 12px;
    color: var(--ink);
  }

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

  .skills-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav,
  .container {
    width: calc(100vw - 28px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    top: 58px;
    right: auto;
    left: 14px;
    width: 38px;
    height: 38px;
  }

  .brand {
    font-size: 24px;
  }

  .nav-menu {
    top: 104px;
    left: 14px;
    right: 14px;
  }

  .hero {
    min-height: 94vh;
    padding: 112px 14px 82px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-text {
    max-width: 330px;
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 76px 0 66px;
  }

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

  .service-grid,
  .process-grid,
  .portfolio-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .work-preview {
    min-height: 210px;
  }

  .review-slider {
    min-height: 370px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
