/* Websites-only mode: remove data-websites-only from index.html to restore video */
html[data-websites-only] .header-panel-switch,
html[data-websites-only] .service-switch,
html[data-websites-only] .trailer-section,
html[data-websites-only] #trailer,
html[data-websites-only] [data-video-showcase],
html[data-websites-only] #panel-video,
html[data-websites-only] .skill-chip--video,
html[data-websites-only] .portfolio-card-video,
html[data-websites-only] .service-card-video,
html[data-websites-only] .pricing-card-video-type,
html[data-websites-only] .inquiry-form-video,
html[data-websites-only] .video-services-subtext,
html[data-websites-only] .pricing-note-video {
  display: none !important;
}

html[data-websites-only] .skill-chips {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-websites-only] .about-letter--full {
  display: none !important;
}

html:not([data-websites-only]) .about-letter--websites {
  display: none !important;
}

.header-kontaktai-wrap {
  display: none;
}

html[data-websites-only] .header-start .header-kontaktai-wrap:not(.header-kontaktai-wrap--bar) {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

html[data-websites-only] .header-start .header-kontaktai {
  display: inline-flex;
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--white);
  border: 1px solid var(--accent-deep);
  box-shadow: none;
}

html[data-websites-only] .header-start .header-kontaktai:hover {
  background: var(--bg-alt);
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 2px 8px rgba(42, 159, 212, 0.12);
}

.header-kontaktai-phone {
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.header-kontaktai-wrap.is-open .header-kontaktai-phone {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.header-kontaktai-wrap--bar {
  display: none;
}

.header-kontaktai-phone:hover {
  color: var(--accent-deep-hover);
  text-decoration: underline;
}

.header-mobile-menu {
  display: none;
}

@media (min-width: 901px) {
  .header-mobile-menu {
    display: none !important;
  }

  .header-kontaktai-wrap--bar {
    display: none !important;
  }
}

/* Idėjos-realybė - design system */
:root {
  --accent: #70cbff;
  --accent-soft: rgba(112, 203, 255, 0.25);
  --accent-deep: #2a9fd4;
  --accent-deep-hover: #2389b8;
  --bg-alt: #f8fbff;
  --text: #1e2d3d;
  --text-muted: #5a6b7d;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(30, 45, 61, 0.06);
  --shadow-md: 0 12px 40px rgba(30, 45, 61, 0.1);
  --shadow-glow: 0 20px 60px rgba(112, 203, 255, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --container: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Floating code icons (background) */
.floating-icons-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  width: var(--icon-size, 36px);
  height: var(--icon-size, 36px);
  color: var(--accent-deep);
  opacity: var(--icon-opacity, 0.12);
  transform: rotate(var(--icon-rotate, 0deg));
  animation: float-drift var(--float-duration, 20s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

.floating-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep decorative icons behind photos and the inquiry form */
.hero-photo-wrap,
.hero-title-image,
.polaroid,
.form-card {
  position: relative;
  z-index: 6;
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--icon-rotate, 0deg));
  }
  50% {
    transform: translate(var(--float-x, 10px), var(--float-y, -14px))
      rotate(calc(var(--icon-rotate, 0deg) + var(--float-tilt, 6deg)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-icon {
    animation: none;
  }
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.text-accent {
  color: var(--accent-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), #3bb5e8);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(42, 159, 212, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-deep-hover), var(--accent-deep));
  box-shadow: 0 12px 32px rgba(42, 159, 212, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-deep);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-nav {
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent-deep);
  border: 1px solid var(--accent-deep);
  box-shadow: 0 2px 8px rgba(42, 159, 212, 0.22);
}

.btn-nav:hover {
  background: var(--accent-deep-hover);
  border-color: var(--accent-deep-hover);
  box-shadow: 0 3px 10px rgba(42, 159, 212, 0.28);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(112, 203, 255, 0.15);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 4rem;
  padding: 0.65rem 0;
}

.header-start {
  grid-column: 1;
  justify-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.65rem 0.75rem;
  min-width: 0;
}

.header-start .header-panel-switch {
  margin-right: auto;
}

.header-logo {
  grid-column: 2;
  justify-self: center;
}

.header-logo .logo-image {
  height: 32px;
  max-width: min(200px, 38vw);
  opacity: 0.72;
}

.header-logo:hover .logo-image {
  opacity: 0.92;
}

.header-end {
  grid-column: 3;
  justify-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.65rem 0.75rem;
  min-width: 0;
}

.header-end .header-actions {
  margin-left: auto;
}

.header-side-nav {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  flex-shrink: 0;
}

.header-side-nav--left {
  margin-inline-end: 1.65rem;
}

.header-side-nav--right {
  margin-inline-start: 1.65rem;
}

.header-side-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.125rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-side-nav a:hover {
  color: var(--accent-deep);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo:hover .logo-image {
  opacity: 0.85;
}

.logo-image {
  display: block;
  height: 24px;
  width: auto;
  max-width: min(160px, 42vw);
  transition: opacity 0.2s;
}

.logo-image-footer {
  height: 24px;
  filter: brightness(0) invert(1);
}

.header-panel-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex-shrink: 0;
  width: 9.5rem;
  padding: 2px;
  border-radius: 999px;
  background: #e8f4fc;
  border: 1px solid rgba(42, 159, 212, 0.28);
  box-shadow: inset 0 1px 2px rgba(30, 45, 61, 0.06);
}

.header-switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(42, 159, 212, 0.35);
  transition: transform 0.22s ease, background 0.22s ease;
  pointer-events: none;
  z-index: 0;
}

.header-panel-switch[data-active="video"] .header-switch-slider {
  transform: translateX(100%);
  background: #8b5cf6;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.35);
}

.header-segment {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.34rem 0.3rem;
  font-family: var(--font);
  font-size: 0.68rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s;
}

.header-segment:hover:not(.is-active) {
  color: var(--accent-deep);
}

.header-segment.is-active {
  color: var(--white);
}

body.theme-video .header-panel-switch {
  background: #ede9fe;
  border-color: rgba(139, 92, 246, 0.3);
}

body.theme-video .header-segment:hover:not(.is-active) {
  color: #7c3aed;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(5.5rem + var(--section-pad) * 0.2) 0 calc(var(--section-pad) * 0.38);
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, rgba(248, 251, 255, 0.8) 70%, rgba(112, 203, 255, 0.12) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-soft);
  top: -100px;
  right: -80px;
}

.hero-blob-2 {
  width: 280px;
  height: 280px;
  background: rgba(112, 203, 255, 0.15);
  bottom: 10%;
  left: -60px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(112, 203, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 203, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 90%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  align-items: center;
}

.hero-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 0.75rem;
}

.hero-sub {
  grid-column: 1;
  grid-row: 2;
}

.hero-actions {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  width: 100%;
  min-width: 0;
}

.hero-title-image {
  display: block;
  width: 100%;
  max-width: min(560px, 100%);
  height: auto;
  transform: translateX(-50px);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  background: linear-gradient(145deg, #e8f6ff, #c5eaff);
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  z-index: -1;
  opacity: 0.6;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: center 28%;
}

.hero-note {
  position: absolute;
  bottom: 1rem;
  right: 0.65rem;
  z-index: 3;
  max-width: 280px;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-note-icon {
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.35rem;
  line-height: 0;
}

.hero-note-icon svg {
  display: block;
}

.hero-note p {
  margin: 0;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

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

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
}

.section-title-left {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* About */
.section.about {
  position: relative;
  padding-bottom: 1rem;
}

.section.about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(140px, 36%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
}

/* Trailer (below Apie mane) */
.trailer-section {
  padding-top: 0.5rem;
  padding-bottom: 1.75rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-alt) 100%);
}

.trailer-player-wrap {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(112, 203, 255, 0.2);
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f172a;
}

.trailer-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: opacity 0.25s, background 0.25s;
}

.trailer-play-btn:hover {
  background: rgba(15, 23, 42, 0.45);
}

.trailer-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.trailer-play-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--white);
  background: var(--accent-deep);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(42, 159, 212, 0.45);
  padding-left: 0.25rem;
}

body.theme-video .trailer-play-icon {
  background: #8b5cf6;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

body.theme-video .trailer-player-wrap {
  border-color: rgba(196, 181, 253, 0.35);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 901px) {
  .about-inner {
    row-gap: 0.35rem;
  }

  .about-photo-col {
    margin-top: 4.25rem;
    grid-column: 1;
    grid-row: 1;
  }

  .about-text-col {
    margin-top: -3rem;
    grid-column: 2;
    grid-row: 1;
  }

  .about-text-col .section-title-left {
    margin-bottom: 1rem;
  }

  .about-inner > .skill-chips {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
    justify-self: center;
    width: min(100%, 42rem);
  }

  .about-inner .skill-chip-label {
    font-size: 1rem;
    line-height: 1.28;
  }
}

.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid {
  position: relative;
  width: 100%;
  background: var(--white);
  padding: 0.75rem 0.75rem 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}

.polaroid img {
  border-radius: 2px;
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
}

.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 80px;
  height: 28px;
  background: var(--accent);
  opacity: 0.85;
  border-radius: 2px;
}

.polaroid-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1rem 0 0;
  padding-left: 0.65rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.polaroid-caption-mark {
  flex-shrink: 0;
}

.polaroid-caption-mark:first-child {
  margin-right: 0.4rem;
}

.polaroid-caption-mark:last-child {
  margin-left: 0.05rem;
}

.about-letter {
  max-width: 720px;
}

.about-letter p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-proof {
  font-weight: 600;
  color: var(--text) !important;
}

.skill-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: 0.85rem;
  width: 100%;
}

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

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  background: var(--bg-alt);
  border-radius: 14px;
  color: var(--accent-deep);
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-chip-label,
.skill-chip span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

@media (min-width: 901px) {
  .skill-chip-br {
    display: none;
  }
}

/* Services */
.video-services-subtext {
  text-align: center;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.5;
}

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

.service-card {
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(112, 203, 255, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-business {
  background: linear-gradient(160deg, #f0f9ff 0%, #e8f6ff 100%);
}

.service-card-dream {
  background: linear-gradient(160deg, #fff9f0 0%, #fff5e8 100%);
  border-color: rgba(255, 180, 100, 0.25);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.service-lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.service-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.service-list li strong {
  color: var(--text);
  font-weight: 600;
}

.service-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(42, 159, 212, 0.25);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.portfolio-minigame-preview {
  background: #fff;
}

.portfolio-minigame-preview img {
  object-fit: contain;
  object-position: center;
  padding: 0.35rem 0.5rem 0.15rem;
  box-sizing: border-box;
  background-color: #fff;
}

.portfolio-minigame-logo {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 1;
  width: min(72%, 280px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.portfolio-minigame-board.minigame-board--score-focus .portfolio-minigame-logo,
.portfolio-minigame-board.is-playing .portfolio-minigame-logo {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  visibility: hidden;
}

.portfolio-minigame-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #e8f4fc 0%, #f5f9fc 55%, #eef6fb 100%);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
}

.portfolio-minigame-hint {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0 1rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  pointer-events: none;
  transition: opacity 0.25s;
}

.portfolio-minigame-board.is-playing .portfolio-minigame-hint {
  opacity: 0;
}

.minigame-lives {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(30, 45, 61, 0.1);
}

.minigame-life {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.minigame-life.is-lost {
  background: transparent;
  border: 2px solid rgba(42, 159, 212, 0.35);
  transform: scale(0.85);
}

.portfolio-minigame-bubble {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: -1.125rem;
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  touch-action: none;
  background: radial-gradient(circle at 32% 28%, #fff 0%, var(--accent) 42%, var(--accent-deep) 100%);
  box-shadow: 0 4px 14px rgba(42, 159, 212, 0.45);
  animation: minigame-rise var(--rise-duration, 3.8s) linear forwards;
  -webkit-tap-highlight-color: transparent;
}

.portfolio-minigame-bubble::after {
  content: "💡";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
}

.portfolio-minigame-bubble.is-caught,
.portfolio-minigame-bubble.is-missed {
  animation: minigame-pop 0.45s ease forwards !important;
  pointer-events: none;
}

@keyframes minigame-rise {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-1 * var(--rise-distance, 220px)));
    opacity: 1;
  }
}

@keyframes minigame-pop {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.55);
    opacity: 0;
  }
}

.tag-play {
  background: rgba(112, 203, 255, 0.2);
  color: var(--accent-deep);
}

.modal-content--minigame {
  max-width: min(520px, calc(100vw - 1.5rem));
}

.minigame-modal-body {
  position: relative;
  padding: 0 1.25rem 1.35rem;
}

.minigame-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  min-height: 2.5rem;
}

.minigame-modal-actions.minigame-actions--preplay {
  justify-content: center;
}

.minigame-actions--preplay .minigame-score-wrap {
  display: none;
}

.minigame-score-wrap {
  will-change: opacity;
}

.portfolio-minigame-board .minigame-score-wrap--centered {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.minigame-score-wrap--centered .portfolio-minigame-score {
  font-size: 1.35rem;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}

.portfolio-minigame-score {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

#portfolio-minigame-start[hidden] {
  display: none;
}

.btn-minigame {
  flex-shrink: 0;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-deep), #3bb5e8);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(42, 159, 212, 0.3);
}

.btn-minigame:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-deep-hover), var(--accent-deep));
}

.btn-minigame:disabled {
  opacity: 0.75;
  cursor: default;
  transform: none;
}

.portfolio-card {
  position: relative;
  z-index: 6;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.portfolio-card:hover {
  z-index: 7;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.browser-frame {
  position: relative;
  z-index: 0;
  background: #eef2f6;
  padding: 0.5rem 0.5rem 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.browser-bar {
  display: flex;
  gap: 5px;
  padding: 0.35rem 0.5rem;
}

.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d8e0;
}

.browser-bar span:first-child {
  background: #ff6b6b;
}

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

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

.browser-screen {
  aspect-ratio: 16 / 10;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: #fff;
}

.portfolio-screen {
  position: relative;
  z-index: 1;
  aspect-ratio: auto;
  height: auto;
  line-height: 0;
  background: #fff;
}

.portfolio-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
}

.portfolio-screen img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background-color: #fff;
}

.browser-screen:not(.portfolio-screen) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mock-kavine {
  background: linear-gradient(180deg, #3d2914 0%, #3d2914 35%, #f5ebe0 35%);
}

.mock-kavine::after {
  content: "";
  display: block;
  height: 40%;
  margin: 8% 10%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.mock-kirpykla {
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}

.mock-fotografija {
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 45%);
  position: relative;
}

.mock-fotografija::before,
.mock-fotografija::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.mock-fotografija::before {
  left: 8%;
  top: 12%;
  width: 38%;
  height: 55%;
  background: rgba(255, 255, 255, 0.22);
}

.mock-fotografija::after {
  right: 8%;
  top: 18%;
  width: 42%;
  height: 48%;
}

.portfolio-info {
  padding: 1rem 1.15rem 1.25rem;
}

.portfolio-info h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.portfolio-minigame-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.portfolio-card--minigame {
  align-self: start;
}

.portfolio-card--minigame .portfolio-info {
  padding: 1rem 1.15rem 1.75rem;
}

.portfolio-card--minigame .portfolio-info h3 {
  margin-bottom: 0.35rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tag-business {
  background: rgba(112, 203, 255, 0.25);
  color: var(--accent-deep);
}

.tag-custom {
  background: rgba(255, 180, 100, 0.25);
  color: #c45c00;
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 45, 61, 0.55);
  color: var(--white);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}

.portfolio-card:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2.5rem 0 0;
}

/* Process */
.section.services {
  padding-top: calc(var(--section-pad) * 0.4);
  padding-bottom: calc(var(--section-pad) * 0.35);
  border-top: 1px solid rgba(112, 203, 255, 0.22);
  box-shadow: inset 0 8px 24px rgba(30, 45, 61, 0.03);
}

.section.services .section-title {
  margin-bottom: 2rem;
}

.section.portfolio {
  padding-top: calc(var(--section-pad) * 0.35);
  padding-bottom: calc(var(--section-pad) * 0.35);
}

/* Ką kuriu → Darbai: one visual block */
#kuriu.section.services {
  padding-bottom: 1.25rem;
}

#darbai.section.portfolio {
  padding-top: 0.5rem;
}

@media (min-width: 901px) {
  #darbai .container {
    width: min(1380px, calc(100% - 2.5rem));
  }

  #darbai .portfolio-grid {
    gap: 1.75rem;
  }

  #darbai .portfolio-info {
    padding: 1.15rem 1.25rem 1.35rem;
  }

  #darbai .portfolio-info h3 {
    font-size: 1.1rem;
  }
}

#darbai .section-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

#darbai .section-subtitle {
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
}

.section.process {
  padding-top: calc(var(--section-pad) * 0.35);
  padding-bottom: calc(var(--section-pad) * 0.35);
}

.section.pricing {
  padding-top: calc(var(--section-pad) * 0.35);
  padding-bottom: calc(var(--section-pad) * 0.35);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.125rem;
  left: calc(50% + 18px);
  width: calc(100% - 36px + 1rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 8px, transparent 8px, transparent 16px);
  opacity: 0.5;
  pointer-events: none;
}

.process-num {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(42, 159, 212, 0.35);
}

.process-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--accent-deep);
}

.process-icon svg {
  width: 100%;
  height: 100%;
}

.process-step h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.process-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(112, 203, 255, 0.2), rgba(112, 203, 255, 0.08));
  border: 1px solid rgba(112, 203, 255, 0.35);
  border-radius: var(--radius);
}

.callout-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.process-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.process-callout strong {
  color: var(--text);
}

/* Pricing */
.pricing-sub {
  font-weight: 500;
  font-size: 0.65em;
  color: var(--text-muted);
}

.pricing-intro {
  max-width: 42rem;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (min-width: 901px) {
  #kainos.section.pricing {
    margin-top: -0.85rem;
    padding-top: calc(var(--section-pad) * 0.05);
    padding-bottom: calc(var(--section-pad) * 0.15);
  }

  #kainos .section-title {
    margin-bottom: 1rem;
  }

  #kainos .pricing-intro {
    margin: -0.25rem auto 1.15rem;
  }

  #kainos .pricing-note {
    margin-top: 0.75rem;
    margin-bottom: 0.2rem;
  }

  #kainos .pricing-cta-wrap {
    margin-top: 0.25rem;
  }
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: end;
  max-width: 52rem;
  margin-inline: auto;
}

.pricing-cards-video {
  grid-template-columns: repeat(2, 1fr);
  max-width: 52rem;
  margin-inline: auto;
  align-items: stretch;
}

.pricing-note-video {
  max-width: 42rem;
  font-style: normal;
  font-weight: 500;
}

.pricing-note {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.pricing-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(112, 203, 255, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.2;
}

.pricing-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0.5rem;
  line-height: 1.2;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-deep);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  padding-left: 1.35rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.pricing-card-featured {
  transform: scale(1.04);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-deep);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(42, 159, 212, 0.35);
}

.pricing-badge-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pricing-card-tagged {
  padding-top: 2.35rem;
}

.pricing-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
  gap: 0.5rem;
}

.pricing-cta-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-cta-link:hover {
  color: var(--accent-deep-hover);
}

/* Form */
.contact-form-section {
  background: linear-gradient(180deg, rgba(112, 203, 255, 0.15) 0%, rgba(248, 251, 255, 1) 100%);
  padding-top: calc(var(--section-pad) * 0.35);
  padding-bottom: calc(var(--section-pad) + 2rem);
}

#panel-video .contact-form-section {
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.22) 0%, #faf8ff 100%);
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 901px) {
  .contact-form-section .form-card {
    max-width: 980px;
    padding: 2.25rem 3rem;
  }
}

.form-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.form-title span {
  color: var(--accent-deep);
}

.form-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.inquiry-form label,
.inquiry-form fieldset {
  display: block;
  margin-bottom: 0.7rem;
}

.inquiry-form label > span:not(.form-field-hint):not(.form-upload-zone-inner),
.inquiry-form legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
  color: var(--text);
}

.inquiry-form label em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

.form-field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
}

.form-field-hint-secondary {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row {
  display: grid;
  gap: 0.65rem;
}

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

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

.form-project {
  border: none;
  padding: 0;
  margin-bottom: 0.7rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0.6rem 1rem;
  border: 1px solid #dce4ec;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.radio-label:has(input:checked) {
  border-color: var(--accent-deep);
  background: rgba(112, 203, 255, 0.15);
}

.radio-label input {
  width: auto;
  accent-color: var(--accent-deep);
}

.form-domain .form-domain-hint {
  margin: 0.1rem 0 0.55rem;
  width: 100%;
}

.form-domain .radio-group {
  margin-top: 0;
}

.form-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.inquiry-form.success .form-footer-note::after {
  content: " Užklausa gauta!";
  color: var(--accent-deep);
  font-weight: 600;
}

.form-upload {
  margin: 0 0 0.7rem;
}

.form-upload-heading {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-upload-heading em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

.form-upload-hint {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.form-upload-zone {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
}

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

.inquiry-form label.form-upload-zone > .form-upload-zone-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
  font-weight: 400;
}

.form-upload-zone-inner {
  width: fit-content;
  max-width: min(17.5rem, 100%);
  padding: 0.45rem 0.65rem;
  text-align: left;
  border: 1.5px dashed #c5d0dc;
  border-radius: 10px;
  background: rgba(112, 203, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-upload-zone:hover .form-upload-zone-inner,
.form-upload-zone:focus-within .form-upload-zone-inner {
  border-color: var(--accent);
  background: rgba(112, 203, 255, 0.12);
}

.form-upload-zone.is-dragover .form-upload-zone-inner {
  border-color: var(--accent-deep);
  background: rgba(112, 203, 255, 0.18);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-upload.has-files .form-upload-zone-inner {
  border-style: solid;
  border-color: rgba(112, 203, 255, 0.55);
  padding: 0.4rem 0.6rem;
}

.form-upload-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--accent-deep);
}

.form-upload-icon svg {
  width: 18px;
  height: 18px;
}

.form-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.form-upload-prompt {
  display: block;
  color: var(--text);
  white-space: nowrap;
}

.form-upload-prompt strong {
  color: var(--accent-deep);
}

.form-upload-types {
  font-size: 0.68rem;
  line-height: 1.25;
}

.form-upload-summary {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.form-upload.has-files .form-upload-summary {
  display: block;
}

.form-upload-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-upload-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: var(--white);
}

.form-upload-thumb-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(112, 203, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-upload-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-upload-file-icon {
  color: var(--accent-deep);
}

.form-upload-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.form-upload-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-upload-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-upload-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-upload-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #c0392b;
}

.form-upload-remove:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 2;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(2rem, 5vw, 2.75rem) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.logo-footer {
  display: inline-flex;
}

.logo-footer:hover .logo-image {
  opacity: 0.9;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-contact a {
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.social-link {
  display: flex;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer-inner {
    gap: 2rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-contact {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
  }
}

/* Modal */
html.modal-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(680px, calc(100vw - 1.5rem));
  max-height: min(92vh, 880px);
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(112, 203, 255, 0.22);
  box-shadow:
    0 4px 6px rgba(30, 45, 61, 0.04),
    0 24px 64px rgba(30, 45, 61, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-content:has(.modal-preview-gallery) {
  max-width: min(760px, calc(100vw - 1.5rem));
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--accent-deep);
  box-shadow: 0 2px 12px rgba(30, 45, 61, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}

.modal-close:hover {
  background: var(--accent-soft);
  color: var(--accent-deep-hover);
  transform: scale(1.05);
}

.modal-header {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: 0.75rem 3rem 0.65rem 1.15rem;
  background: var(--white);
  border-bottom: 1px solid rgba(112, 203, 255, 0.18);
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.35rem 1.5rem;
}

.modal-title {
  margin: 0 0 0.12rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.modal-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  color: var(--accent-deep);
  opacity: 0.58;
}

.modal-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-preview-hero {
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid rgba(112, 203, 255, 0.18);
  box-shadow: var(--shadow-sm);
}

.modal-preview-hero .browser-screen {
  aspect-ratio: auto;
  height: auto;
  line-height: 0;
  border-radius: 0;
}

.modal-preview-hero .browser-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  background-color: #fff;
}

.modal-preview-hero .browser-screen.portfolio-screen,
.modal-gallery-item {
  background: #fff;
}

.modal-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0rem;
  margin: 0 0 -0.5rem;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--text-muted);
  opacity: 0.75;
}

.modal-tap-hint-text {
  flex: 0 1 auto;
}

.modal-tap-hint-icon {
  flex-shrink: 0;
  display: flex;
  color: currentColor;
}

.modal-zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.2s;
}

.modal-zoomable:hover {
  opacity: 0.92;
}

.modal-zoomable:active {
  transform: scale(0.99);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(8, 16, 26, 0.94);
  cursor: zoom-out;
}

.image-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.image-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1280px);
  max-width: 100%;
  max-height: calc(100vh - 3.25rem);
  touch-action: pan-y;
}

.image-lightbox-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0.35rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.image-lightbox-nav.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.image-lightbox-img {
  flex: 1;
  min-width: 0;
  max-width: min(calc(100% - 6.5rem), 1180px);
  max-height: calc(100vh - 3.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.image-lightbox-counter {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

.image-lightbox-counter[hidden] {
  display: none;
}

.modal-preview-gallery {
  display: grid;
  gap: 0.85rem;
}

.modal-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(112, 203, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.modal-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background-color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  html[data-websites-only] .about-inner > .skill-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .header-side-nav {
    gap: 0.65rem 0.85rem;
  }

  .header-side-nav a {
    font-size: 1.05rem;
  }
}

@media (max-width: 900px) {
  button,
  .btn,
  .nav-toggle,
  .header-kontaktai,
  .header-mobile-menu a,
  .radio-label,
  .form-upload-zone,
  .form-upload-remove {
    -webkit-tap-highlight-color: transparent;
  }

  button:focus:not(:focus-visible),
  .btn:focus:not(:focus-visible),
  .nav-toggle:focus:not(:focus-visible),
  .header-kontaktai:focus:not(:focus-visible),
  .header-mobile-menu a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }

  .btn-primary:focus:not(:focus-visible) {
    box-shadow: 0 8px 24px rgba(42, 159, 212, 0.35);
  }

  html[data-websites-only] .header-kontaktai--bar:focus:not(:focus-visible) {
    box-shadow: none;
  }

  .btn:hover {
    transform: none;
  }

  .header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.55rem 0;
    gap: 0.35rem;
    overflow: visible;
  }

  html[data-websites-only] .header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  html[data-websites-only] .header-start {
    display: none;
  }

  .header-start {
    grid-column: 1;
    justify-self: start;
  }

  .header-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 0;
  }

  html[data-websites-only] .header-logo {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
    margin-left: 0.75rem;
  }

  .header-logo .logo-image {
    height: 26px;
    max-width: min(145px, 48vw);
    margin-inline: auto;
  }

  html[data-websites-only] .header-logo .logo-image {
    margin-inline: 0;
    max-width: min(155px, 50vw);
  }

  .header-end {
    grid-column: 3;
    justify-self: end;
  }

  html[data-websites-only] .header-end {
    grid-column: 2;
  }

  html[data-websites-only] .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
  }

  html[data-websites-only] .header-kontaktai-wrap--bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
  }

  html[data-websites-only] .header-kontaktai--bar {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-deep);
    background: var(--white);
    border: 1px solid var(--accent-deep);
    border-radius: 999px;
    box-shadow: none;
  }

  html[data-websites-only] .header-kontaktai--bar:active {
    background: var(--white);
    box-shadow: none;
  }

  html[data-websites-only] .header-kontaktai-wrap--bar.is-open .header-kontaktai--bar:active {
    background: var(--white);
  }

  html[data-websites-only] .header-kontaktai-wrap--bar.is-open .header-kontaktai--bar {
    padding: 0.4rem 0.55rem;
    font-size: 0.66rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .header-side-nav {
    display: none;
  }

  .header-panel-switch {
    width: 8.75rem;
    flex-shrink: 0;
  }

  html[data-websites-only] .header-start .header-kontaktai-wrap {
    display: none !important;
  }

  .header-segment {
    font-size: 0.64rem;
    padding: 0.3rem 0.25rem;
  }

  .header-actions .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    padding: 0.45rem;
    gap: 5px;
  }

  .nav-toggle span {
    width: 20px;
  }

  .nav-toggle:active {
    background: transparent;
  }

  .site-header .header-mobile-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0 0.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(112, 203, 255, 0.12);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(30, 45, 61, 0.06);
    overflow: hidden;
  }

  .site-header.nav-open .header-mobile-menu {
    display: flex;
    animation: mobile-menu-drop 0.22s ease;
  }

  @keyframes mobile-menu-drop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header-mobile-menu a {
    display: block;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid rgba(112, 203, 255, 0.08);
    transition: color 0.2s, background 0.2s;
  }

  .header-mobile-menu > a:last-of-type {
    border-bottom: 1px solid rgba(112, 203, 255, 0.08);
  }

  .header-mobile-menu-cta {
    margin: 0.35rem 1rem 0.45rem;
    padding: 0.42rem 0.75rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    background: var(--accent-deep) !important;
    border: 1px solid var(--accent-deep);
    border-radius: 999px;
    text-align: center;
  }

  @media (hover: hover) {
    html[data-websites-only] .header-kontaktai--bar:hover {
      background: var(--bg-alt);
      color: var(--accent-deep);
      border-color: var(--accent-deep);
      box-shadow: 0 2px 8px rgba(42, 159, 212, 0.12);
    }

    .header-mobile-menu a:hover {
      color: var(--accent-deep);
      background: var(--bg-alt);
    }

    .header-mobile-menu-cta:hover {
      background: var(--accent-deep-hover) !important;
      border-color: var(--accent-deep-hover);
      color: var(--white) !important;
    }
  }

  .hero {
    padding-top: 3.95rem;
    padding-bottom: 2.25rem;
    overflow: visible;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 1rem;
    text-align: left;
    overflow: visible;
  }

  .hero-title,
  .hero-sub,
  .hero-visual,
  .hero-actions {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-title {
    margin-bottom: 0;
  }

  .hero-title-image {
    display: block;
    width: auto;
    max-width: min(14.5rem, 88%);
    margin: 0;
    margin-left: -0.2rem;
    transform: none;
  }

  .hero-sub {
    margin: -0.9rem 0 0.15rem 0.85rem;
    max-width: calc(100% - 0.85rem);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-self: auto;
    width: 100%;
    margin-top: -0.5rem;
  }

  .hero-actions .btn {
    padding: 0.62rem 0.95rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .hero-actions .btn svg {
    width: 14px;
    height: 14px;
  }

  .section.about {
    padding-top: calc(var(--section-pad) * 0.55);
    padding-bottom: calc(var(--section-pad) * 0.45);
  }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .about-text-col {
    display: contents;
  }

  .about-inner > .about-photo-col {
    order: 1;
    grid-column: 1;
    grid-row: auto;
  }

  .about-inner .section-title-left {
    order: 2;
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
  }

  .about-inner .about-letter {
    order: 3;
  }

  .about-inner > .skill-chips {
    order: 4;
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.35rem;
    margin-bottom: 0;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .about-letter p,
  .about-letter .about-proof {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .about-letter p {
    margin-bottom: 0.75rem;
  }

  .about-photo-col {
    width: 100%;
    max-width: min(17.5rem, 78vw);
  }

  .polaroid {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.65rem 2rem;
    transform: rotate(-1deg);
  }

  .polaroid-tape {
    width: 64px;
    height: 22px;
    top: -10px;
  }

  .polaroid-caption {
    font-size: 0.88rem;
    margin-top: 0.75rem;
  }

  .section-title-left {
    text-align: center;
  }

  .about-letter {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .about-inner > .skill-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.1rem 0 0.15rem;
  }

  html:not([data-websites-only]) .about-inner > .skill-chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .about-inner .skill-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.22rem;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .about-inner .skill-chip .skill-icon {
    width: clamp(34px, 9vw, 42px);
    height: clamp(34px, 9vw, 42px);
    margin: 0;
    border-radius: 10px;
  }

  .about-inner .skill-chip .skill-icon svg {
    width: clamp(16px, 4.5vw, 20px);
    height: clamp(16px, 4.5vw, 20px);
  }

  .about-inner .skill-chip-label {
    display: block;
    width: 100%;
    font-size: 0.4rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
    padding: 0 0.05rem;
    text-wrap: balance;
  }

  #kuriu.section.services {
    padding-top: calc(var(--section-pad) * 0.22);
    padding-bottom: 0.5rem;
  }

  #darbai.section.portfolio {
    padding-top: 0.25rem;
  }

  #darbai .section-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  #darbai .section-subtitle {
    margin-bottom: 0.55rem;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  #kuriu .container {
    width: min(19rem, calc(100% - 1.25rem));
  }

  #kuriu .section-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  #kuriu .service-cards {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 19rem;
    margin-inline: auto;
  }

  #kuriu .service-card {
    padding: 0.8rem 0.75rem 0.7rem;
    border-radius: 14px;
  }

  #kuriu .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  #kuriu .service-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.4rem;
  }

  #kuriu .service-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
  }

  #kuriu .service-lead {
    font-size: 0.7rem;
    line-height: 1.38;
    margin-bottom: 0.45rem;
  }

  #kuriu .service-list {
    margin-bottom: 0.45rem;
  }

  #kuriu .service-list li {
    font-size: 0.66rem;
    line-height: 1.32;
    padding-left: 0.95rem;
    margin-bottom: 0.22rem;
  }

  #kuriu .service-note {
    font-size: 0.64rem;
    line-height: 1.35;
    padding-top: 0.4rem;
  }

  #kainos .pricing-cards,
  .pricing-cards.pricing-cards-video {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
    max-width: none;
  }

  #kainos .pricing-card,
  .pricing-cards-video .pricing-card {
    padding: 0.85rem 0.45rem 0.7rem;
  }

  #kainos .pricing-card-featured,
  .pricing-cards-video .pricing-card-featured {
    transform: none;
  }

  #kainos .pricing-card h3,
  .pricing-cards-video .pricing-card h3 {
    font-size: clamp(0.72rem, 3.2vw, 0.85rem);
  }

  #kainos .pricing-time {
    font-size: clamp(0.58rem, 2.6vw, 0.68rem);
    margin: 0.05rem 0 0.3rem;
  }

  #kainos .pricing-price,
  .pricing-cards-video .pricing-price {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    margin-bottom: 0.45rem;
  }

  #kainos .pricing-features li,
  .pricing-cards-video .pricing-features li {
    font-size: clamp(0.52rem, 2.2vw, 0.62rem);
    padding: 0.18rem 0;
    padding-left: 0.8rem;
    line-height: 1.25;
  }

  #kainos .pricing-badge,
  .pricing-cards-video .pricing-badge {
    font-size: clamp(0.5rem, 2vw, 0.58rem);
    padding: 0.2rem 0.4rem;
    top: -7px;
    max-width: calc(100% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #kainos .pricing-badge-icon,
  .pricing-cards-video .pricing-badge-icon {
    width: 1.65rem;
    height: 1.65rem;
    top: -7px;
  }

  #kainos .pricing-badge-icon svg,
  .pricing-cards-video .pricing-badge-icon svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  #kainos .pricing-card-tagged {
    padding-top: 1.2rem;
  }

  .pricing-cards-video .pricing-card {
    padding-top: 1.2rem;
  }

  #kaip-veikia .section-title,
  #video-kaip-veikia .section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: -1rem;
  }

  #kainos.section.pricing {
    margin-top: -3rem;
    padding-bottom: 0.75rem;
  }

  #kainos .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
  }

  #kainos .pricing-intro {
    margin: 0 auto 1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 0 0.25rem;
  }

  #uzklausa.contact-form-section {
    padding-top: 0.85rem;
    padding-bottom: 1.25rem;
  }

  #uzklausa .container {
    width: min(19rem, calc(100% - 1.25rem));
  }

  #uzklausa .form-card {
    max-width: none;
    padding: 1rem 0.85rem 0.95rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
  }

  #uzklausa .form-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
  }

  #uzklausa .form-subtitle {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 0.9rem;
  }

  #uzklausa .inquiry-form label,
  #uzklausa .inquiry-form fieldset {
    margin-bottom: 0.5rem;
  }

  #uzklausa .inquiry-form label > span:not(.form-field-hint):not(.form-upload-zone-inner),
  #uzklausa .inquiry-form legend {
    font-size: 0.72rem;
    margin-bottom: 0.18rem;
  }

  #uzklausa .form-row {
    gap: 0.45rem;
  }

  #uzklausa .form-project {
    margin-bottom: 0.5rem;
  }

  #uzklausa .inquiry-form label.form-upload-zone > .form-upload-zone-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
  }

  #uzklausa .form-field-hint {
    font-size: 0.64rem;
    line-height: 1.35;
  }

  #uzklausa .inquiry-form input,
  #uzklausa .inquiry-form textarea,
  #uzklausa .inquiry-form select {
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  #uzklausa .radio-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  #uzklausa .radio-label {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
  }

  #uzklausa .btn-submit {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    margin-top: 0;
  }

  #uzklausa .form-footer-note {
    font-size: 0.68rem;
    margin-top: 0.65rem;
  }

  #uzklausa .form-upload {
    margin-bottom: 0.5rem;
  }

  #uzklausa .form-upload-heading {
    font-size: 0.72rem;
  }

  #uzklausa .form-upload-hint {
    font-size: 0.64rem;
    margin-bottom: 0.5rem;
  }

  #uzklausa .form-upload-zone-inner {
    max-width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.68rem;
    gap: 0.4rem;
  }

  #uzklausa .form-upload-prompt {
    white-space: normal;
  }

  #uzklausa .form-upload-icon svg {
    width: 16px;
    height: 16px;
  }

  #uzklausa .form-upload-types {
    font-size: 0.62rem;
  }

  #uzklausa .form-upload-summary {
    font-size: 0.72rem;
  }

  #uzklausa .form-upload-name {
    font-size: 0.78rem;
  }

  #uzklausa .form-upload-size {
    font-size: 0.68rem;
  }

  .section.process .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 1.35rem;
  }

  .section.process .process-step:not(:last-child)::after {
    top: 0.6875rem;
    left: calc(50% + 11px);
    width: calc(100% - 22px + 0.3rem);
    height: 1px;
  }

  .section.process .process-step {
    padding: 0 0.1rem;
  }

  .section.process .process-num {
    width: 22px;
    height: 22px;
    margin-bottom: 0.3rem;
    font-size: 0.62rem;
    box-shadow: 0 2px 6px rgba(42, 159, 212, 0.28);
  }

  .section.process .process-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0.28rem;
  }

  .section.process .process-step h3 {
    font-size: clamp(0.52rem, 2.6vw, 0.62rem);
    line-height: 1.2;
    margin-bottom: 0.12rem;
  }

  .section.process .process-step p {
    font-size: clamp(0.46rem, 2.2vw, 0.54rem);
    line-height: 1.28;
  }

  .pricing-card-featured {
    transform: none;
  }

  .form-row-3,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  html.modal-open {
    background-color: #1e2d3d;
  }

  body.modal-open {
    background-color: #1e2d3d;
  }

  .modal {
    align-items: center;
    padding: 0.5rem;
    background: #1e2d3d;
  }

  .modal-backdrop {
    background: transparent;
  }

  .modal-content {
    max-height: min(78vh, 700px);
    max-width: calc(100vw - 1rem);
    border-radius: 16px;
    animation: none;
    border-color: rgba(30, 45, 61, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .modal-header {
    border-bottom-color: rgba(30, 45, 61, 0.1);
  }

  .modal-preview-hero,
  .modal-gallery-item {
    border-color: rgba(30, 45, 61, 0.12);
  }

  .modal-preview-hero {
    background: #eceff2;
  }

  .modal-preview-hero .browser-screen img {
    background: #eceff2;
  }

  .modal-content:has(.modal-preview-gallery) {
    max-width: calc(100vw - 1rem);
  }

  .modal-header {
    padding: 0.6rem 2.25rem 0.5rem 0.9rem;
  }

  .modal-close {
    top: 0.55rem;
    right: 0.55rem;
    width: 30px;
    height: 30px;
    font-size: 1.05rem;
    box-shadow: 0 1px 8px rgba(30, 45, 61, 0.1);
  }

  .modal-eyebrow {
    font-size: 0.7rem;
    line-height: 1.32;
  }

  .portfolio-minigame-bubble {
    width: 2.85rem;
    height: 2.85rem;
    margin-left: -1.425rem;
  }

  .portfolio-minigame-bubble::after {
    font-size: 1.1rem;
  }

  .portfolio-minigame-board {
    min-height: 220px;
  }

  .modal-scroll {
    padding: 0.55rem 0.75rem 0.75rem;
  }

  .modal-preview {
    gap: 0.45rem;
  }

  .modal-tap-hint {
    font-size: 0.65rem;
    margin-bottom: 0.05rem;
    line-height: 1.15;
  }

  .modal-tap-hint-icon svg {
    width: 16px;
    height: 16px;
  }

  .image-lightbox {
    padding: 0.25rem;
    gap: 0.35rem;
  }

  .image-lightbox-stage {
    width: 100%;
    max-height: calc(100vh - 2.75rem);
    touch-action: manipulation;
  }

  .image-lightbox-nav {
    display: none !important;
  }

  .image-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 2.75rem);
  }

  .modal-preview-gallery {
    gap: 0.55rem;
  }
}

/* Service switcher (after Apie mane) */
.service-switch {
  padding: 1rem 0 0.5rem;
  background: var(--white);
}

.service-switch-title {
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.service-switch-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
}

.service-switch-btn {
  flex: 1 1 12rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid rgba(42, 159, 212, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.service-switch-btn:hover:not(.is-active) {
  color: var(--accent-deep);
  background: var(--bg-alt);
  border-color: rgba(42, 159, 212, 0.5);
}

.service-switch-btn.is-active {
  color: var(--white);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 4px 18px rgba(42, 159, 212, 0.28);
}

.service-switch-btn-video.is-active {
  color: var(--white);
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.service-switch-btn-video:not(.is-active):hover {
  color: #7c3aed;
  background: #f5f0ff;
  border-color: rgba(139, 92, 246, 0.45);
}

.service-panel:not(.is-active) {
  display: none;
}

.service-panel.is-active {
  display: block;
}

/* Restore video panel before main.js runs (avoids flash on reload) */
html[data-active-panel="video"] body {
  --accent: #c4b5fd;
  --accent-soft: rgba(196, 181, 253, 0.3);
  --accent-deep: #8b5cf6;
  --accent-deep-hover: #7c3aed;
  --bg-alt: #faf8ff;
}

html[data-active-panel="video"] #panel-web {
  display: none !important;
}

html[data-active-panel="video"] #panel-video {
  display: block !important;
}

html[data-active-panel="video"] .service-switch-btn[data-panel="web"] {
  color: var(--text-muted);
  background: var(--white);
  border-color: rgba(42, 159, 212, 0.35);
  box-shadow: none;
}

html[data-active-panel="video"] .service-switch-btn[data-panel="video"] {
  color: var(--white);
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

html[data-active-panel="video"] .header-switch-slider {
  transform: translateX(100%);
  background: #8b5cf6;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.35);
}

html[data-active-panel="video"] .header-panel-switch {
  background: #ede9fe;
  border-color: rgba(139, 92, 246, 0.3);
}

html[data-active-panel="video"] .header-segment[data-panel="web"] {
  color: var(--text-muted);
}

html[data-active-panel="video"] .header-segment[data-panel="video"] {
  color: var(--white);
}

/* Purple theme when video panel is active */
body.theme-video {
  --accent: #c4b5fd;
  --accent-soft: rgba(196, 181, 253, 0.3);
  --accent-deep: #8b5cf6;
  --accent-deep-hover: #7c3aed;
  --bg-alt: #faf8ff;
  --shadow-glow: 0 20px 60px rgba(139, 92, 246, 0.28);
}

body.theme-video .btn-nav {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

body.theme-video .btn-nav:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

body.theme-video .section.about::after {
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
}

body.theme-video #panel-video .section.services {
  border-top-color: rgba(196, 181, 253, 0.35);
}

body.theme-video .service-card-video .service-icon {
  color: var(--accent-deep);
}

body.theme-video .tag-video {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* Video portfolio mocks */
.portfolio-grid-video {
  grid-template-columns: repeat(3, 1fr);
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1228;
  box-shadow: var(--shadow-sm);
}

.video-screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play {
  position: relative;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  background: rgba(139, 92, 246, 0.85);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding-left: 0.2rem;
}

.mock-video-reklama {
  background: linear-gradient(135deg, #2e1064 0%, #6d28d9 45%, #a78bfa 100%);
}

.mock-video-reklama::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.5;
}

.mock-video-renginys {
  background: linear-gradient(160deg, #1e1b4b, #4c1d95 50%, #7c3aed);
}

.mock-video-renginys::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 8%;
  right: 8%;
  height: 28%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 4px;
}

.mock-video-reels {
  background: linear-gradient(180deg, #312e81, #8b5cf6 60%, #ddd6fe);
  aspect-ratio: 9 / 16;
  max-height: 100%;
  margin: 0 auto;
  width: 55%;
}

.portfolio-card-video .video-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0a1a;
}

.portfolio-card-video:hover .portfolio-hover {
  background: rgba(139, 92, 246, 0.92);
}

.modal-preview .video-screen {
  min-height: 220px;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid-video {
    grid-template-columns: 1fr;
  }

  .hero-note {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }
}
