:root {
  --color-black: #111318;
  --color-cream: #f6f5f2;
  --color-white: #ffffff;
  --color-border: #d8dce3;
  --color-muted: #7f8896;
  --color-blue: #4c6fff;
  --color-blue-dark: #3555d8;
  --shadow-soft: 0 18px 45px rgba(17, 19, 24, 0.08);
  --shadow-card: 0 12px 32px rgba(17, 19, 24, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  position: relative;
  margin: 0;
  color: var(--color-black);
  background:
    radial-gradient(circle at 18% 8%, rgba(76, 111, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-cream) 48%, #ffffff 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(17, 19, 24, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(76, 111, 255, 0.018) 1px, transparent 1px);
  background-position: center top;
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(76, 111, 255, 0.5);
  outline-offset: 4px;
}

.site-header,
main,
.site-footer,
.modal-overlay {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 14px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 102px 0;
}

.section-label {
  margin: 0 0 14px;
  color: var(--color-blue);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-black);
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(2.85rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.94;
}

h1 span {
  color: var(--color-blue);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.03;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  color: var(--color-muted);
}

.monogram {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.monogram-bars {
  color: var(--color-blue);
  stroke: currentColor;
  stroke-width: 4;
}

.monogram-light {
  color: var(--color-white);
}

.monogram-dark {
  color: var(--color-black);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(216, 220, 227, 0.7);
  background: rgba(246, 245, 242, 0.88);
  backdrop-filter: blur(18px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    height 0.25s ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(17, 19, 24, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    var(--color-black);
  color: var(--color-white);
  padding: 8px 7px;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.11);
}

.brand-name,
.footer-brand {
  color: var(--color-black);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a,
.footer-links a {
  color: rgba(17, 19, 24, 0.74);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.footer-links a:hover {
  color: var(--color-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 14px 26px rgba(76, 111, 255, 0.2);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  box-shadow: 0 17px 32px rgba(76, 111, 255, 0.28);
}

.btn-secondary {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-black);
}

.btn-secondary:hover {
  border-color: rgba(76, 111, 255, 0.35);
  color: var(--color-blue);
  box-shadow: var(--shadow-card);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-black);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

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

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 74px);
  padding-bottom: 80px;
}

.hero::before {
  position: absolute;
  top: 18%;
  right: 6vw;
  width: min(26vw, 360px);
  height: min(26vw, 360px);
  content: "";
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(76, 111, 255, 0.1) 35% 37%, transparent 37% 45%, rgba(127, 136, 150, 0.12) 45% 47%, transparent 47% 55%, rgba(76, 111, 255, 0.09) 55% 57%, transparent 57%),
    radial-gradient(circle, rgba(76, 111, 255, 0.08), transparent 62%);
  opacity: 0.72;
  pointer-events: none;
}

.hero-brand-ghost {
  position: absolute;
  right: -2vw;
  bottom: 4vh;
  color: rgba(17, 19, 24, 0.026);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(8rem, 22vw, 21rem);
  font-weight: 700;
  line-height: 0.8;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 86px);
}

.hero-content {
  min-width: 0;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(17, 19, 24, 0.68);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  content: "";
  inset: 12% -4% auto auto;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(76, 111, 255, 0.08);
  filter: blur(18px);
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 220, 227, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 242, 0.88)),
    var(--color-white);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-soft);
}

.dashboard-card::before {
  position: absolute;
  inset: auto 0 0 auto;
  width: 46%;
  height: 46%;
  content: "";
  background: linear-gradient(135deg, transparent 0 44%, rgba(76, 111, 255, 0.07) 44% 46%, transparent 46%);
  opacity: 0.9;
}

.dashboard-card::after {
  position: absolute;
  content: "";
  right: 24px;
  bottom: 26px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(76, 111, 255, 0.18) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.8;
}

.dashboard-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.mini-label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-top strong {
  display: block;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.brand-chip {
  display: grid;
  place-items: center;
  width: 74px;
  height: 34px;
  border: 1px solid rgba(216, 220, 227, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-black);
  padding: 7px;
}

.laptop-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(127, 136, 150, 0.28);
  border-radius: 18px;
  background: var(--color-white);
  padding: 14px;
  box-shadow: 0 28px 50px rgba(17, 19, 24, 0.08);
}

.laptop-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.laptop-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.laptop-toolbar span:first-child {
  background: var(--color-blue);
}

.laptop-screen {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(216, 220, 227, 0.85);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(76, 111, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(76, 111, 255, 0.07) 1px, transparent 1px),
    #fbfcfe;
  background-size: 28px 28px;
  padding: 24px;
}

.screen-brand {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(17, 19, 24, 0.055);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.chart-line {
  position: relative;
  height: 74px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(216, 220, 227, 0.9);
}

.chart-line::before {
  position: absolute;
  content: "";
  inset: 8px 0 6px;
  background:
    linear-gradient(135deg, transparent 0 15%, var(--color-blue) 15% 18%, transparent 18% 34%, var(--color-blue) 34% 37%, transparent 37% 58%, var(--color-blue) 58% 61%, transparent 61%),
    linear-gradient(180deg, rgba(76, 111, 255, 0.14), transparent 78%);
  clip-path: polygon(0 72%, 18% 50%, 36% 60%, 56% 32%, 76% 42%, 100% 18%, 100% 100%, 0 100%);
}

.interface-row {
  position: relative;
  height: 12px;
  width: 72%;
  margin-bottom: 12px;
  border-radius: 99px;
  background: #e9edf4;
}

.interface-row.wide {
  width: 92%;
}

.interface-row.short {
  width: 48%;
  background: rgba(76, 111, 255, 0.24);
}

.service-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-line {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(216, 220, 227, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  color: var(--color-black);
  font-size: 0.94rem;
  font-weight: 700;
}

.line-icon,
.icon-box {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--color-blue);
}

.line-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(76, 111, 255, 0.08);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.two-column,
.portfolio-intro,
.skills-layout,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.05fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.section-lead,
.section-heading p,
.portfolio-intro p,
.skills-layout p,
.about-copy p,
.contact-copy p {
  max-width: 720px;
  font-size: 1.04rem;
}

.values-grid,
.services-grid,
.pricing-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.value-card,
.service-card,
.pricing-card,
.project-card,
.method-card,
.contact-form {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 220, 227, 0.88);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.value-card {
  min-height: 178px;
  padding: 28px;
}

.card-number {
  display: block;
  margin-bottom: 36px;
  color: var(--color-blue);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.value-card p,
.service-card p,
.pricing-card p,
.project-card p {
  margin-bottom: 0;
}

.services,
.about {
  border-top: 1px solid rgba(216, 220, 227, 0.65);
  border-bottom: 1px solid rgba(216, 220, 227, 0.65);
  background: rgba(255, 255, 255, 0.48);
}

.services {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 245, 242, 0.72)),
    linear-gradient(90deg, transparent 0 64%, rgba(76, 111, 255, 0.035) 64% 64.2%, transparent 64.2% 70%, rgba(127, 136, 150, 0.035) 70% 70.2%, transparent 70.2%);
}

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

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

.service-card,
.pricing-card,
.project-card {
  padding: 28px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.service-card:hover,
.pricing-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 111, 255, 0.32);
  box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
}

.icon-box {
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 1px solid rgba(76, 111, 255, 0.18);
  border-radius: 13px;
  background: rgba(76, 111, 255, 0.08);
}

.pricing {
  background:
    linear-gradient(180deg, rgba(246, 245, 242, 0.86), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 82% 10%, rgba(76, 111, 255, 0.06), transparent 28%);
}

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

.pricing-card {
  display: flex;
  min-height: 448px;
  flex-direction: column;
}

.pricing-head {
  min-height: 116px;
  margin-bottom: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(216, 220, 227, 0.78);
}

.price {
  color: var(--color-blue);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.08;
}

.pricing-description {
  color: rgba(17, 19, 24, 0.68);
  font-size: 0.96rem;
}

.pricing-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(17, 19, 24, 0.76);
  font-size: 0.94rem;
  font-weight: 600;
}

.pricing-list li::before {
  position: absolute;
  content: "";
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--color-blue);
  border-radius: 50%;
  background: rgba(76, 111, 255, 0.08);
}

.pricing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  border: 1px solid rgba(216, 220, 227, 0.88);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.pricing-footer p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(17, 19, 24, 0.7);
  font-weight: 600;
}

.portfolio-intro {
  margin-bottom: 42px;
}

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

.project-card {
  display: flex;
  min-height: 318px;
  flex-direction: column;
}

.project-category {
  display: block;
  margin-bottom: 16px;
  color: var(--color-blue);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.text-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  border: 0;
  background: transparent;
  color: var(--color-blue);
  padding: 24px 0 0;
  font-weight: 800;
}

.text-button::after {
  content: "";
  width: 19px;
  height: 2px;
  margin-left: 10px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.text-button:hover::after {
  transform: translateX(4px);
}

.skills {
  padding-block: 86px;
}

.skills-layout {
  align-items: center;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(216, 220, 227, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 19, 24, 0.78);
  padding: 0 16px;
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.04);
}

.about-grid {
  align-items: center;
}

.about-copy p {
  margin-bottom: 18px;
}

.local-note {
  border-left: 3px solid var(--color-blue);
  padding-left: 18px;
  color: rgba(17, 19, 24, 0.76);
  font-weight: 600;
}

.method-card {
  padding: clamp(26px, 4vw, 34px);
}

.method-card h3 {
  margin-bottom: 24px;
}

.method-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(216, 220, 227, 0.75);
  border-radius: 14px;
  background: rgba(246, 245, 242, 0.72);
  padding: 15px;
}

.method-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.method-list strong {
  color: var(--color-black);
  line-height: 1.25;
}

.contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 245, 242, 0.85)),
    radial-gradient(circle at 78% 28%, rgba(76, 111, 255, 0.07), transparent 30%);
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
}

.form-row {
  display: grid;
  gap: 8px;
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-row label {
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(216, 220, 227, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-black);
  padding: 14px 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 132px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(76, 111, 255, 0.58);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.1);
  outline: 0;
}

.form-row.is-error input,
.form-row.is-error select,
.form-row.is-error textarea {
  border-color: #c84646;
  box-shadow: 0 0 0 4px rgba(200, 70, 70, 0.08);
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.form-feedback.is-error {
  color: #b23434;
}

.form-feedback.is-success {
  color: #22613b;
}

.site-footer {
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
  padding: 54px 0 26px;
}

.site-footer::before {
  position: absolute;
  right: -18px;
  bottom: -22px;
  content: "KHZ";
  color: rgba(255, 255, 255, 0.045);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 700;
  line-height: 0.78;
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  top: 0;
  right: 10%;
  width: 120px;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent 0 35%, rgba(76, 111, 255, 0.16) 35% 37%, transparent 37% 46%, rgba(255, 255, 255, 0.08) 46% 48%, transparent 48% 57%, rgba(76, 111, 255, 0.12) 57% 59%, transparent 59%);
  opacity: 0.3;
  pointer-events: none;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-signature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-white);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
}

.footer-grid p {
  max-width: 430px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 24, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.project-modal {
  position: relative;
  width: min(100%, 640px);
  max-height: min(760px, 88vh);
  overflow: auto;
  border: 1px solid rgba(216, 220, 227, 0.92);
  border-radius: 22px;
  background: var(--color-white);
  padding: clamp(28px, 5vw, 42px);
  box-shadow: 0 28px 80px rgba(17, 19, 24, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .project-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}

.modal-close span {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-black);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.project-modal h2 {
  max-width: 500px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.modal-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.modal-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(17, 19, 24, 0.72);
}

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

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

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

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

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

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

  .hero-grid,
  .two-column,
  .portfolio-intro,
  .skills-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 640px;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    margin-left: 0;
    border: 1px solid rgba(216, 220, 227, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

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

  .main-nav a {
    border-radius: 12px;
    padding: 14px;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: rgba(76, 111, 255, 0.08);
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 50px);
  }

  .values-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .service-card,
  .pricing-card,
  .project-card {
    min-height: auto;
  }

  .pricing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.05rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 2.65rem);
  }

  .hero-actions,
  .footer-links {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .dashboard-card {
    border-radius: 18px;
  }

  .dashboard-top {
    flex-direction: column;
  }

  .brand-chip {
    align-self: flex-end;
  }

  .laptop-screen {
    min-height: 150px;
    padding: 18px;
  }

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

  .pricing-footer .btn {
    width: 100%;
  }

  .project-card {
    min-height: 288px;
  }
}
