/* ============================================================
   Металл 51 — Light Industrial Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg-page: #F5F3F0;
  --bg-white: #FFFFFF;
  --bg-warm: #EDEBE7;
  --bg-dark: #1A1D24;

  --text-main: #1A1B1E;
  --text-secondary: #5C5F66;
  --text-muted: #93969E;
  --text-inverse: #EAECF0;

  --accent: #E04414;
  --accent-hover: #C5390D;
  --accent-light: rgba(224, 68, 20, 0.08);

  --border: #DCD8D2;
  --border-light: #EBE8E3;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --gap: 1.5rem;
  --section-pad: clamp(4rem, 7vw, 6rem);
  --radius: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Header --- */
.section-head {
  margin-bottom: 3rem;
}
.section-head__line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
}
.section-head__line--light {
  background: rgba(255,255,255,0.4);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
}
.text-accent { color: var(--accent); }

/* --- Logo --- */
.logo {
  font-family: 'Russo One', 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-main);
}
.logo__num {
  color: var(--accent);
  margin-left: 0.1em;
}
.logo--footer {
  font-family: 'Russo One', 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-main);
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-main);
  background: transparent;
  color: var(--text-main);
}
.btn--sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn--full { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2rem; }
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text-main); }
.header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__phone {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger__line {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: transform var(--dur) var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 7rem 0 4rem;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
/* Industrial background pattern */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, #1A1B1E 39px, #1A1B1E 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, #1A1B1E 39px, #1A1B1E 40px);
  mask-image: radial-gradient(ellipse 70% 60% at 80% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 50%, black 20%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__overline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 460px;
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
}
.metric {
  text-align: center;
}
.metric__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
}
.metric__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg-page);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* 5 items: последний в центре */
.services__grid .service-card:last-child:nth-child(3n+2) {
  grid-column: 2;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.service-card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.service-card__icon {
  margin-bottom: 1rem;
  opacity: 0.85;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.service-card__text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.service-card__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-warm);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Process
   ============================================================ */
.process {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.process__list {
  max-width: 640px;
}

.process-row {
  display: flex;
  gap: 1.25rem;
}
.process-row:not(:last-child) .process-row__body {
  padding-bottom: 2rem;
}
.process-row__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}
.process-row__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}
.process-row__vline {
  width: 2px;
  flex: 1;
  background: var(--border-light);
  margin-top: 4px;
}
.process-row__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.process-row__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Nav active */
.nav__link--active { color: var(--accent); }

/* Anchor offset — чтобы фиксированный хедер не перекрывал якорь */
#services { scroll-margin-top: 80px; }
#contact { scroll-margin-top: 80px; }

/* Service card link */
.service-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--dur);
}
.service-card__link:hover { color: var(--accent-hover); }

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  padding: 6rem 0 3rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 560px;
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--dur);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-muted); }

/* ============================================================
   Page Content (2-col layout)
   ============================================================ */
.page-content {
  padding: 3rem 0 var(--section-pad);
  background: var(--bg-page);
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.page-content__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}
.page-content__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Service list */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.service-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.service-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Aside cards */
.aside-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.aside-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.aside-card ul { display: flex; flex-direction: column; gap: 0.5rem; }
.aside-card li { font-size: 0.85rem; }
.aside-card a {
  color: var(--text-secondary);
  transition: color var(--dur);
}
.aside-card a:hover { color: var(--accent); }
.aside-card--cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.aside-card--cta h4 { color: #fff; }
.aside-card--cta p {
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.aside-card__phone {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .page-content__grid { grid-template-columns: 1fr; }
  .page-hero { padding: 5rem 0 2rem; }
}

/* ============================================================
   Policy page
   ============================================================ */
.policy {
  max-width: 780px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.policy h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.policy h2:first-of-type { border-top: none; padding-top: 0; }
.policy h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-main);
  margin: 1.5rem 0 0.5rem;
}
.policy p { margin-bottom: 0.75rem; }
.policy ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.policy ul li { margin-bottom: 0.35rem; }
.policy a { color: var(--accent); }

/* Policy summary card */
.policy-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.policy-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.policy-summary__item:nth-child(odd) {
  border-right: 1px solid var(--border-light);
}
.policy-summary__item:nth-last-child(-n+2) { border-bottom: none; }
.policy-summary__label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.policy-summary__value {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Policy terms (definitions) */
.policy-terms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.policy-term {
  display: flex;
  gap: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.policy-term__name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 180px;
}
.policy-term__def {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Policy tables */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.policy-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.policy-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.015);
}

@media (max-width: 768px) {
  .policy-summary { grid-template-columns: 1fr; }
  .policy-summary__item:nth-child(odd) { border-right: none; }
  .policy-term { flex-direction: column; gap: 0.25rem; }
  .policy-term__name { min-width: auto; }
  .policy-table { font-size: 0.78rem; }
}

/* ============================================================
   Clients (О компании)
   ============================================================ */
.clients {
  padding: 3rem 0 var(--section-pad);
  background: var(--bg-page);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.client-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--dur);
}
.client-card:hover { border-color: var(--border); }

.client-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.client-card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

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

/* ============================================================
   About
   ============================================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--bg-page);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fact {
  display: flex;
  gap: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.fact__icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.fact__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.fact__text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--bg-page);
}

.contact__card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  color: var(--text-inverse);
}

.contact__info .section-title {
  color: #fff;
}
.contact__desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 400px;
}
.contact__details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact__phone {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color var(--dur);
}
.contact__phone:hover { color: var(--accent-hover); }
.contact__email {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur);
}
.contact__email:hover { color: rgba(255,255,255,0.85); }
.contact__address {
  font-style: normal;
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
}

/* Form */
.contact__form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-group {
  margin-bottom: 0.75rem;
}
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color var(--dur);
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }

textarea.form-input { resize: vertical; min-height: 80px; }

.contact__form .btn {
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.6rem;
  text-align: center;
}

/* Consent checkbox */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-consent a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.form-consent a:hover { color: #fff; }

/* Honeypot — скрыто от людей, видно ботам */
.hp-field-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Form hint */
.form-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

/* File upload */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
  text-align: center;
}
.file-upload:hover,
.file-upload--drag {
  border-color: var(--accent);
  background: rgba(240,74,26,0.06);
}
.file-upload__input {
  display: none;
}
.file-upload__icon {
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.25rem;
}
.file-upload__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.file-upload__hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* File list */
.file-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
.file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list__size {
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  font-size: 0.7rem;
}
.file-list__remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  transition: color var(--dur);
  flex-shrink: 0;
}
.file-list__remove:hover { color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--dur);
}
.footer__col a:hover { color: var(--accent); }
.footer__col li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal--open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal__body {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { color: var(--text-main); }

.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}
.modal__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Modal form — light theme */
.modal .form-label {
  color: var(--text-muted);
}
.modal .form-input {
  background: var(--bg-page);
  border-color: var(--border);
  color: var(--text-main);
}
.modal .form-input:focus { border-color: var(--accent); }
.modal .form-input::placeholder { color: var(--text-muted); }
.modal .file-list__item {
  background: var(--bg-warm);
  color: var(--text-main);
  font-size: 0.8rem;
}
.modal .file-list__size { color: var(--text-muted); }

/* Fast calc button */
.btn--fast {
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.btn--fast:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.btn--has-files {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* File list remove button in modal */
.modal .file-list__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;
  transition: color var(--dur);
}
.modal .file-list__remove:hover { color: var(--accent); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-dark);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 200;
  transition: transform 0.35s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
}
.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__metrics { justify-content: flex-start; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:last-child:nth-child(3n+2) { grid-column: unset; }
}

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

  .nav--open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
  }
  .nav--open .nav__list {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .hero__metrics { gap: 1rem; }

  .services__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__card { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__bottom { flex-direction: column; }
}
