:root {
  --dark: #0d1117;
  --dark-2: #171d25;
  --dark-3: #222a35;
  --light: #f8f7f2;
  --light-2: #efeee8;
  --card: #ffffff;
  --text: #12161d;
  --soft: #68707d;
  --line: rgba(18, 22, 29, .10);
  --accent: #9fe870;
  --accent-dark: #243700;
  --wine: #590001;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 46px;
  --shadow: 0 24px 80px rgba(13, 17, 23, .12);
  --shadow-soft: 0 16px 50px rgba(13, 17, 23, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(159, 232, 112, .18), transparent 28vw),
    radial-gradient(circle at 88% 22%, rgba(89, 0, 1, .08), transparent 30vw),
    linear-gradient(180deg, #fbfaf6 0%, #f6f5ef 100%);
}

a { color: inherit; text-underline-offset: .2em; }
img { max-width: 100%; display: block; }
strong { font-weight: 850; }

.container {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
}
.narrow {
  width: min(1040px, calc(100% - 56px));
}
.center { text-align: center; }
.light-text { color: #fff; }
#about, #services, #portfolio, #contacts, #saas-about, #saas-portfolio, #saas-benefits, #saas-price, #saas-request { scroll-margin-top: 96px; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 0;
  right: 0;
}
.site-header.solid {
  position: relative;
  top: 0;
  background: var(--dark);
  padding: 14px 0;
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(13, 17, 23, .56);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}
.site-header.solid .nav {
  box-shadow: none;
  background: rgba(255, 255, 255, .06);
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
}
.brand img { width: 138px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:not(.btn):hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  text-decoration: none;
  line-height: 1.15;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 17, 23, .14);
}
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--accent); color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; border-color: rgba(255, 255, 255, .10); }
.btn-dark:hover { background: var(--dark-3); }
.btn-primary { background: #fff; color: var(--dark); border-color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.nav-cta { margin-left: 8px; }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, .54), rgba(13, 17, 23, .12) 48%, rgba(13, 17, 23, .28)),
    url('../images/hero.webp') center / cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: min(760px, 70vw);
  height: 160px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(159, 232, 112, .13);
  filter: blur(60px);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content h1 {
  font-size: clamp(3.8rem, 8.5vw, 9.4rem);
  line-height: .92;
  margin: 0 0 26px;
  font-weight: 950;
  letter-spacing: -.075em;
  max-width: 980px;
}
.lead-label {
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-style: italic;
  margin-bottom: 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, .88);
}
.lead-label a { color: var(--accent); font-weight: 850; }
.hero-text {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.28;
  max-width: 820px;
  margin: 0 0 36px;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.section { padding: 112px 0; }
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
}
.two-columns.reverse { direction: rtl; }
.two-columns.reverse > * { direction: ltr; }
.text-block h2,
.section-head h2,
.portfolio-intro h2,
.policy-page h1 {
  font-size: clamp(2.35rem, 4.7vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 28px;
  font-weight: 950;
  letter-spacing: -.052em;
}
.text-block p,
.section-head p,
.portfolio-intro p {
  font-size: clamp(1.04rem, 1.1vw, 1.2rem);
  margin: 0 0 18px;
  color: var(--soft);
}
.text-block a { color: var(--wine); font-weight: 850; }
.image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about .image-frame img,
.refresh .image-frame img,
.contacts .image-frame img { aspect-ratio: 1 / 1; }

.dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(159, 232, 112, .12), transparent 34vw),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
}
.section-head { max-width: 900px; margin: 0 auto 52px; }
.section-head p { color: rgba(255, 255, 255, .72); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .72);
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}
.service-card img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}
.card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.card-body h3 {
  font-size: clamp(1.35rem, 1.35vw, 1.7rem);
  line-height: 1.13;
  margin: 0;
  font-weight: 950;
  letter-spacing: -.02em;
}
.card-body p { margin: 0; color: #343a44; }
.card-body .btn { margin-top: auto; background: var(--dark); color: #fff; border-color: var(--dark); }
.card-body .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.portfolio-intro { padding-bottom: 28px; background: transparent; }
.portfolio-intro p { color: var(--soft); }
.portfolio-list { padding: 28px 0 112px; background: transparent; }
.portfolio-grid { display: grid; gap: 34px; }
.portfolio-card {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(380px, .78fr);
  align-items: stretch;
  background:
    radial-gradient(circle at 20% 20%, rgba(159, 232, 112, .13), transparent 32%),
    linear-gradient(135deg, #111720 0%, #0d1117 100%);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .08);
}
.portfolio-card:nth-child(even) { grid-template-columns: minmax(380px, .78fr) minmax(520px, 1.05fr); }
.portfolio-card:nth-child(even) img { order: 2; }
.portfolio-card > img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: center top;
  padding: clamp(14px, 1.4vw, 24px);
  background:
    linear-gradient(180deg, #f4f5f1 0%, #e8ebe4 100%);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(13, 17, 23, .06);
}
.portfolio-text {
  padding: clamp(34px, 3.4vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio-text h3 {
  font-size: clamp(1.65rem, 2.3vw, 3rem);
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: -.035em;
}
.portfolio-text p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); }
.portfolio-text .date {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #dfffc9;
  background: rgba(159, 232, 112, .12);
  border: 1px solid rgba(159, 232, 112, .18);
  font-weight: 850;
}
.portfolio-text .btn {
  align-self: flex-start;
  margin-top: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.refresh { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.refresh .text-block p { color: rgba(255, 255, 255, .78); }
.refresh .text-block a { color: var(--accent); }
.contacts { background: var(--light-2); }
.contact-panel {
  padding: clamp(30px, 4vw, 64px);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
}
.contacts .section-head { margin-bottom: 30px; }
.contacts .section-head h2 { color: var(--dark); }
.contacts .section-head p { color: var(--soft); }
.contact-form { display: grid; gap: 15px; }
.contact-form label span:first-child { position: absolute; left: -10000px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 22, 29, .08);
  background: #f6f6f1;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--dark);
  outline: 3px solid transparent;
  transition: background .2s ease, border-color .2s ease, outline-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: rgba(13, 17, 23, .22);
  outline-color: rgba(159, 232, 112, .38);
}
.contact-form textarea { min-height: 146px; resize: vertical; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #7a8089;
  font-size: .94rem;
}
.checkbox input { width: auto; margin-top: 4px; accent-color: var(--dark); }
.checkbox span:first-child { position: static; left: auto; }
.checkbox a { color: var(--wine); }
.contact-form button { justify-self: center; background: var(--wine); color: #fff; border-color: var(--wine); }
.contact-form button:hover { background: var(--dark); border-color: var(--dark); }
.form-note { margin: 0; text-align: center; color: #4b5563; }

.footer {
  background: var(--dark);
  color: #fff;
  padding: 86px 0;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}
.footer-inner { text-align: center; }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
}
.footer-menu a {
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  font-weight: 900;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.footer-menu a:hover { background: rgba(255, 255, 255, .08); color: var(--accent); }
.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 42px;
}
.socials a {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 950;
  font-size: 22px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .22); }
.footer-copy { margin: 0 auto; color: rgba(255, 255, 255, .72); font-size: .95rem; max-width: 900px; }
.footer-copy a { color: #fff; }
.footer-copy a:hover { color: var(--accent); }

.policy-page { padding-top: 104px; background: transparent; }
.policy-page h1 { text-align: center; margin-bottom: 50px; }
.policy-list { display: grid; gap: 16px; }
.policy-item {
  border: 1px solid rgba(18, 22, 29, .09);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.policy-item summary {
  cursor: pointer;
  padding: 24px 28px;
  font-size: 1.22rem;
  font-weight: 950;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.policy-item summary::-webkit-details-marker { display: none; }
.policy-item summary::after { content: '+'; font-size: 1.8rem; line-height: 1; color: var(--wine); }
.policy-item[open] summary::after { content: '-'; }
.policy-content { padding: 0 28px 28px; color: #29303a; }
.policy-content p { margin: 0; }
.policy-content br { content: ""; display: block; margin: .28rem 0; }

@media (max-width: 1220px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-card,
  .portfolio-card:nth-child(even) { grid-template-columns: 1fr; }
  .portfolio-card:nth-child(even) img { order: 0; }
  .portfolio-card > img { height: 500px; }
  .two-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .container, .narrow { width: min(100% - 32px, 1600px); }
  .site-header:not(.solid) { top: 12px; }
  .site-header.solid { padding: 10px 0; }
  .nav { min-height: 70px; padding: 10px 12px; border-radius: 28px; }
  .brand img { width: 118px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 82px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 17, 23, .96);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; }
  .hero { min-height: 730px; border-bottom-left-radius: 34px; border-bottom-right-radius: 34px; }
  .hero-bg {
    background:
      linear-gradient(90deg, rgba(13, 17, 23, .80), rgba(13, 17, 23, .34)),
      url('../images/hero.webp') 65% center / cover no-repeat;
  }
  .hero-content { padding-top: 132px; }
  .hero-text { max-width: 94%; }
  .actions .btn { width: 100%; }
  .section { padding: 76px 0; }
  .two-columns,
  .two-columns.reverse { display: grid; grid-template-columns: 1fr; direction: ltr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card img { height: 240px; }
  .portfolio-list { padding-bottom: 76px; }
  .portfolio-card { border-radius: 32px; }
  .portfolio-card > img { height: 320px; padding: 12px; border-radius: 24px; }
  .portfolio-text { padding: 30px 24px 34px; }
  .portfolio-text .btn { width: 100%; }
  .contact-panel { padding: 28px 20px; border-radius: 32px; }
  .footer { padding: 64px 0; border-top-left-radius: 34px; border-top-right-radius: 34px; }
  .socials a { width: 58px; height: 58px; font-size: 18px; }
  .policy-page { padding-top: 72px; }
  .policy-item { border-radius: 20px; }
  .policy-item summary { font-size: 1.05rem; padding: 18px; }
  .policy-content { padding: 0 18px 20px; }
}

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


/* SaaS landing page */
.saas-intro .text-content p { font-size: clamp(1.08rem, 1.18vw, 1.28rem); color: #38404b; }
.saas-portfolio-intro { padding-bottom: 24px; }
.saas-benefits { border-radius: var(--radius-xl); }
.saas-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.saas-benefits-grid article {
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 58px rgba(0,0,0,.18);
}
.saas-benefits-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--dark);
  background: var(--accent);
  font-weight: 950;
}
.saas-benefits-grid h3 {
  margin: 0 0 14px;
  font-size: clamp(1.28rem, 1.45vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.saas-benefits-grid p { margin: 0; color: rgba(255,255,255,.76); }
.saas-price .text-block ul {
  margin: 18px 0 22px;
  padding-left: 22px;
  color: var(--soft);
}
.saas-price .text-block li { margin-bottom: 10px; }
.saas-price .text-block strong { color: var(--dark); }
.saas-price .image-frame img { aspect-ratio: 1.18 / 1; object-fit: cover; }
.saas-request { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); }
@media (max-width: 1220px) {
  .saas-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .saas-benefits { border-radius: 34px; }
  .saas-benefits-grid { grid-template-columns: 1fr; }
  .saas-benefits-grid article { min-height: auto; padding: 24px; }
}


/* Service landing pages */
.service-intro .text-content p { font-size: clamp(1.08rem, 1.18vw, 1.28rem); color: #38404b; }
.service-benefits { border-radius: var(--radius-xl); }
.service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.service-benefits-grid article {
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 58px rgba(0,0,0,.18);
}
.service-benefits-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--dark);
  background: var(--accent);
  font-weight: 950;
}
.service-benefits-grid h3 {
  margin: 0 0 14px;
  font-size: clamp(1.28rem, 1.45vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.service-benefits-grid p { margin: 0; color: rgba(255,255,255,.76); }
.service-process .text-block ul {
  margin: 18px 0 22px;
  padding-left: 22px;
  color: var(--soft);
}
.service-process .text-block li { margin-bottom: 10px; }
.service-process .text-block strong { color: var(--dark); }
.service-process .image-frame img { aspect-ratio: 1.18 / 1; object-fit: cover; }
.service-cases { padding-top: 20px; }
.service-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.service-cases-grid article {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(20, 25, 31, .08);
  box-shadow: var(--shadow-soft);
}
.service-cases-grid img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}
.service-cases-grid h3 { margin: 22px 22px 10px; font-size: 1.22rem; }
.service-cases-grid p { margin: 0 22px 24px; color: var(--soft); }
.service-proof { padding-top: 20px; }
.proof-card {
  padding: clamp(34px, 5vw, 72px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255, 196, 87, .24), transparent 34%), linear-gradient(135deg, #101820, #273240);
  box-shadow: var(--shadow-strong);
}
.proof-card .proof-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--dark);
  background: var(--accent);
  font-weight: 950;
}
.proof-card h2 { max-width: 820px; color: #fff; }
.proof-card p:not(.proof-label) { max-width: 780px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.service-request { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); }
@media (max-width: 1220px) {
  .service-benefits-grid, .service-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .service-benefits { border-radius: 34px; }
  .service-benefits-grid, .service-cases-grid { grid-template-columns: 1fr; }
  .service-benefits-grid article { min-height: auto; padding: 24px; }
  .service-cases-grid img { height: 220px; }
}
