/* ==========================================================================
   PricePlan — local rebuild of priceplan.ru landing page
   Palette, typography and spacing derived from the live site.
   ========================================================================== */

:root {
  --orange: #ff6600;
  --orange-dark: #e65c00;
  --heading: #6f6f6f;
  --text: #737373;
  --muted: #a0a0a0;
  --line: #e0e0e0;
  --line-soft: #eaedef;
  --bg-grey: #f6f8f9;
  --footer-bg: #3e454c;
  --footer-text: #a4abb3;
  --blue: #42a3ee;
  --red: #f55b63;
  --grey: #999999;
  --white: #ffffff;
  --container: 1170px;
  --header-h: 80px;
  --shadow-sm: 0 6px 18px rgba(20, 30, 40, 0.08);
  --shadow-md: 0 14px 40px rgba(20, 30, 40, 0.12);
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --mono: Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* ------------------------------ Base ------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-weight: 300;
  color: var(--heading);
}

p { margin: 0 0 16px; }

a { color: var(--orange); }

button { font-family: inherit; }

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

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ----------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
  padding: 13px 24px;
  background: var(--orange);
  color: #fff6e5;
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.28);
}

.btn--primary:active { transform: translateY(1px); }

.btn--block { width: 100%; margin-top: 14px; }

/* --------------------------- Section headings --------------------------- */

.section-head {
  padding-top: 20px;
  margin: 0 0 40px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--heading);
}

.section-head p {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 26px;
  color: var(--muted);
}

.section-head::after {
  content: "";
  display: block;
  width: 200px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--line);
}

/* ------------------------------ Header ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: block;
  flex: 0 0 auto;
  padding: 5px 0;
}

.brand img {
  display: block;
  width: 200px;
  height: auto;
}

.site-nav { margin-left: auto; }

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

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  border: 0;
  background: none;
  color: var(--orange);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--footer-bg); }

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid currentColor;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  transition: transform 0.2s ease;
}

.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 265px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--orange);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--bg-grey);
  color: var(--orange);
}

@media (min-width: 992px) {
  .nav-item.has-dropdown:hover > .dropdown,
  .nav-item.has-dropdown:focus-within > .dropdown,
  .nav-item.has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--orange);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding: 120px 0 100px;
  background: #212425 url("../img/trianglify-background.svg") no-repeat center top;
  background-size: 1920px auto;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/overaly.png") repeat;
  opacity: 0.2;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: 0;
  margin: 0 -15px;
}

.hero__media { min-width: 0; padding: 0 15px; }

.hero__content {
  padding: 20px 15px 0;
  min-width: 0;
}

.hero__title {
  margin: 0 0 15px;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.hero__list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.hero__list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 38px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.hero__list i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--orange);
  font-size: 20px;
  line-height: 20px;
}

.hero__content .btn {
  margin: 10px 0 10px 10px;
  padding: 13px 16px;
}

/* Laptop + video facade */

.laptop {
  position: relative;
  width: 100%;
  max-width: 653px;
  margin-top: 0;
}

.laptop__frame {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 22px rgba(20, 25, 30, 0.25));
}

.video {
  position: absolute;
  left: 15.4%;
  top: 5.8%;
  width: 69.2%;
  height: 77%;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0.95;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.video__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 22%),
    linear-gradient(to top, rgba(0, 0, 0, 0.62) 0, rgba(0, 0, 0, 0) 26%);
}

.video__top {
  position: absolute;
  top: 6%;
  left: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.video__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video__avatar img { display: block; width: 100%; height: auto; }

.video__meta { display: flex; flex-direction: column; min-width: 0; }

.video__title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video__channel {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #f00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.video__play i {
  color: #fff;
  font-size: 22px;
  margin-left: 3px;
}

.video__cta {
  position: absolute;
  right: 4%;
  bottom: 12%;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video__cta i { font-size: 15px; }

.video:hover .video__poster { transform: scale(1.03); opacity: 1; }
.video:hover .video__play { transform: scale(1.06); background: #ff1a1a; }

.video:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ----------------------------- Clients ---------------------------------- */

.clients { padding-top: 77px; }

.carousel {
  position: relative;
  padding: 0 56px;
}

.carousel__viewport { overflow: hidden; }

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 4px;
  border-radius: 4px;
  filter: grayscale(1);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.3s ease;
}

.client img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.client:hover { opacity: 1; transform: translateY(-2px); filter: grayscale(0); }

.carousel__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

/* ---------------------------- Advantages -------------------------------- */

.advantages { padding-top: 40px; padding-bottom: 75px; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.advantage {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  text-align: center;
  background: #fff;
  border: 1px solid #cecece;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.advantage:hover {
  transform: translateY(-4px);
  border-color: #c2c2c2;
  box-shadow: 0 16px 34px rgba(20, 30, 40, 0.09);
}

.advantage h3 {
  margin: 0 0 30px;
  padding: 32px 12px 15px;
  min-height: 70px;
  border-bottom: 1px solid #cecece;
  font-size: 16px;
  line-height: 19px;
  font-weight: 300;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--heading);
}

.advantage p {
  margin: 0 6px 16px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

/* --------------------------- Capabilities ------------------------------- */

.capabilities {
  padding: 60px 0 60px;
  background: var(--bg-grey);
  border-bottom: 1px solid var(--line-soft);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
}

.capability {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 150px;
  padding-bottom: 30px;
}

.capability__icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 1px solid var(--text);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 20px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.capability h3 {
  max-width: 270px;
  margin: 2px 0 18px;
  font-size: 18px;
  line-height: 30px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--text);
}

.capability__icon--blue { border-color: var(--blue); color: var(--blue); }
.capability__icon--red { border-color: var(--red); color: var(--red); }
.capability__icon--grey { border-color: var(--grey); color: var(--grey); }

.capability:hover .capability__icon {
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 8px 16px rgba(20, 30, 40, 0.12);
}

.capability:hover .capability__icon--blue { color: #1b8be0; }
.capability:hover .capability__icon--red { color: #e8464f; }
.capability:hover .capability__icon--grey { color: #7a7a7a; }

/* ------------------------- Developers / code ---------------------------- */

.developers { padding: 60px 0 183px; }

.developers__grid {
  display: grid;
  grid-template-columns: 570px 470px;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}

.code-block { min-width: 0; }

.code-tabs {
  display: flex;
  margin-left: 10px;
  position: relative;
  z-index: 1;
}

.code-tab {
  padding: 10px 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #428bca;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.code-tab:hover { color: #2a6496; }

.code-tab.is-active {
  background: #fff;
  border-color: #ddd;
  color: #555;
}

.code-panel { position: relative; }

.code-panel[hidden] { display: none; }

.code {
  height: 340px;
  margin: 0;
  padding: 2px 0;
  overflow: auto;
  background: #333;
  border: 1px solid #888;
  border-radius: 6px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #f0f0f0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18.5714px;
  tab-size: 4;
}

.code::-webkit-scrollbar { width: 10px; height: 10px; }
.code::-webkit-scrollbar-track { background: #2b2b2b; }
.code::-webkit-scrollbar-thumb { background: #555; border-radius: 5px; }
.code::-webkit-scrollbar-thumb:hover { background: #666; }

.code__line {
  display: flex;
  min-height: 18.5714px;
  white-space: pre;
}

.code__line:hover { background: rgba(255, 255, 255, 0.035); }

.code__num {
  flex: 0 0 42px;
  width: 42px;
  padding-right: 12px;
  text-align: right;
  color: #8a8a8a;
  user-select: none;
  -webkit-user-select: none;
}

.code__text {
  flex: 1 1 auto;
  padding-right: 16px;
  white-space: pre;
}

.tok-com { color: #6fb3d2; font-style: italic; }
.tok-kw { color: #f0c674; }
.tok-str { color: #cf6a65; }
.tok-num { color: #d8a15c; }
.tok-pun { color: #d6d6d6; }
.tok-var { color: #e8e8e8; }

.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.code-panel:hover .code-copy,
.code-copy:focus-visible { opacity: 1; }

.code-copy:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.code-copy.is-copied { background: #2e9e5b; color: #fff; opacity: 1; }

.developers__aside { padding-top: 0; }

.developers__aside h3 {
  margin: 0 0 24px;
  font-size: 25px;
  line-height: 38px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--heading);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 28px;
  line-height: 24px;
}

.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.link-list a {
  font-size: 14px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #727c87;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ------------------------------ Footer ---------------------------------- */

.site-footer {
  padding: 10px 0 38px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 14px;
}

.site-footer__inner {
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  margin: 0 0 26px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  line-height: 24px;
  color: var(--footer-text);
}

.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.footer-list a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover { color: #fff; }

/* Social diamonds */

.social {
  position: relative;
  width: 208px;
  height: 42px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.social__item {
  position: absolute;
  width: 56px;
  height: 56px;
  background: #2e3339;
  transform: rotate(45deg);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.social__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
  color: #4f5761;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.social__item--fb { left: 52px; top: 0; }
.social__item--tw { left: 0; top: 56px; }
.social__item--tg { left: 104px; top: 56px; }

.social__item:hover { background: var(--orange); transform: rotate(45deg) scale(1.04); }
.social__item:hover a { color: #fff; }

/* Blog */

.blog { margin-top: 15px; }

.blog h2 { margin-bottom: 14px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 488px));
  gap: 15px 0;
  margin-bottom: 60px;
}

.post { min-width: 0; }

.post--with-thumb {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.post__thumb { display: block; }

.post__thumb img {
  display: block;
  width: 90px;
  height: 90px;
  padding: 2px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.post__date {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #8b939b;
}

.post__title {
  display: block;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #a7aeb6;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.post__more {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #8b939b;
  text-decoration: none;
}

.post__more:hover { color: #fff; text-decoration: underline; }

/* Legal */

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  margin: 26px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8b939b;
}

.legal p { margin: 0; }

.legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal a:hover { color: #fff; }

/* ------------------------------ To top ---------------------------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-dark); }

/* ------------------------------- Modals --------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 24, 0.72);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 36px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.28s ease;
}

.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa1a9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover { background: #f2f4f6; color: var(--footer-bg); }

.modal__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
}

.modal__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
  text-transform: none;
  color: var(--footer-bg);
}

.modal__subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
}

/* Form */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--footer-bg);
}

.req { color: var(--orange); }

.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9dee3;
  border-radius: 6px;
  background: #fff;
  color: var(--footer-bg);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #a8b0b8; }

.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.field.has-error input { border-color: #d33; box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.12); }

.field__error {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #d33;
}

.field__error:empty { display: none; }

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  cursor: pointer;
}

.checkbox input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

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

.demo-form__note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: var(--muted);
}

.checkbox.has-error { color: #d33; }

.demo-success { padding: 24px 10px 10px; text-align: center; }

.demo-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #eaf7ee;
  color: #2e9e5b;
  font-size: 28px;
}

.demo-success h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
  color: var(--footer-bg);
}

.demo-success h3:focus,
.demo-success h3:focus-visible { outline: none; }

.demo-success p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
}

/* Video modal */

.modal__dialog--video {
  max-width: 960px;
  padding: 0;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__close--light {
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.modal__close--light:hover { background: rgba(0, 0, 0, 0.7); color: #fff; }

/* --------------------------- Reveal motion ------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

.advantage-grid .reveal:nth-child(2),
.capability-grid .reveal:nth-child(2),
.blog-grid .reveal:nth-child(2) { --reveal-delay: 0.07s; }

.advantage-grid .reveal:nth-child(3),
.capability-grid .reveal:nth-child(3),
.blog-grid .reveal:nth-child(3) { --reveal-delay: 0.14s; }

.advantage-grid .reveal:nth-child(4),
.capability-grid .reveal:nth-child(4),
.blog-grid .reveal:nth-child(4) { --reveal-delay: 0.21s; }

.capability-grid .reveal:nth-child(5) { --reveal-delay: 0.05s; }
.capability-grid .reveal:nth-child(6) { --reveal-delay: 0.1s; }
.capability-grid .reveal:nth-child(7) { --reveal-delay: 0.15s; }
.capability-grid .reveal:nth-child(8) { --reveal-delay: 0.2s; }
.capability-grid .reveal:nth-child(9) { --reveal-delay: 0.25s; }

/* --------------------------- Responsive --------------------------------- */

@media (max-width: 1199px) {
  .container { max-width: 970px; }

  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero { padding: 100px 0 80px; }
  .hero__title { font-size: 26px; }
  .hero__list li { font-size: 15px; }

  .advantage { min-height: 400px; }
  .advantage-grid { gap: 20px; }

  .developers__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 34px; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }

  .container { max-width: 750px; }

  .brand img { width: 168px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: -15px;
    right: -15px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 6px 15px 18px;
    background: #fff;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 30px rgba(20, 30, 40, 0.12);
    margin-left: 0;
  }

  .site-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 16px;
  }

  .nav-item:last-child .nav-link { border-bottom: 0; }

  .dropdown {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 2px 0 10px 14px;
    border: 0;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-item.is-open > .dropdown { display: block; }

  .dropdown a { padding: 9px 8px; font-size: 14px; }

  .hero { min-height: 0; padding: 64px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; margin: 0; }
  .hero__media { max-width: 620px; margin: 0 auto; width: 100%; padding: 0; }
  .hero__content { max-width: 620px; margin: 0 auto; padding: 0; }
  .hero__title { font-size: 26px; }

  .clients { padding-top: 56px; }

  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .advantage { min-height: 0; padding-bottom: 14px; }

  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability { min-height: 0; }

  .developers { padding: 60px 0 90px; }
  .developers__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .developers__aside { max-width: 560px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .social { height: 132px; margin-bottom: 0; }

  .blog { margin-top: 24px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; margin-bottom: 20px; }
}

@media (max-width: 767px) {
  .container { max-width: 100%; padding: 0 18px; }

  .site-nav { left: -18px; right: -18px; padding-left: 18px; padding-right: 18px; }

  .section-head { padding-top: 10px; margin-bottom: 28px; }
  .section-head h2 { font-size: 28px; letter-spacing: 0.3px; }
  .section-head p { font-size: 17px; line-height: 24px; }
  .section-head::after { margin-top: 16px; }

  .hero { padding: 44px 0 56px; }
  .hero__grid { gap: 26px; }
  .hero__title { font-size: 23px; }
  .hero__list li { font-size: 15px; line-height: 23px; padding-left: 34px; }
  .hero__list i { font-size: 18px; }
  .video__avatar { width: 26px; height: 26px; padding: 3px; }
  .video__top { gap: 6px; }
  .video__title { font-size: 10px; }
  .video__channel { font-size: 8px; }
  .video__play { width: 46px; height: 33px; border-radius: 8px; }
  .video__play i { font-size: 15px; }
  .video__cta { font-size: 9px; }
  .video__cta i { font-size: 10px; }

  .clients { padding-top: 46px; }
  .carousel { padding: 0 40px; }
  .carousel__slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
  .client { height: 58px; }
  .carousel__arrow { width: 34px; height: 34px; border-width: 3px; font-size: 16px; }
  .carousel__arrow--prev { left: -2px; }
  .carousel__arrow--next { right: -2px; }

  .advantages { padding-top: 30px; padding-bottom: 48px; }
  .advantage-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .advantage h3 { margin-bottom: 22px; padding-top: 26px; min-height: 0; }

  .capabilities { padding: 46px 0 40px; }
  .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .capability { gap: 16px; padding-bottom: 22px; }
  .capability__icon { flex-basis: 52px; width: 52px; height: 52px; font-size: 18px; }
  .capability h3 { max-width: none; font-size: 16px; line-height: 26px; margin-bottom: 10px; }

  .developers { padding: 46px 0 70px; }
  .developers__aside h3 { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
  .code-tabs { margin-left: 0; }
  .code { height: 300px; font-size: 12px; line-height: 18px; }
  .code__line { min-height: 18px; }
  .code__num { flex-basis: 34px; width: 34px; padding-right: 8px; }
  .code-copy { opacity: 0.55; }

  .site-footer { padding: 8px 0 30px; }
  .site-footer__inner { padding-top: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-footer h2 { font-size: 18px; margin-bottom: 18px; }

  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
  .legal { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }
  .legal__links { flex-direction: column; gap: 6px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }

  .modal { padding: 12px; }
  .modal__dialog { padding: 26px 20px; max-height: calc(100vh - 24px); }
  .modal__title { font-size: 21px; }
  .modal__subtitle { font-size: 13px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 420px) {
  .carousel { padding: 0 34px; }
  .client img { max-width: 100%; }
  .hero__title { font-size: 21px; }
  .section-head h2 { font-size: 24px; }
}

@media (min-width: 1921px) {
  .hero { background-size: cover; }
}

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

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

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