@font-face {
  font-family: "Philosopher";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/philosopher-400.ttf") format("truetype");
}

@font-face {
  font-family: "Philosopher";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/philosopher-700.ttf") format("truetype");
}

:root {
  --c-primary: #54cde7;
  --c-primary-hover: #38bbd7;
  --c-dark: #353648;
  --c-dark-2: #292b38;
  --c-muted: #8c9aaa;
  --c-muted-2: #646686;
  --c-panel: #47485f;
  --c-line: #c8cfd7;
  --c-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  background: var(--c-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 91px 0 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 24px;
  color: var(--c-muted);
  background: var(--c-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  clear: both;
  line-height: 1.6em;
  color: var(--c-dark);
  font-family: "Philosopher", Georgia, serif;
  font-weight: 400;
}

h2 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--c-line);
}

h3 {
  font-size: 24px;
  font-weight: 500;
}

h4 {
  font-size: 22px;
  font-weight: 400;
}

h5 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 400;
}

h6 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
}

p {
  margin: 0 0 25px;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover {
  color: var(--c-primary-hover);
}

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

.container {
  width: min(1170px, 92vw);
  margin-inline: auto;
}

.center {
  text-align: center;
}

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

.space10,
.space20,
.space30,
.space40,
.space50,
.space60 {
  clear: both;
  width: 100%;
}

.space10 {
  height: 10px;
}

.space20 {
  height: 20px;
}

.space30 {
  height: 30px;
}

.space40 {
  height: 40px;
}

.space50 {
  height: 50px;
}

.space60 {
  height: 60px;
}

.header {
  background: #fff;
}

.logo {
  width: auto;
  height: 34px;
}

.navbar {
  width: 100%;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-fixed-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

.navbar-inner {
  min-height: 91px;
  background: rgba(255, 255, 255, 0.98);
  position: relative;
}

.header-layout {
  min-height: 91px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.navbar .nav {
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}

.navbar .nav > li > a {
  display: block;
  line-height: 35px;
  color: var(--c-muted);
  padding: 28px 20px;
}

.navbar .nav > li:hover > a {
  color: #fff;
  background: var(--c-panel);
}

.navbar .nav > li.active > a {
  color: var(--c-primary);
}

.navbar .nav > li.active > a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: linear-gradient(145deg, #44495f, #343747);
  box-shadow: 0 10px 24px rgba(34, 38, 54, 0.2);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.navbar.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.parallax {
  --parallax-y: 0px;
  --parallax-scale: 1.16;
  --parallax-overlay: rgba(53, 54, 72, 0.46);
  position: relative;
  width: 100%;
  height: 260px;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}

.parallax::before,
.parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax::before {
  inset: -14% 0;
  background-image: var(--parallax-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-y), 0) scale(var(--parallax-scale));
  transform-origin: center;
  will-change: transform;
  z-index: -2;
}

.parallax::after {
  background: linear-gradient(var(--parallax-overlay), var(--parallax-overlay));
  z-index: -1;
}

#parallax-one,
#parallax-three,
#parallax-two {
  height: 400px;
}

#parallax-two {
  --parallax-image: url("../img/project-2.jpg");
}

#parallax-one {
  --parallax-image: url("../img/project-1.jpg");
}

#parallax-three {
  --parallax-image: url("../img/project-4.jpg");
}

.parallax .parallax-text-container {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.parallax-text-item {
  font-weight: 700;
  font-size: 36px;
  line-height: 1em;
}

.parallax h2,
.parallax h3 {
  margin: 0;
  color: #fff;
  background: transparent;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.parallax h2 {
  font-size: 52px;
}

.parallax h3 {
  margin-top: 10px;
  font-size: 20px;
}

.content-section {
  background: #fff;
}

.header[id],
.content-section[id],
.h2-container[id],
.footer[id] {
  scroll-margin-top: 108px;
}

.h2-container {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
}

.h2-container h2 {
  position: relative;
  z-index: 20;
  display: inline;
  padding-inline: 20px;
  font-size: 34px;
  color: var(--c-line);
  background: #fff;
}

.h2-container .h2-line {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-line);
  z-index: 1;
}

.h2-container .h2-line-left,
.h2-container .h2-line-right {
  position: absolute;
  top: 20px;
  height: 20px;
  border-left: 1px solid var(--c-line);
}

.h2-container .h2-line-left {
  left: 0;
}

.h2-container .h2-line-right {
  right: 0;
  border-left: 0;
  border-right: 1px solid var(--c-line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.service {
  position: relative;
  padding-top: 80px;
}

.service .circle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  border-radius: 50%;
  background: var(--c-primary);
  display: grid;
  place-items: center;
  transition: transform 0.7s ease-in-out;
}

.service:hover .circle {
  transform: rotate(360deg);
}

.service .circle img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.service h3 {
  padding: 30px 0 5px;
  text-align: center;
}

.service p {
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--c-muted);
}

.bg-2 .circle {
  background: var(--c-panel);
}

.bg-2 a {
  color: var(--c-panel);
}

.bg-2 a:hover {
  color: var(--c-primary);
}

.bg-3 .circle {
  background: var(--c-muted-2);
}

.bg-3 a {
  color: var(--c-muted-2);
}

.bg-3 a:hover {
  color: var(--c-primary);
}

.recent-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.btn,
.btn-small,
.btn-large,
.btn-large-icon {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--c-primary);
  border-radius: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 50px;
  color: var(--c-primary);
  background: #fff;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover,
.btn-small:hover,
.btn-large:hover,
.btn-large-icon:hover {
  color: #fff;
  background: var(--c-primary);
}

.btn:focus-visible,
.btn-small:focus-visible,
.btn-large:focus-visible,
.btn-large-icon:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.btn img,
.btn-small img,
.btn-large img,
.btn-large-icon img {
  width: 16px;
  height: 16px;
}

.btn-small {
  height: 45px;
  padding: 0 30px;
  font-size: 13px;
  line-height: 45px;
}

.say-about-us {
  display: grid;
  gap: 1rem;
}

.about-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.say-about-us img {
  width: 100px;
  border: 6px solid var(--c-line);
  border-radius: 50%;
}

.client-img {
  justify-self: end;
}

.client-data {
  justify-self: start;
}

.say-about-us h5 {
  margin-bottom: 0;
  padding-top: 12px;
  font-size: 20px;
  color: var(--c-panel);
}

.say-about-us h6 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--c-primary);
}

.say-about-us p {
  margin: 0;
  padding: 20px 8%;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 20px;
  overflow: hidden;
}

.project-img,
.project-info {
  width: 100%;
}

.project-info h4 {
  margin-bottom: 10px;
}

.promo-box-container {
  position: relative;
  color: #fff;
  background: var(--c-primary);
  padding: 50px 0;
}

.promo-box-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: var(--c-primary) transparent;
  transform: translateX(-50%);
}

.promo-box {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: center;
}

.promo-icon {
  width: 68px;
  height: 68px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.promo-box h4 {
  margin: 0;
  font-size: 30px;
  color: #fff;
  line-height: 1.4;
}

.footer {
  color: var(--c-muted);
  background: var(--c-dark);
}

.footer-content {
  padding-bottom: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.logo-footer {
  align-self: center;
  width: auto;
  height: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.footer h4 {
  color: #fff;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding-top: 12px;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.footer a,
.footer a:visited {
  color: var(--c-muted);
}

.footer a:hover {
  color: var(--c-primary);
}

.footer-column {
  position: relative;
}

.icon-inline {
  position: absolute;
  top: 5px;
  left: 0;
  width: 17px;
  height: 17px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(10%) saturate(401%) hue-rotate(174deg) brightness(91%) contrast(88%);
}

.footer-column p {
  padding-left: 30px;
  margin-bottom: 20px;
}

.flickr-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.3%;
}

.flickr-photos h4 {
  grid-column: 1 / -1;
}

.flickr-photos img {
  width: 100%;
  margin: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--c-primary);
}

.social a:hover {
  background: var(--c-primary-hover);
}

.social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.copyright {
  color: var(--c-muted-2);
  background: var(--c-dark-2);
  padding: 30px 0;
}

.randomize-toggle {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-muted-2);
  background: transparent;
  border: 1px solid var(--c-muted-2);
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.randomize-toggle:hover,
.randomize-toggle:focus-visible {
  color: #fff;
  border-color: #fff;
  outline: none;
}

.randomize-toggle[data-state="on"] {
  color: #1f2937;
  background: #fbbf24;
  border-color: #fbbf24;
}

.randomize-toggle[data-state="on"]:hover,
.randomize-toggle[data-state="on"]:focus-visible {
  background: #f59e0b;
  border-color: #f59e0b;
}

.section-soft {
  background: #f7f9fc;
}

.section-soft .h2-container h2 {
  background: #f7f9fc;
}

.typography-content {
  display: grid;
  gap: 1.15rem;
}

.type-specimen {
  border: 1px solid #e3e8ef;
  background: #fff;
  padding: 1rem 1.1rem;
}

.type-specimen h1,
.type-specimen h2,
.type-specimen h3,
.type-specimen h4,
.type-specimen h5,
.type-specimen h6 {
  margin-bottom: 0.45rem;
}

.type-specimen p {
  margin: 0;
}

.text-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-card {
  border: 1px solid #e1e7f0;
  background: #fff;
  padding: 1rem 1.1rem;
}

.typo-card h2,
.typo-card h3,
.typo-card h4 {
  color: var(--c-dark);
}

.typo-card > :last-child {
  margin-bottom: 0;
}

.typo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.typo-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.55rem;
}

.typo-list img {
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.typo-list a {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.55rem;
  color: var(--c-muted-2);
}

.typo-list a:hover {
  color: var(--c-primary);
}

.typo-list-links li {
  display: block;
}

.typo-list-links a {
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.45;
}

.typo-quote {
  margin: 0;
  border-left: 5px solid #dbe4ef;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--c-muted-2);
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
}

.tooltip-word {
  position: relative;
  cursor: help;
  color: var(--c-primary);
  border-bottom: 1px dashed rgba(84, 205, 231, 0.65);
}

.tooltip-word::after,
.tooltip-word::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.tooltip-word::after {
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 120px;
  max-width: 220px;
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
  background: #2f3441;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.tooltip-word::before {
  content: "";
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #2f3441;
}

.tooltip-word:hover::after,
.tooltip-word:hover::before,
.tooltip-word:focus-visible::after,
.tooltip-word:focus-visible::before {
  opacity: 1;
}

.box-white,
.box-gray,
.box-theme-color {
  border: 1px solid #dfe6ef;
  padding: 1rem 1.05rem;
}

.box-white {
  background: #fff;
}

.box-gray {
  background: #f0f3f7;
}

.box-theme-color {
  color: #fff;
  background: #54cde7;
  border-color: #4bc4de;
}

.box-theme-color h4 {
  color: #fff;
}

.box-theme-color p {
  color: rgba(255, 255, 255, 0.95);
}

.icons-intro code,
.code-box code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
}

.icon-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.icon-set {
  border: 1px solid #dfe7f1;
  background: #fff;
  padding: 1rem;
}

.icon-set h4 {
  margin-bottom: 0.75rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.icon-chip {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0.5rem;
  background: #f8fbff;
  border: 1px solid #e2e9f4;
}

.icon-chip img {
  width: 18px;
  height: 18px;
}

.icon-chip code {
  color: #5c6f86;
}

.code-box {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid #dae4ef;
  background: #f7fbff;
  overflow-x: auto;
}

.ui-kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ui-card {
  border: 1px solid #dbe5f0;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(24, 37, 59, 0.06);
}

.ui-card h4 {
  margin-bottom: 0.4rem;
}

.ui-card p {
  margin-bottom: 0.8rem;
}

.ui-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ui-btn-row + .ui-btn-row {
  margin-top: 0.55rem;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ui-btn img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

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

.ui-btn:focus-visible,
.ui-tab:focus-visible,
.ui-accordion-trigger:focus-visible,
.ui-alert-close:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.ui-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ui-btn-primary {
  color: #fff;
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.ui-btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.ui-btn-secondary {
  color: #fff;
  background: var(--c-panel);
  border-color: var(--c-panel);
}

.ui-btn-secondary:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.ui-btn-ghost {
  color: var(--c-muted-2);
  background: #fff;
  border-color: #c9d7e6;
}

.ui-btn-ghost:hover {
  color: var(--c-dark);
  background: #f4f8fc;
  border-color: #b5c7db;
}

.ui-btn-danger {
  color: #fff;
  background: #dc5f6f;
  border-color: #dc5f6f;
}

.ui-btn-danger:hover {
  background: #c94d5d;
  border-color: #c94d5d;
}

.ui-btn-sm {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 11px;
}

.ui-btn-lg {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 13px;
}

.ui-tabs {
  border: 1px solid #dbe5f1;
  background: #fbfdff;
  padding: 12px;
}

.ui-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d3deea;
  background: #eef4fa;
  color: #55677d;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ui-tab:hover {
  background: #e4edf7;
}

.ui-tab.is-active {
  color: #1f2d44;
  background: #fff;
  border-color: #adc4db;
}

.ui-tab-panels {
  margin-top: 10px;
}

.ui-tab-panel {
  border: 1px solid #dbe5f0;
  background: #fff;
  padding: 0.9rem 1rem;
}

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

.ui-accordion {
  display: grid;
  gap: 8px;
}

.ui-accordion-item {
  border: 1px solid #dbe5f0;
  background: #fff;
}

.ui-accordion-item h5 {
  margin: 0;
}

.ui-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #34465e;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.ui-accordion-trigger img {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.ui-accordion-item.is-open .ui-accordion-trigger img {
  transform: rotate(180deg);
}

.ui-accordion-panel {
  padding: 0 16px 16px;
}

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

.ui-alert-stack {
  display: grid;
  gap: 8px;
}

.ui-alert {
  display: grid;
  grid-template-columns: 18px 1fr 24px;
  align-items: start;
  gap: 10px;
  border: 1px solid #d9e4ef;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  animation: alertIn 180ms ease;
}

.ui-alert img {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.ui-alert p {
  margin: 0;
}

.ui-alert-success {
  border-left-color: #35bb7e;
  background: #f1fcf6;
}

.ui-alert-info {
  border-left-color: #54cde7;
  background: #f2fbfe;
}

.ui-alert-warning {
  border-left-color: #e0a742;
  background: #fff8ee;
}

.ui-alert-error {
  border-left-color: #da5b6b;
  background: #fff1f3;
}

.ui-alert-close {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.ui-alert-close:hover {
  background: rgba(40, 55, 75, 0.08);
}

.ui-alert-close img {
  width: 16px;
  height: 16px;
  margin: 0 auto;
  filter: opacity(0.56);
}

.ui-alert.is-dismissing {
  animation: alertOut 150ms ease forwards;
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alertOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.item-carousel {
  --item-gap: 20px;
  --items-per-view: 3;
  position: relative;
  border: 1px solid #dbe5f1;
  border-radius: 20px;
  padding: 24px 58px 18px;
  background:
    radial-gradient(circle at 3% 5%, rgba(84, 205, 231, 0.16), rgba(84, 205, 231, 0) 34%),
    radial-gradient(circle at 95% 100%, rgba(71, 72, 95, 0.11), rgba(71, 72, 95, 0) 37%),
    #f9fcff;
}

.item-carousel__viewport {
  overflow: hidden;
}

.item-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--item-gap) * (var(--items-per-view) - 1))) / var(--items-per-view));
  gap: var(--item-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.item-carousel__track::-webkit-scrollbar {
  display: none;
}

.item-carousel__slide {
  min-width: 0;
  scroll-snap-align: start;
}

.item-carousel__card {
  height: 100%;
  border: 1px solid #dbe4ef;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 0.95rem;
  box-shadow: 0 10px 24px rgba(26, 39, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-carousel__slide:hover .item-carousel__card {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(26, 39, 58, 0.12);
}

.item-carousel__badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f8fc;
}

.item-carousel__badge img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(70%) sepia(35%) saturate(644%) hue-rotate(153deg) brightness(95%) contrast(92%);
}

.item-carousel__tag {
  display: inline-block;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f8298;
}

.item-carousel__card h3 {
  margin-bottom: 0.25rem;
  color: #2a3650;
  font-size: 23px;
  line-height: 1.2;
}

.item-carousel__card p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: #71839a;
}

.item-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.item-carousel__link img {
  width: 14px;
  height: 14px;
}

.item-carousel__arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #48506a;
  box-shadow: 0 10px 18px rgba(26, 31, 45, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.item-carousel__arrow:hover {
  background: #3d445d;
}

.item-carousel__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.item-carousel__arrow:focus-visible,
.item-carousel__dots button:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.item-carousel__arrow img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.item-carousel__arrow--prev {
  left: 8px;
}

.item-carousel__arrow--prev img {
  transform: rotate(180deg);
}

.item-carousel__arrow--next {
  right: 8px;
}

.item-carousel__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.item-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.item-carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #becbda;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.item-carousel__dots button:hover {
  transform: scale(1.08);
}

.item-carousel__dots button.is-active {
  background: var(--c-primary);
}

@media (max-width: 991px) {
  .item-carousel {
    --items-per-view: 2;
    padding-inline: 52px;
  }
}

@media (max-width: 700px) {
  .item-carousel {
    --items-per-view: 1;
    padding: 18px 14px 14px;
  }

  .item-carousel__arrow {
    display: none;
  }

  .item-carousel__card h3 {
    font-size: 21px;
  }
}

@media (max-width: 991px) {
  .services-grid,
  .projects-grid,
  .footer-grid,
  .text-block-grid,
  .typo-grid-2,
  .typo-grid-3,
  .icon-catalog,
  .ui-kit-grid {
    grid-template-columns: 1fr;
  }

  .recent-project-grid,
  .project-container,
  .about-person {
    grid-template-columns: 1fr;
  }

  .client-img,
  .client-data {
    justify-self: center;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .social {
    justify-self: start;
    justify-content: flex-start;
  }

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

@media (max-width: 700px) {
  .parallax h2 {
    font-size: 36px;
  }

  .parallax h3 {
    font-size: 16px;
  }

  .promo-box {
    grid-template-columns: 62px 1fr;
    gap: 14px;
  }

  .promo-icon {
    width: 62px;
    height: 62px;
  }

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

  .footer-grid {
    gap: 0.4rem;
  }
}

@media (max-width: 820px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .header-layout {
    grid-template-columns: auto auto;
    gap: 0.8rem;
    position: relative;
    z-index: 5;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    position: relative;
    z-index: 6;
  }

  .back-to-top {
    position: relative;
    z-index: 6;
  }

  .navbar .nav {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: calc(92px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background:
      radial-gradient(circle at 12% 10%, rgba(84, 205, 231, 0.28), rgba(84, 205, 231, 0) 42%),
      radial-gradient(circle at 88% 84%, rgba(56, 60, 84, 0.74), rgba(56, 60, 84, 0) 48%),
      linear-gradient(160deg, #24283a 0%, #2b3047 46%, #131825 100%);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
    z-index: 4;
  }

  .navbar .nav::before {
    content: "Navigation";
    position: absolute;
    top: calc(30px + env(safe-area-inset-top));
    left: 24px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(233, 241, 252, 0.68);
  }

  .navbar.menu-open .nav {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar .nav > li {
    opacity: 0;
    transform: translateY(18px);
  }

  .navbar.menu-open .nav > li {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.42s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.32s ease;
  }

  .navbar.menu-open .nav > li:nth-child(1) {
    transition-delay: 70ms;
  }

  .navbar.menu-open .nav > li:nth-child(2) {
    transition-delay: 120ms;
  }

  .navbar.menu-open .nav > li:nth-child(3) {
    transition-delay: 170ms;
  }

  .navbar.menu-open .nav > li:nth-child(4) {
    transition-delay: 220ms;
  }

  .navbar.menu-open .nav > li:nth-child(5) {
    transition-delay: 270ms;
  }

  .navbar .nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Philosopher", Georgia, serif;
    font-size: clamp(2rem, 9vw, 3.1rem);
    line-height: 1.1;
    color: #eef4ff;
    padding: 14px 8px;
    border-radius: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  }

  .navbar .nav > li:last-child > a {
    border-bottom-color: transparent;
  }

  .navbar .nav > li > a::after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 12px;
    flex: 0 0 auto;
    background: url("../icons/arrow-right.svg") no-repeat center / contain;
    filter: brightness(0) invert(1);
    opacity: 0.66;
    transform: translateX(-6px);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .navbar .nav > li:hover > a,
  .navbar .nav > li > a:focus-visible {
    color: #fff;
    background: rgba(139, 225, 255, 0.14);
    transform: translateX(4px);
  }

  .navbar .nav > li:hover > a::after,
  .navbar .nav > li > a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar .nav > li.active > a,
  .navbar .nav > li.active > a:hover {
    color: #8be2ff;
    background: rgba(116, 206, 238, 0.08);
  }

  .navbar .nav > li.active > a::after {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax::before {
    transform: scale(1.08);
    will-change: auto;
  }

  .nav-toggle-bar,
  .navbar .nav,
  .navbar .nav > li,
  .navbar .nav > li > a,
  .navbar .nav > li > a::after,
  .ui-btn,
  .ui-tab,
  .ui-accordion-trigger img,
  .item-carousel__card,
  .item-carousel__arrow,
  .item-carousel__dots button {
    transition: none;
  }

  .ui-alert {
    animation: none;
  }

  .item-carousel__track {
    scroll-behavior: auto;
  }
}

/* === V2 a11y skip-link === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #1f2937;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}
