﻿:root {
  --ink: #172033;
  --muted: #687086;
  --purple: #6857d9;
  --purple-dark: #4d3db7;
  --lilac: #f1efff;
  --ice: #f7f9fc;
  --white: #ffffff;
  --line: #e4e8f0;
  --green: #31b78b;
  --shadow: 0 18px 55px rgba(31, 38, 67, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--ice); }
.section-purple { color: var(--white); background: linear-gradient(135deg, #4939aa, #7463e8); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.section-purple .eyebrow { color: #dcd7ff; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 21px; }
p { margin: 0 0 18px; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.section-purple .lead { color: #eeeaff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: var(--white);
  background: var(--purple);
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}

.button:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(104, 87, 217, .24); }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line); }
.button-outline:hover { color: var(--purple); background: var(--white); border-color: var(--purple); }
.button-white { color: var(--purple-dark); background: var(--white); border-color: var(--white); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(228, 232, 240, .8);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.header-inner { display: flex; align-items: center; min-height: 84px; gap: 34px; }
.brand { margin-right: auto; }
.brand img { width: 178px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a, .nav-dropdown > button { border: 0; color: #394056; background: transparent; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.nav > a:hover, .nav-dropdown > button:hover, .nav .active { color: var(--purple); }
.nav-dropdown { position: relative; }
.nav-dropdown > button::after { content: " +"; color: var(--purple); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  display: grid;
  width: 280px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: .2s ease;
}

.dropdown-menu a { padding: 9px 12px; border-radius: 9px; color: #535b70; font-size: 14px; }
.dropdown-menu a:hover { color: var(--purple); background: var(--lilac); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.header-phone { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink); background: var(--ice); font-size: 21px; cursor: pointer; }

.hero { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: #242341; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 25, 43, .92) 0%, rgba(27, 31, 53, .72) 45%, rgba(27, 31, 53, .18) 100%), url("../images/dis-laboratuvari.jpg") center/cover; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -110px; bottom: -180px; border: 80px solid rgba(112, 94, 225, .42); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 110px 0; }
.hero h1 span { color: #a99cff; }
.hero .lead { margin: 26px 0 32px; color: #eef0fa; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-outline { color: var(--white); border-color: rgba(255,255,255,.42); }
.hero .button-outline:hover { color: var(--ink); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 56px; }
.hero-fact strong { display: block; font-size: 24px; }
.hero-fact span { color: #cdd1df; font-size: 13px; }

.intro-grid, .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 76px; }
.media-card { position: relative; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-badge { position: absolute; right: -22px; bottom: 28px; max-width: 210px; padding: 22px; border-radius: 16px; color: var(--white); background: var(--purple); font-size: 14px; box-shadow: var(--shadow); }
.media-badge strong { display: block; margin-bottom: 4px; font-size: 22px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-heading p { max-width: 540px; margin: 0; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; background: var(--white); transition: .25s ease; }
.service-card:focus-visible { outline: 3px solid rgba(104, 87, 217, .45); outline-offset: 3px; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-content { padding: 24px; }
.service-card p { margin: 10px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-link { color: var(--purple); font-size: 13px; font-weight: 800; }
.text-link::after { content: " →"; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.18); }
.capability { padding: 36px; background: rgba(69, 52, 165, .72); }
.capability .number { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #ddd8ff; font-weight: 700; }
.capability p { margin: 10px 0 0; color: #e4e1f6; font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.gallery img:nth-child(2), .gallery img:nth-child(4) { transform: translateY(22px); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 48px; border-radius: var(--radius); color: var(--white); background: linear-gradient(125deg, #4a3bb0, #7462e8); box-shadow: var(--shadow); }
.cta p { margin: 12px 0 0; color: #e5e0ff; }

.page-hero { position: relative; overflow: hidden; padding: 88px 0; color: var(--white); background: linear-gradient(120deg, #262440, #5146a8); }
.page-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: 4%; top: -220px; border: 65px solid rgba(255,255,255,.09); border-radius: 50%; }
.breadcrumbs { margin-bottom: 16px; color: #d7d2ff; font-size: 13px; }
.breadcrumbs a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(40px, 5vw, 62px); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 72px; }
.article h2 { margin-bottom: 24px; }
.article p { color: #565e72; }
.article ul { padding-left: 21px; color: #565e72; }
.article li { margin-bottom: 8px; }
.article-image { position: sticky; top: 112px; }
.article-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-note { margin-top: 20px; padding: 20px; border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; background: var(--lilac); color: #48416f; font-size: 14px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.value-card p { margin: 12px 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; }
.contact-list { display: grid; gap: 16px; margin-top: 32px; }
.contact-item { padding: 22px; border: 1px solid var(--line); border-radius: 15px; }
.contact-item span { display: block; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 36px; border-radius: var(--radius); background: var(--ice); }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--white); }
.field input:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(104,87,217,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { margin-top: 0; color: #cfd3e0; background: #171b2b; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 64px; padding: 70px 0 54px; }
.footer-logo { width: 170px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-about { max-width: 430px; color: #adb3c4; font-size: 14px; }
.footer-title { margin-bottom: 18px; color: var(--white); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; color: #b9bfce; font-size: 14px; }
.footer-links a:hover { color: #a99cff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8f96a9; font-size: 13px; text-align: center; }
.footer-credit { margin-left: 10px; }
.footer-credit a { color: #b9b1ff; font-weight: 700; }
.footer-credit a:hover { color: var(--white); }
.mobile-actions { display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .header-phone { display: none; }
  .nav { position: fixed; inset: 84px 0 auto 0; display: none; max-height: calc(100vh - 84px); padding: 26px 24px 38px; overflow: auto; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .nav.open { display: grid; gap: 17px; }
  .nav > a, .nav-dropdown > button { font-size: 15px; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > button { width: 100%; }
  .dropdown-menu { position: static; left: auto; width: auto; margin-top: 8px; padding: 6px 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
  .dropdown-menu a { padding: 6px 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .split, .article-layout, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .article-image { position: static; order: -1; }
  .article-image img { aspect-ratio: 16 / 9; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 150px; }
  .nav { inset: 72px 0 auto 0; max-height: calc(100vh - 72px); }
  .hero { min-height: 650px; }
  .hero-content { padding: 82px 0; }
  .hero::before { background: linear-gradient(rgba(20,25,43,.86), rgba(27,31,53,.8)), url("../images/dis-laboratuvari.jpg") center/cover; }
  .hero-facts { gap: 22px; }
  .hero-fact { width: calc(50% - 12px); }
  .services-grid, .capabilities, .gallery, .values { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img:nth-child(2), .gallery img:nth-child(4) { transform: translateY(10px); }
  .media-badge { right: 10px; }
  .cta { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .field-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-credit { display: block; margin: 5px 0 0; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-actions { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid rgba(255, 255, 255, .22); background: var(--purple); box-shadow: 0 -8px 28px rgba(23, 32, 51, .18); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 64px; padding: 10px 8px; border-radius: 0; color: var(--white); font-size: 12px; font-weight: 800; line-height: 1.15; box-shadow: none; }
  .mobile-actions a + a { border-left: 1px solid rgba(255, 255, 255, .24); }
  .mobile-actions .phone { background: var(--purple); }
  .mobile-actions .whatsapp { background: #159b63; }
  .mobile-actions .instagram { background: linear-gradient(135deg, #833ab4, #d62976, #f77737); }
  .mobile-action-icon { flex: 0 0 auto; width: 21px; height: 21px; object-fit: contain; filter: brightness(0) invert(1); }
  .phone-icon { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
