/* =========================================================
   Portfolio - javni dio
   ========================================================= */

/* Svijetla tema je podrazumijevana; tamna se ukljucuje prekidacem (data-theme="dark"). */
:root {
  color-scheme: light;
  --bg:        #f7f8fc;
  --bg-alt:    #eef1f8;
  --surface:   #ffffff;
  --surface-2: #f2f4fb;
  --line:      #dfe4f0;
  --text:      #131725;
  --muted:     #5b6480;
  --accent:    #5a49f0;
  --accent-2:  #0891b2;
  --accent-soft: rgba(90, 73, 240, .10);
  --accent-line: rgba(90, 73, 240, .38);
  --accent-text: #4b3ce0;
  --header-bg: rgba(247, 248, 252, .85);
  --text-soft: #3a4159;
  --ok:        #059669;
  --err:       #e11d48;
  --ok-bg:     rgba(5, 150, 105, .10);
  --ok-line:   rgba(5, 150, 105, .35);
  --err-bg:    rgba(225, 29, 72, .08);
  --err-line:  rgba(225, 29, 72, .32);
  --cta-bg:    rgba(90, 73, 240, .12);
  --blob-1:    .16;
  --blob-2:    .12;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 18px 45px -24px rgba(24, 30, 60, .35);
  --wrap:      1180px;
  --font:      "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono:      ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0b0d14;
  --bg-alt:    #10131d;
  --surface:   #141826;
  --surface-2: #1a1f30;
  --line:      #262c40;
  --text:      #e8ecf7;
  --muted:     #9aa3bd;
  --accent:    #6d5efc;
  --accent-2:  #22d3ee;
  --accent-soft: rgba(109, 94, 252, .15);
  --accent-line: rgba(109, 94, 252, .45);
  --accent-text: #a99cff;
  --header-bg: rgba(11, 13, 20, .82);
  --text-soft: #c9d2e8;
  --ok:        #34d399;
  --err:       #fb7185;
  --ok-bg:     rgba(52, 211, 153, .14);
  --ok-line:   rgba(52, 211, 153, .4);
  --err-bg:    rgba(251, 113, 133, .14);
  --err-line:  rgba(251, 113, 133, .4);
  --cta-bg:    rgba(109, 94, 252, .18);
  --blob-1:    .28;
  --blob-2:    .16;
  --shadow:    0 18px 50px -20px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

.ico { flex: none; vertical-align: -.15em; }

/* ---------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; letter-spacing: .02em; font-size: .95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { color: var(--muted); font-size: .74rem; }

/* logo iz admin panela; visina dolazi iz postavki (inline style).
   for-light = glavni logo (svijetla tema), for-dark = logo za tamnu temu */
.brand-logo { display: block; width: auto; max-width: 300px; max-height: 64px; object-fit: contain; }
.brand-logo.for-dark { display: none; }
[data-theme="dark"] .brand-logo.for-light { display: none; }
[data-theme="dark"] .brand-logo.for-dark { display: block; }
.site-footer .brand-logo { max-height: 44px; }

@media (max-width: 620px) {
  .brand-logo { max-width: 180px; max-height: 36px; }
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a {
  padding: 8px 13px; border-radius: 9px; font-size: .93rem; font-weight: 500;
  color: var(--muted); transition: color .18s, background .18s;
}
.main-nav > a:hover { color: var(--text); background: var(--surface); }
.main-nav > a.active { color: var(--text); background: var(--accent-soft); }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 9px 18px !important; font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.1); }

.lang-switch {
  display: flex; margin-left: 8px; border: 1px solid var(--line);
  border-radius: 9px; overflow: hidden;
}
.lang-switch a {
  padding: 6px 10px; font-size: .78rem; font-weight: 700; color: var(--muted);
  background: transparent; transition: .18s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { background: var(--accent); color: #fff; }

.theme-toggle, .nav-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer; transition: .18s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--surface); }
.nav-toggle { display: none; }

/* ---------------------------------------------------- dugmad */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .16s, filter .16s, background .16s, border-color .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #8b7cff); color: #fff; box-shadow: 0 12px 30px -14px var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .87rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: .82rem; font-weight: 600;
}

.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: .76rem; font-weight: 600; margin-bottom: 12px;
}
.chip-float { position: absolute; left: 14px; bottom: 14px; margin: 0; background: rgba(10, 12, 20, .78); color: #fff; backdrop-filter: blur(6px); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tag {
  padding: 5px 11px; border-radius: 8px; font-size: .75rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.tags-lg .tag { font-size: .85rem; padding: 8px 14px; }

/* ---------------------------------------------------- hero */

.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-bg::before { width: 520px; height: 520px; top: -180px; left: -120px; background: var(--accent); opacity: var(--blob-1); }
.hero-bg::after  { width: 420px; height: 420px; top: 40px; right: -140px; background: var(--accent-2); opacity: var(--blob-2); }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-text h1 { margin-bottom: 18px; }
.hero-text h1::after {
  content: ""; display: block; width: 74px; height: 4px; border-radius: 4px; margin-top: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }

.stats { display: flex; flex-wrap: wrap; gap: 34px; }
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: .85rem; }

/* prozor sa kodom */
.hero-visual { position: relative; }
/* prozor sa kodom je uvijek taman (kao editor), u obje teme */
.window {
  background: #0f1422; border: 1px solid #222a40; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1.2deg);
}
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: #151b2d; border-bottom: 1px solid #222a40;
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.window-bar i:first-child { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; color: #8b95b3; font-size: .78rem; font-family: var(--mono); }
.window-code { margin: 0; padding: 22px; font-family: var(--mono); font-size: .87rem; line-height: 1.85; color: #e2e8f0; overflow-x: auto; }
.c-key { color: #c084fc; } .c-cls { color: var(--accent-2); } .c-fn { color: #60a5fa; }
.c-var { color: #f0abfc; } .c-str { color: #86efac; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 12px; font-size: .82rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.float-1 { top: -18px; right: 18px; color: var(--accent-2); }
.float-2 { bottom: 46px; left: -26px; color: var(--accent); animation-delay: .9s; }
.float-3 { bottom: -20px; right: 46px; color: #86efac; animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ---------------------------------------------------- sekcije */

.section { padding: 76px 0; }
.section-top-0 { padding-top: 34px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.page-head { padding: 56px 0 10px; }
.page-head h1 { margin-bottom: 10px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------------------------------------------------- kartice */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }

.card-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 800; color: var(--line); letter-spacing: .04em;
}

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.card-body time { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.card-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  color: var(--accent); font-size: .88rem; font-weight: 600;
}
.card-more:hover { gap: 11px; }
.card-more .ico { transition: transform .2s; }

.service-mini { padding: 26px; }
.service-mini h3 { margin: 14px 0 8px; }
.service-mini p { color: var(--muted); font-size: .9rem; }
.service-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
}
.price-mini { margin-top: auto; font-weight: 700; color: var(--accent-2); }

/* ---------------------------------------------------- filteri */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.filter {
  padding: 9px 17px; border-radius: 999px; font-size: .87rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  transition: .18s;
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------- detalj */

.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.back-link:hover { color: var(--accent); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.detail-cover {
  margin: 34px 0 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }

.detail-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-block { padding-top: 14px; }
.info-block > span { color: var(--muted); font-size: .9rem; }
.info-cta { background: linear-gradient(135deg, var(--accent-soft), transparent); text-align: center; }
.info-cta h3 { margin-bottom: 14px; }

.prose { font-size: 1.02rem; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { color: var(--text-soft); }
.prose ul, .prose ol { color: var(--text-soft); padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: var(--radius-sm); margin: 18px 0; }
.prose blockquote {
  margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted);
}
.prose code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

.post-date { color: var(--muted); font-size: .84rem; display: block; margin-bottom: 10px; }

/* ---------------------------------------------------- cijene */

.pricing { align-items: stretch; }
.price-card { position: relative; padding: 30px 26px; }
.price-card.is-featured { border-color: var(--accent-line); box-shadow: 0 22px 50px -28px var(--accent); }
.ribbon {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700;
}
.price-card h2 { font-size: 1.3rem; margin: 16px 0 10px; }
.price-desc { color: var(--muted); font-size: .93rem; }
.price { margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.price small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.price strong { font-size: 1.85rem; letter-spacing: -.03em; }
.price em { display: block; color: var(--muted); font-size: .8rem; font-style: normal; }

.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .92rem; }
.feature-list .ico { color: var(--ok); margin-top: 4px; }
.price-card .btn { margin-top: auto; }

/* ---------------------------------------------------- o meni */

.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.about-photo { position: sticky; top: 96px; }
.about-photo img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-fallback {
  display: grid; place-items: center; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 4rem; font-weight: 800;
}
.about-contact { display: grid; gap: 10px; margin-top: 18px; }
.about-contact a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.about-contact a:hover { color: var(--accent); }
.about-contact .btn { margin-top: 6px; color: #fff; justify-content: center; }
.about-body h2 { margin: 38px 0 16px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 16px; }
.tl-dot { position: absolute; left: -33px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-when { display: block; color: var(--accent-2); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.timeline strong { display: block; font-size: 1.05rem; margin-top: 2px; }
.timeline p { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }

/* ---------------------------------------------------- kontakt / forme */

.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex; align-items: center; gap: 11px; padding: 14px 18px;
  border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .93rem;
}
.alert-ok  { background: var(--ok-bg);  border: 1px solid var(--ok-line);  color: var(--ok); }
.alert-err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err); }

.contact-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info h2 { font-size: 1.15rem; margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.contact-list li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .9rem; }
.contact-list a:hover { color: var(--accent); }
.contact-list .ico { color: var(--accent); }
.contact-list.big li { font-size: .96rem; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted); transition: .18s;
}
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials.big a { width: 44px; height: 44px; }

/* ---------------------------------------------------- CTA traka */

.cta-band {
  background: linear-gradient(135deg, var(--cta-bg), var(--bg-alt));
  border-block: 1px solid var(--line); padding: 56px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------- 404 */

.notfound { padding: 110px 0; }
.big-404 {
  display: block; font-size: 6rem; font-weight: 900; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
.notfound .btn { margin-top: 12px; }

/* ---------------------------------------------------- footer */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 44px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 16px; max-width: 42ch; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: .92rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-aside, .about-photo { position: static; }
  .about-photo img, .photo-fallback { max-width: 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: 72px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 20px 26px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav > a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; justify-content: center; margin-top: 6px; }
  .lang-switch { margin: 12px 0 0; width: fit-content; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 52px 0 64px; }
  .section { padding: 56px 0; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .stat strong { font-size: 1.5rem; }
  .float-card { display: none; }
  .window { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand-text small { display: none; }
  .form, .contact-info { padding: 20px; }
}

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