
    :root {
      --primary: #1a73e8;
      --primary-dark: #1557aa;
      --accent: #00c9a7;
      --bg: #0f172a;
      --bg-light: #111827;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --card-bg: #020617;
      --border: #1f2937;
      --danger: #ef4444;
      --success: #22c55e;
      --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
      --radius-lg: 18px;
      --radius-xl: 24px;
      --transition-fast: 0.2s ease;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
      color: var(--text);
      line-height: 1.6;
    }

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

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

    /* Layout */

    .container {
      width: 100%;
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 1.25rem;
    }

    /* Header & Navigation */

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(14px);
      background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.5));
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      font-size: 1.05rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .logo-mark {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 20%, #e5f3ff, #1d4ed8 40%, #020617 80%);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 28px rgba(56, 189, 248, 0.65);
      font-size: 0.9rem;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      font-size: 0.95rem;
    }

    .nav-links a {
      position: relative;
      padding-bottom: 0.1rem;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.15rem;
      width: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transition: width var(--transition-fast);
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-cta {
      padding: 0.1rem 1rem;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: 1px solid rgba(248, 250, 252, 0.18);
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    }
	
	.nav-cta-mobile {
      padding: 0.1rem 1rem;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: 1px solid rgba(248, 250, 252, 0.18);
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    }
	
    .nav-cta span {
      font-size: 1.1rem;
    }
	
	.nav-cta-mobile span {
      font-size: 1.1rem;
    }

    .nav-cta:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
      box-shadow: 0 14px 40px rgba(56, 189, 248, 0.55);
    }
	
	.nav-cta-mobile:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
      box-shadow: 0 14px 40px rgba(56, 189, 248, 0.55);
    }

    .nav-lang {
      position: relative;
      display: flex;
      align-items: center;
    }

    .lang-toggle {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      background: rgba(15, 23, 42, 0.9);
      padding: 0.35rem 0.8rem;
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      color: #e5e7eb;
      font-family: inherit;
    }

    .lang-toggle:hover {
      border-color: rgba(96, 165, 250, 0.9);
    }

    .lang-menu {
      position: absolute;
      right: 0;
      top: 120%;
      min-width: 120px;
      border-radius: 0.75rem;
      border: 1px solid rgba(31, 41, 55, 0.95);
      background: rgba(15, 23, 42, 0.98);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
      padding: 0.35rem;
      display: none;
      flex-direction: column;
      z-index: 60;
    }

    .lang-menu.open {
      display: flex;
    }

    .lang-option {
      border: none;
      background: transparent;
      color: #e5e7eb;
      font-size: 0.8rem;
      padding: 0.3rem 0.5rem;
      border-radius: 0.55rem;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      font-family: inherit;
      justify-content: flex-start;
    }

    .lang-option:hover {
      background: rgba(30, 64, 175, 0.8);
    }

    .lang-option.active {
      background: rgba(37, 99, 235, 0.95);
    }

    .nav-lang--mobile {
      margin-top: 0.75rem;
    }

    /* Mobile nav button */

    .nav-toggle {
      display: none;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(15, 23, 42, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .nav-toggle-line {
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: #e5e7eb;
      position: relative;
      transition: transform 0.2s ease;
    }

    .nav-toggle-line::before,
    .nav-toggle-line::after {
      content: "";
      position: absolute;
      left: 0;
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: #e5e7eb;
      transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
    }

    .nav-toggle-line::before {
      top: -6px;
    }

    .nav-toggle-line::after {
      top: 6px;
    }

    .nav-toggle.open .nav-toggle-line {
      transform: rotate(45deg);
    }

    .nav-toggle.open .nav-toggle-line::before {
      opacity: 0;
    }

    .nav-toggle.open .nav-toggle-line::after {
      transform: rotate(-90deg);
      top: 0;
    }

    .nav-mobile {
      display: none;
      flex-direction: column;
      gap: 0.75rem;
      padding: 0.7rem 0 0.95rem;
      font-size: 0.95rem;
      border-top: 1px solid rgba(31, 41, 55, 0.9);
    }

    .nav-mobile a {
      padding: 0.25rem 0;
	  display: inline-flex;     /* вместо block */
	  align-self: flex-start;   /* да не се разпъва */
	  width: auto;              /* маха 100% */
    }

    .nav-mobile-cta {
      margin-top: 0.35rem;
      align-self: flex-start;
    }
	
	.nav-mobile-cta span {
	  font-size: 0.9rem;         /* ако span-а наследява 1.1rem от .nav-cta span */
	  padding: 0.1rem 1rem;
	}

    main {
      padding-bottom: 3rem;
    }

    section {
      padding: 4rem 0;
    }

    /* Hero */

    .hero {
      padding-top: 3rem;
      padding-bottom: 4.5rem;
      text-align: center;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 3rem;
      align-items: center;
      justify-items: center;
      text-align: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.18rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 55%);
      font-size: 0.75rem;
      color: var(--muted);
      margin-bottom: 0.85rem;
    }

    .eyebrow-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 12px rgba(45, 212, 191, 0.9);
    }

    .hero-title {
      font-size: clamp(2.3rem, 4vw, 3rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
    }

    .hero-title span {
      background: linear-gradient(120deg, #60a5fa, #22d3ee, #a855f7);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-subtitle {
      color: var(--muted);
      max-width: 32rem;
      font-size: 0.98rem;
      margin-bottom: 1.75rem;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 2rem;
      justify-content: center;
    }

    .hero-badge {
      font-size: 0.8rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.55);
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .hero-badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
    }

    .btn-primary {
      padding: 0.8rem 1.4rem;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: white;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      filter: brightness(1.06);
      box-shadow: 0 23px 55px rgba(56, 189, 248, 0.7);
    }

    .btn-ghost {
      padding: 0.75rem 1.2rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.65);
      background: rgba(15, 23, 42, 0.7);
      color: var(--muted);
      font-size: 0.9rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    }

    .btn-ghost:hover {
      border-color: rgba(148, 163, 184, 1);
      background: rgba(15, 23, 42, 0.9);
      color: #e5e7eb;
      transform: translateY(-1px);
    }

    .hero-footnote {
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .hero-footnote span {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      border: 2px solid rgba(52, 211, 153, 0.4);
      box-shadow: 0 0 16px rgba(52, 211, 153, 0.9);
      position: relative;
    }

    .hero-footnote span::before {
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: inherit;
      background: #22c55e;
    }

    /* Hero visual */

    .hero-visual {
      position: relative;
    }

    .hero-card {
      border-radius: var(--radius-xl);
      background: radial-gradient(circle at top left, #1d283a, #020617 65%);
      border: 1px solid rgba(148, 163, 184, 0.55);
      box-shadow: var(--shadow-soft);
      padding: 1.3rem 1.35rem 1.4rem;
      position: relative;
      overflow: hidden;
    }

    .hero-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .hero-card-status {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: rgba(6, 95, 70, 0.35);
      color: #bbf7d0;
      font-size: 0.75rem;
      border: 1px solid rgba(45, 212, 191, 0.6);
    }

    .hero-card-status-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
    }

    .hero-card-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #e5e7eb;
    }

    .hero-card-body {
      display: grid;
      grid-template-columns: 1.35fr 1fr;
      gap: 1rem;
    }

    .metric-card {
      border-radius: var(--radius-lg);
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(55, 65, 81, 0.8);
      padding: 0.75rem 0.85rem;
      font-size: 0.8rem;
    }

    .metric-label {
      color: var(--muted);
      font-size: 0.78rem;
      margin-bottom: 0.1rem;
    }

    .metric-value {
      font-size: 1rem;
      font-weight: 600;
      display: flex;
      align-items: baseline;
      gap: 0.35rem;
    }

    .metric-value span {
      font-size: 0.8rem;
      color: #4ade80;
    }

    .metric-sub {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    .tickets-list {
      border-radius: var(--radius-lg);
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(55, 65, 81, 0.8);
      padding: 0.7rem 0.8rem;
      font-size: 0.78rem;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }

    .ticket-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
    }

    .ticket-main {
      display: flex;
      flex-direction: column;
      gap: 0.05rem;
    }

    .ticket-title {
      font-size: 0.8rem;
    }

    .ticket-meta {
      font-size: 0.72rem;
      color: var(--muted);
    }

    .ticket-pill {
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      font-size: 0.72rem;
      border: 1px solid rgba(148, 163, 184, 0.7);
    }

    .ticket-pill--crit {
      border-color: rgba(248, 113, 113, 0.9);
      color: #fecaca;
      background: rgba(153, 27, 27, 0.4);
    }

    .ticket-pill--ok {
      border-color: rgba(52, 211, 153, 0.9);
      color: #bbf7d0;
      background: rgba(6, 78, 59, 0.4);
    }

    .hero-card-footer {
      margin-top: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.76rem;
      color: var(--muted);
    }

    .hero-card-footer span {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .hero-glow {
      position: absolute;
      inset: -40px;
      background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.2), transparent 60%);
      opacity: 0.9;
      pointer-events: none;
    }

    .hero-orbits {
      position: absolute;
      inset: -60px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      transform: rotate(-8deg);
      pointer-events: none;
    }

    /* Section header */

    .section-header {
      text-align: left;
      margin-bottom: 1.8rem;
    }

    .section-eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 0.4rem;
    }

    .section-title {
      font-size: 1.5rem;
      margin-bottom: 0.3rem;
    }

    .section-subtitle {
      font-size: 0.95rem;
      color: var(--muted);
      max-width: 30rem;
    }

    /* Services */

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

    .card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.5), #020617 70%);
      border: 1px solid rgba(55, 65, 81, 0.9);
      padding: 1.1rem 1.1rem 1.2rem;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: "";
      position: absolute;
      inset: -60%;
      background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 55%);
      opacity: 0;
      transition: opacity var(--transition-fast);
      pointer-events: none;
    }

    .card:hover::before {
      opacity: 1;
    }

    .card-icon {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(129, 140, 248, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 0.8rem;
      background: rgba(15, 23, 42, 0.9);
      box-shadow: 0 0 20px rgba(129, 140, 248, 0.9);
    }

    .card-title {
      font-size: 1rem;
      margin-bottom: 0.4rem;
    }

    .card-text {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 0.8rem;
    }

    .card-meta {
      font-size: 0.78rem;
      color: #9ca3af;
    }

    /* Portfolio */

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

    .project-card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.35), #020617 65%);
      border: 1px solid rgba(55, 65, 81, 0.85);
      padding: 0.95rem 1.05rem 1.1rem;
      font-size: 0.9rem;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.95);
    }

    .project-header {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      align-items: center;
      margin-bottom: 0.35rem;
    }

    .project-title {
      font-weight: 600;
    }

        .project-tag {
      font-size: 0.75rem;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.8);
      color: #cbd5f5;
      background: rgba(15, 23, 42, 0.95);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      cursor: pointer;
      font-family: inherit;
      line-height: 1.2;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
	  flex: 0 0 auto;      /* да не се свива */
	  white-space: nowrap; /* да не пренася текста */
	  min-width: 0;  /* позволява на заглавието да се свива коректно във flex */
    }

    .project-tag:focus-visible {
      outline: 2px solid rgba(96, 165, 250, 0.9);
      outline-offset: 2px;
    }

    .project-body {
      color: var(--muted);
      font-size: 0.86rem;
      margin-bottom: 0.5rem;
    }

    .project-meta {
      font-size: 0.8rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      color: #e5e7eb;
    }

    .project-meta span {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* About */

    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 1.5rem;
      align-items: flex-start;
    }

    .about-text {
      font-size: 0.95rem;
      color: var(--muted);
      margin-bottom: 0.8rem;
    }

    .stats-row {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .stat {
      min-width: 130px;
      flex: 1 1 0;
      text-align: center;
      padding: 0.6rem 0.4rem 0.3rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.55);
      background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
      box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
    }

    .stat-value {
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      margin-bottom: 0.1rem;
    }

    .stat-label {
      font-size: 0.78rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    @media (max-width: 640px) {
      .stats-row {
        gap: 0.9rem;
      }

      .stat {
        text-align: left;
        border-radius: 14px;
      }
    }

    .about-card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), #020617 65%);
      border: 1px solid rgba(148, 163, 184, 0.7);
      padding: 1rem 1rem 1.1rem;
      font-size: 0.9rem;
      box-shadow: 0 18px 48px rgba(15, 23, 42, 0.95);
    }

    .about-card-title {
      font-weight: 600;
      margin-bottom: 0.35rem;
    }

    .about-card-list {
      list-style: none;
      padding-left: 0;
      margin-top: 0.5rem;
      display: grid;
      gap: 0.25rem;
      font-size: 0.86rem;
    }

    .about-card-list li::before {
      content: "•";
      margin-right: 0.35rem;
      color: #a5b4fc;
    }

    /* Contact */

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 1.8rem;
      align-items: stretch;
    }

    .contact-info {
      font-size: 0.9rem;
      color: var(--muted);
      border-radius: 24px;
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
      border: 1px solid rgba(30, 64, 175, 0.7);
      padding: 1.2rem 1.4rem 1.3rem;
      box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: space-between;
      min-height: 340px;
    }

    .contact-list {
      list-style: none;
      padding-left: 0;
      margin: 1rem 0 1.3rem;
      display: grid;
      gap: 0.4rem;
      font-size: 0.9rem;
    }

    .contact-list span {
      font-weight: 500;
      color: #e5e7eb;
      margin-right: 0.35rem;
    }

    .contact-pill-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .contact-pill {
      font-size: 0.8rem;
      padding: 0.5rem 0.9rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
      color: #e5e7eb;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
      letter-spacing: 0.01em;
    }

    .contact-pill::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: radial-gradient(circle, #60a5fa, #22d3ee);
      box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
    }

    @media (max-width: 900px) {
      .contact-pill-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .contact-pill-row {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .contact-form-card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.7), #020617 65%);
      border: 1px solid rgba(148, 163, 184, 0.85);
      padding: 1.1rem 1.15rem 1.2rem;
      box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
      margin-bottom: 0.7rem;
    }

    .form-group {
      margin-bottom: 0.7rem;
    }

    label {
      display: block;
      font-size: 0.8rem;
      margin-bottom: 0.25rem;
    }

    input,
    textarea {
      width: 100%;
      padding: 0.55rem 0.6rem;
      border-radius: 0.6rem;
      border: 1px solid rgba(148, 163, 184, 0.8);
      background: rgba(15, 23, 42, 0.96);
      color: #e5e7eb;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    }

    input::placeholder,
    textarea::placeholder {
      color: #6b7280;
    }

    input:focus,
    textarea:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
      background: rgba(15, 23, 42, 0.98);
    }

    textarea {
      min-height: 110px;
      resize: vertical;
    }

    .form-footer {
      margin-top: 0.6rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.7rem;
      justify-content: space-between;
    }

    .form-note {
      font-size: 0.75rem;
      color: #e5e7eb;
      max-width: 15rem;
    }

    .form-note span {
      color: #bbf7d0;
    }

    .form-message {
      margin-top: 0.6rem;
      font-size: 0.8rem;
      display: none;
    }

    .form-message.success {
      color: var(--success);
      display: block;
    }

    .form-message.error {
      color: var(--danger);
      display: block;
    }

    footer {
      border-top: 1px solid rgba(31, 41, 55, 0.95);
      padding: 1.2rem 0 1.4rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
    }

    .footer-links a {
      font-size: 0.8rem;
    }

    .gallery-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.88);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      z-index: 80;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

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

    .gallery-dialog {
      max-width: 900px;
      width: 100%;
      max-height: 90vh;
      border-radius: 20px;
      background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.45), #020617 70%);
      border: 1px solid rgba(148, 163, 184, 0.85);
      box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
      padding: 1.1rem 1.25rem 1.2rem;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .gallery-image-wrap {
      border-radius: 16px;
      overflow: hidden;
      background: #020617;
      border: 1px solid rgba(30, 64, 175, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 260px;
      max-height: 60vh;
    }

    .gallery-image-wrap img {
      max-width: 100%;
      max-height: 60vh;
      object-fit: contain;
    }

    .gallery-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      font-size: 0.85rem;
    }

    .gallery-nav {
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.75);
      background: rgba(15, 23, 42, 0.9);
      color: #e5e7eb;
      cursor: pointer;
      font-size: 0.85rem;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .gallery-nav:hover {
      background: rgba(15, 23, 42, 1);
      border-color: rgba(96, 165, 250, 0.9);
      transform: translateY(-1px);
    }

    .gallery-counter {
      color: #9ca3af;
      text-align: center;
      flex: 1;
    }

    .gallery-close {
      position: absolute;
      top: 0.7rem;
      right: 0.75rem;
      width: 32px;
      height: 32px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.8);
      background: rgba(15, 23, 42, 0.95);
      color: #e5e7eb;
      cursor: pointer;
      font-size: 0.9rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .gallery-close:hover {
      background: rgba(30, 64, 175, 0.95);
      border-color: rgba(129, 140, 248, 0.95);
      transform: translateY(-1px);
    }

    @media (max-width: 640px) {
      .gallery-dialog {
        padding: 0.9rem 0.9rem 1rem;
      }

      .gallery-controls {
        flex-direction: column;
        align-items: stretch;
      }

      .gallery-counter {
        order: -1;
      }
    }

    
    /* Premium fade-up animation */
    /* .fade-up { */
      /* opacity: 0; */
      /* transform: translateY(10px) scale(0.98); */
      /* will-change: transform, opacity; */
    /* } */
	
	.fade-up {
	  opacity: 0;
	  transform: translateY(16px);
	  transition: opacity 0.28s cubic-bezier(.4,0,.2,1),
				  transform 0.28s cubic-bezier(.4,0,.2,1);
	}

    .fade-up.is-visible {
      animation: fadeUpScale 0.3s ease-out forwards;
    }

    @keyframes fadeUpScale {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

/* Responsive */

    @media (max-width: 960px) {
      .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
      }

      .hero-visual {
        order: -1;
      }

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

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

      .about-grid,
      .contact-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      section {
        padding: 3.3rem 0;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .nav-toggle {
        display: flex;
      }

      .nav-mobile.open {
        display: flex;
      }

      .hero {
        padding-top: 2.1rem;
      }

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

      .section-header {
        text-align: left;
      }

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

    @media (max-width: 480px) {
      .hero-title {
        font-size: 1.9rem;
      }

      .footer-row {
        flex-direction: column;
        align-items: flex-start;
      }
    }
	
	/* Mobile language dropdown: show under the button */
	.nav-lang--mobile {
	  position: relative; /* anchor for the absolute dropdown */
	}

	.nav-lang--mobile .lang-menu {
	  left: 0;
	  right: auto;
	  top: calc(100% + 10px);
	}
	
	/* Fix Chrome autofill styles */
	input:-webkit-autofill,
	input:-webkit-autofill:hover,
	input:-webkit-autofill:focus,
	textarea:-webkit-autofill,
	select:-webkit-autofill {
	  -webkit-text-fill-color: #e5e7eb; /* цвета на текста ти */
	  transition: background-color 9999s ease-in-out 0s;
	  box-shadow: 0 0 0px 1000px rgba(2, 6, 23, 0.9) inset;
	  caret-color: #e5e7eb;
	}
	  
	  
	/* Fix anchor offset because of fixed header */
	section[id] {
	  scroll-margin-top: 90px; /* малко повече от header-а */
	}



	/* ===============================
	   /* Privacy confirm modal (FIX) */
	/* =============================== */

	/* #privacyConfirmModal[hidden] { */
	  /* display: none !important; */
	/* } */

	/* #privacyConfirmModal { */
	  /* position: fixed; */
	  /* inset: 0; */
	  /* z-index: 9999; */
	  /* display: flex; */
	  /* align-items: center; */
	  /* justify-content: center; */
	  /* padding: 16px; */
	/* } */

	/* #privacyConfirmModal .privacy-backdrop { */
	  /* position: absolute; */
	  /* inset: 0; */
	  /* background: rgba(2, 6, 23, 0.72); */
	  /* backdrop-filter: blur(6px); */
	/* } */

	/* #privacyConfirmModal .privacy-dialog { */
	  /* position: relative; */
	  /* width: min(640px, 100%); */
	  /* border-radius: 22px; */
	  /* border: 1px solid rgba(148, 163, 184, 0.25); */
	  /* background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92)); */
	  /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); */
	  /* padding: 18px 18px 16px; */
	/* } */

  