:root {
  --navy: #2c3a48;
  --navy-2: #24303c;
  --orange: #c65a22;
  --tag: #5f6270;
  --cream: #f3ede3;
  --cream-2: #e8e0d2;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,237,227,.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--orange);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.nav img.logo { height: 48px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 20px;
  font-size: 13.5px; font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--navy); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.burger {
  display: none; width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: var(--navy);
  margin: 7px 8px; border-radius: 2px;
}
.btn {
  display: inline-block; background: var(--orange); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 4px; border: 0; cursor: pointer;
}
.btn:hover { background: #a84a1b; }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid #fff;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-wa { background: #1f6b4a; }
.btn-wa:hover { background: #175338; }

.hero {
  color: var(--cream); padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(44,58,72,.92) 38%, rgba(44,58,72,.55) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker {
  color: var(--orange); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 12px; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px); line-height: 1.15;
  max-width: 16ch; margin-bottom: 14px;
}
.hero .lead { max-width: 46ch; color: #e8e0d2; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 72px 0; }
h2 {
  font-size: 18px;
  margin-bottom: 10px;
  transform: scale(.84);
  transform-origin: left center;
  transition: transform .85s ease, font-size .85s ease, border-color .9s ease;
}
h2.in {
  transform: scale(1);
  font-size: clamp(22px, 3.2vw, 30px);
}
h3 { font-size: 16px; margin-bottom: 8px; }
.sub { color: var(--tag); margin-bottom: 36px; max-width: 56ch; }

.grid-4, .grid-3 {
  display: grid; gap: 22px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(44,58,72,.06);
  color: inherit; text-decoration: none; display: block;
  border: 2px solid transparent;
  transform: scale(.86);
  transition: transform .85s ease, border-color .95s ease;
}
.card.in {
  transform: scale(1);
  border-color: var(--orange);
}
.card img { height: 170px; width: 100%; object-fit: cover; }
.card .body { padding: 20px 20px 24px; }
.card p { color: var(--tag); font-size: 14.5px; }
.card .more { color: var(--orange); font-weight: 700; font-size: 13px; margin-top: 12px; }

.about { background: #fff; }
.about-grid {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 160px 1fr;
}
.about img.portrait {
  width: 160px; height: 200px; border-radius: 10px;
  object-fit: cover; object-position: top;
}
.page-hero {
  background: var(--navy); color: #fff; padding: 48px 0 40px;
}
.page-hero .sub { color: #c9c3b8; margin-bottom: 0; }
.split {
  display: grid; gap: 32px; align-items: start;
  grid-template-columns: 1fr 1fr;
}
.levels { display: grid; gap: 16px; }
.level {
  background: #fff; padding: 18px 20px; border-radius: 10px;
  border-left: 4px solid var(--orange);
}
.level strong { display: block; margin-bottom: 4px; }

.contact { background: var(--navy); color: var(--cream); }
.contact h2 { color: #fff; }
.contact .sub { color: #c9c3b8; }
.contact a { color: #fff; }
.contact-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr 1.1fr;
}
.item h3 {
  font-size: 12px; color: var(--orange); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.item p { font-size: 17px; font-weight: 600; }
form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 0; border-radius: 6px;
  font: inherit; color: var(--navy);
}
.checks { display: grid; gap: 8px; font-weight: 500; font-size: 14px; }
.checks label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.form-note { font-size: 13px; color: #c9c3b8; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--navy); color: var(--cream);
  border-radius: 12px; padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 32px rgba(44,58,72,.28);
  max-width: 720px; margin: 0 auto;
}
.cookie p { font-size: 13.5px; line-height: 1.45; }
.cookie .btn { flex-shrink: 0; }
.cookie.off { display: none; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
}

footer {
  background: var(--navy-2); color: #9aa3ab;
  padding: 22px 0; font-size: 13px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal { opacity: .85; }

.fade { opacity: 1; }

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .projects { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .projects { grid-template-columns: 1fr 1fr 1fr; }
}
.proj {
  margin: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44,58,72,.06);
  transform: scale(.86);
  transition: transform .85s ease, border-color .95s ease;
}
.proj.in {
  transform: scale(1);
  border-color: var(--orange);
}
.proj img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
@media (max-width: 820px) {
  .proj img { height: 240px; }
}
h2.lined {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px 12px;
  margin-left: -12px;
}
h2.lined.in {
  border-color: var(--orange);
}

.wizard-wrap { max-width: 720px; }
.steps {
  list-style: none; display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--tag);
}
.steps li {
  padding: 6px 10px; border-radius: 999px; background: #fff;
  border: 1px solid #ddd;
}
.steps li.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.steps li.done { border-color: var(--orange); color: var(--orange); }
.panel { display: none; }
.panel.on { display: block; }
.panel h2 { transform: none; font-size: 24px; }
.pick { display: grid; gap: 12px; margin: 18px 0 22px; }
.choice {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 2px solid transparent; border-radius: 12px;
  padding: 14px 16px; cursor: pointer;
  width: 100%;
}
.choice:has(input:checked), .choice.sel { border-color: var(--orange); background: #fff8f3; }
.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 20px; height: 20px; margin: 0; flex: 0 0 20px;
  accent-color: var(--orange);
}
.choice span { flex: 1; min-width: 0; }
.choice strong { display: block; }
.choice small { display: block; color: var(--tag); font-size: 13px; }
.colors { grid-template-columns: 1fr; }
.swatch { display: block; height: 28px; border-radius: 6px; margin-bottom: 8px; }
.s1 { background: linear-gradient(90deg,#f4f4f0,#e8e6df); border: 1px solid #ddd; }
.s2 { background: linear-gradient(90deg,#f3ead7,#d9cbb3); }
.s3 { background: linear-gradient(90deg,#6b6258,#2f3238); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab { font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.tiny { font-size: 12.5px; color: var(--tag); margin: 6px 0 16px; }
.hint { color: #a33; font-size: 14px; }
.summary {
  background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.summary span { color: var(--tag); }
.wizard-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.contact-only { grid-template-columns: 1fr; max-width: 520px; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filebtn {
  display: block; text-align: center; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 16px; padding: 16px 18px; border-radius: 10px;
  cursor: pointer; margin: 8px 0;
}
.filelist { font-size: 14px; color: var(--navy); margin: 0 0 6px; }
@media (max-width: 640px) {
  .colors, .two { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 16px 20px 22px; gap: 14px;
    border-bottom: 3px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .about-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .about img.portrait { width: 140px; height: 175px; }
  .hero { padding: 48px 0 56px; }
}
