:root {
  --bg: #0a1428;
  --bg-band: #0e1a33;
  --bg-hero: #0c1731;
  --card: #111f3b;
  --ink: #e8eef8;
  --ink-2: #c3cfe5;
  --body: #c8d3e8;
  --muted: #9fb0cf;
  --muted-2: #97a8c8;
  --line: #1f3155;
  --line-hero: #22335a;
  --line-soft: #1c2c4d;
  --dash: #33477a;
  --outline: #3a5080;
  --accent: #5b9bff;
  --accent-hover: #9cc2ff;
  --accent-ink: #06101f;
  --display: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 80px;
  --card: #111f3b;
  --bg-hero: #0c1731;
  --ink: #e8eef8;
  --muted: #9fb0cf;
  --line: #1f3155;
  --dash: #33477a;
  --accent: #5b9bff;
  --accent-hover: #9cc2ff;
  --accent-ink: #06101f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head .stack { display: flex; flex-direction: column; gap: 16px; }
.divider { border-top: 1px solid var(--line); padding-top: 64px; }
.placeholder { border: 1.5px dashed var(--dash); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; transition: background-color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-outline { border: 1.5px solid var(--outline); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 23, 49, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-hero); }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.brand-name { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 19px; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--outline); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--ink-2); }
.lang-btn .chev { transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(2, 6, 18, 0.55); display: none; z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.lang-menu button:hover { background: var(--line-soft); }
.lang-menu button[aria-selected="true"] { background: var(--line-soft); }
.lang-menu .code { width: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lang-menu .check { color: var(--accent); opacity: 0; }
.lang-menu button[aria-selected="true"] .check { opacity: 1; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-shrink: 0; border: 1.5px solid var(--outline); border-radius: 8px; background: transparent; color: var(--ink); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; border-top: 1px solid var(--line-hero); background: var(--bg-hero); padding: 8px 20px 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a.link { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-size: 17px; }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* Hero */
.hero { background: var(--bg-hero); }
.hero-grid { padding-top: 104px; padding-bottom: 112px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; }
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #4ade80; }
.hero h1 { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.03; letter-spacing: -0.02em; }
.hero-text { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.6; color: var(--ink-2); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 40px; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--line-hero); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 32px; }
.stat span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.hero-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-hero); background: var(--card); }

/* About */
.about { padding-top: 128px; padding-bottom: 128px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
.about-head { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.about-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 28px; }
.about-body p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--body); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 12px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.fact .k { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.fact .v { font-size: 17px; font-weight: 600; }

/* Skills */
.skills { padding-bottom: 128px; display: flex; flex-direction: column; gap: 48px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.skill { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.skill-title { display: flex; align-items: center; gap: 14px; }
.icon-well { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.skill h3, .service h3 { margin: 0; font-family: var(--display); font-stretch: 108%; font-size: 24px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: 14px; }

/* Services */
.band { background: var(--bg-band); }
.services { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { background: var(--card); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.service .n { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.service p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Certificates carousel */
.certs { padding-top: 128px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 48px; }
.carousel { display: flex; flex-direction: column; gap: 28px; }
.carousel-bar { display: flex; justify-content: space-between; align-items: center; }
.counter { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.arrows { display: flex; gap: 12px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.arrow.prev { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.arrow.next { border: 0; background: var(--ink); color: var(--bg); }
.viewport { overflow: hidden; touch-action: pan-y; }
.track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.slide { flex: 0 0 calc((100% - 48px) / 3); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.slide .placeholder { height: 210px; }
.slide-img { width: 100%; height: 210px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.slide-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.slide-meta .tag { padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line); }
.slide-body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.slide h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.slide p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.slide-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.slide-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; }
.dots button { width: 40px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dots span { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--dash); transition: width .3s ease, background-color .3s ease; }
.dots button[aria-current="true"] span { width: 32px; background: var(--ink); }

/* Projects */
.projects { padding-bottom: 128px; display: flex; flex-direction: column; gap: 48px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project .placeholder { height: 260px; border: 0; border-radius: 0; background: var(--bg-band); }
.project-img { width: 100%; height: 260px; object-fit: cover; display: block; background: var(--bg-band); }
.project-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.project-meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.project h3 { margin: 0; font-family: var(--display); font-stretch: 108%; font-size: 26px; font-weight: 700; line-height: 1.2; }
.project p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 32px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.project-facts div { display: flex; flex-direction: column; gap: 2px; }
.project-facts .k { font-size: 13px; color: var(--muted-2); }
.project-facts .v { font-size: 16px; font-weight: 600; }

/* Experience */
.experience { padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; }
.experience-head { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.timeline { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; }
.job { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid #22345a; }
.job .period { font-family: var(--mono); font-size: 14px; color: #a3b3d0; padding-top: 4px; }
.job h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.job .where { display: block; font-size: 16px; color: #a3b3d0; margin-bottom: 8px; }
.job p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }

/* CV */
.cv { padding-top: 112px; padding-bottom: 112px; }
.cv-box { background: var(--bg-hero); border: 1px solid var(--line-hero); border-radius: 16px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.cv-copy { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.cv-copy .label { color: var(--muted); }
.cv-copy h2 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.12; }
.cv-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.cv-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* Contact */
.contact { padding-top: 16px; padding-bottom: 128px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.contact-info { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; }
.contact-info > p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-links { display: flex; flex-direction: column; margin: 0; padding: 8px 0 0; list-style: none; }
.contact-links a { display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--accent-hover); }
.contact-links svg { flex-shrink: 0; }
.form { grid-column: 7 / span 6; align-self: start; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--dash); border-radius: 6px; font: inherit; font-size: 16px; background: var(--bg-hero); color: var(--ink); }
.field textarea { height: auto; padding: 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f90b0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.25); }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 20px; }
.form-note.is-success { color: #4ade80; }
.field-error { font-size: 13px; line-height: 1.4; color: #ff8a8a; }
.field:has(.field-error) input,
.field:has(.field-error) select,
.field:has(.field-error) textarea { border-color: #ff8a8a; }

/* Footer */
.site-footer { background: var(--bg-hero); border-top: 1px solid var(--line-hero); color: var(--muted-2); font-size: 14px; }
.footer-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-family: var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links, .nav-actions .cv-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .slide { flex-basis: calc((100% - 24px) / 2); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-copy, .hero-side, .about-head, .about-body, .experience-head, .timeline, .contact-info, .form { grid-column: 1 / -1; }
  .hero-grid { padding-top: 64px; padding-bottom: 72px; }
  .about, .certs { padding-top: 88px; padding-bottom: 88px; }
  .skills, .projects { padding-bottom: 88px; }
  .skill-grid, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-box { flex-direction: column; align-items: stretch; padding: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 72px; }
  .nav { height: 64px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 17px; }
  .lang-btn { gap: 6px; padding: 0 10px; font-size: 14px; }
  .lang-menu { width: 190px; }
  .label { font-size: 13px; }
  .divider { padding-top: 48px; }

  .hero-grid { padding-top: 40px; padding-bottom: 48px; row-gap: 22px; }
  .hero-copy { gap: 22px; }
  .status { font-size: 13px; }
  .hero h1 { font-stretch: 112%; line-height: 1.06; }
  .hero-text { font-size: 17px; }
  .hero-ctas { flex-direction: column; gap: 12px; padding-top: 0; }
  .hero-ctas .btn { width: 100%; height: 52px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 22px; margin-top: 0; }
  .stat strong { font-size: 22px; font-stretch: 108%; }
  .stat span { font-size: 13px; }

  .about { padding-top: 64px; padding-bottom: 64px; row-gap: 20px; }
  .about-body { gap: 20px; }
  .about-body p { font-size: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 4px; }
  .fact { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
  .fact .v { font-size: 15px; text-align: right; }

  .skills { padding-bottom: 64px; gap: 24px; }
  .skill-grid { gap: 16px; }
  .skill { padding: 22px; gap: 16px; }
  .icon-well { width: 42px; height: 42px; }
  .skill h3, .service h3 { font-size: 20px; font-stretch: 105%; }
  .chips { gap: 8px; }
  .chips li { padding: 7px 11px; font-size: 13px; }

  .services { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .service-grid { gap: 16px; }
  .service { padding: 22px; gap: 10px; }
  .service p { font-size: 15px; }

  .certs { padding-top: 64px; padding-bottom: 64px; gap: 20px; }
  .carousel { gap: 20px; }
  .arrow { width: 44px; height: 44px; }
  .track { gap: 14px; }
  .slide { flex-basis: 86%; padding: 20px; gap: 14px; }
  .slide .placeholder { height: 180px; font-size: 12px; }
  .slide-img { height: 180px; }
  .slide-meta { font-size: 11px; }
  .slide h3 { font-size: 17px; }
  .slide p { font-size: 14px; }
  .slide-foot { font-size: 13px; }
  .dots button { width: 36px; }
  .dots button[aria-current="true"] span { width: 24px; }

  .projects { padding-bottom: 64px; gap: 24px; }
  .project-grid { gap: 16px; }
  .project .placeholder { height: 190px; font-size: 12px; }
  .project-img { height: 190px; }
  .project-body { padding: 20px; gap: 12px; }
  .project-meta { font-size: 12px; }
  .project h3 { font-size: 21px; font-stretch: 105%; }
  .project p { font-size: 15px; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .experience { padding-top: 56px; padding-bottom: 56px; row-gap: 8px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .job .period { font-size: 13px; padding-top: 0; }
  .job h3 { font-size: 18px; margin-bottom: 6px; }
  .job .where, .job p { font-size: 15px; }

  .cv { padding-top: 56px; padding-bottom: 56px; }
  .cv-box { padding: 28px 22px; gap: 20px; border-radius: 14px; }
  .cv-copy p { font-size: 15px; }
  .cv-actions .btn { width: 100%; height: 52px; }

  .contact { padding-top: 8px; padding-bottom: 64px; row-gap: 28px; }
  .contact-info { gap: 20px; }
  .contact-info > p { font-size: 16px; }
  .contact-links { padding-top: 0; }
  .contact-links a { min-height: 52px; font-size: 16px; gap: 12px; }
  .form { padding: 22px; gap: 16px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .dots span, .lang-btn .chev { transition: none; }
}
.form-contact {
  grid-column: 7 / span 6;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Ad və e-poçt yan-yana, qalanları tam en */
.form-contact .form-field-wrap:has(select),
.form-contact .form-field-wrap:has(textarea),
.form-contact .form-field-wrap:has([type="submit"]) { grid-column: 1 / -1; }

.form-field-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field-wrap label { font-size: 14px; font-weight: 600; color: var(--ink); }

.form-contact .form-field {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--dash);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  background: var(--bg-hero);
  color: var(--ink);
  box-sizing: border-box;
}
.form-contact .form-field-textarea { height: auto; min-height: 140px; padding: 14px; resize: vertical; }
.form-contact .form-field-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0cf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-contact .form-field-select option { background: var(--card); color: var(--ink); }
.form-contact .form-field::placeholder { color: #7f90b0; }
.form-contact .form-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.25);
}

/* Xəta (modulun JS-i sahənin altına əlavə edir) */
.form-field-error { font-size: 13px; line-height: 1.4; color: #ff8a8a; margin-top: 0 !important; }
.form-field-wrap:has(.form-field-error) .form-field { border-color: #ff8a8a; }

/* Göndər düyməsi */
.form-contact [type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background-color .2s ease;
}
.form-contact [type="submit"]:hover { background: var(--accent-hover); }
.form-contact [type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Uğur modalı ---------- */
.form-modal { position: fixed; inset: 0; z-index: 100; }
.form-modal-overlay { position: absolute; inset: 0; background: rgba(4, 9, 20, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.form-modal-container {
  position: relative;
  width: min(440px, calc(100% - 40px));
  margin: 20vh auto 0;
  padding: 24px 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.6);
  text-align: center;
}
.form-modal-header { display: flex; justify-content: flex-end; }
.form-modal-close {
  width: 44px;
  height: 44px;
  margin: -8px -12px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.form-modal-close:hover { color: var(--ink); background: var(--line-soft); }
.form-modal-message { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.form-modal-message::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}
.lang-menu a { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 12px; border-radius: 6px; background: transparent; color: var(--ink); font-size: 15px; text-decoration: none; box-sizing: border-box; }
.lang-menu a:hover { background: var(--line-soft); color: var(--ink); }
.lang-menu a[aria-selected="true"] { background: var(--line-soft); }
.lang-menu a[aria-selected="true"] .check { opacity: 1; }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .form-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form-contact { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 16px; }
  .form-contact [type="submit"] { height: 52px; }
}