:root {
  --paper: #efe6d4;
  --paper-2: #f7f1e4;
  --ink: #17211c;
  --muted: #3e4c45;
  --pine: #12211c;
  --pine-2: #1b3a32;
  --gold: #e7c36a;
  --foam: #e5f3ee;
  --line: rgba(23, 33, 28, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(239, 230, 212, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.brand {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 1.15rem;
  align-items: center;
}
.nav-links a { text-decoration: none; font-size: 0.98rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-hire, .lang, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-hire, .lang {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.nav-hire { background: var(--pine); color: #f6f1e6; }
.lang { border: 1px solid var(--line); }
.nav-toggle {
  display: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ee08a;
  box-shadow: 0 0 0 0 rgba(142, 224, 138, 0.7);
  animation: ping 1.8s infinite;
}
.dot-dark { background: #146c43; box-shadow: 0 0 0 0 rgba(20, 108, 67, 0.45); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(142, 224, 138, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(142, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 224, 138, 0); }
}

.hero {
  width: min(1180px, calc(100% - 20px));
  margin: 12px auto 0;
  background:
    radial-gradient(800px 380px at 100% -10%, rgba(231, 195, 106, 0.2), transparent 50%),
    radial-gradient(640px 420px at -10% 110%, rgba(55, 130, 112, 0.35), transparent 55%),
    var(--pine);
  color: #f6f1e6;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 36px;
  align-items: end;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker-dark { color: var(--ink); }
h1 span {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.lead, .sec-lead { max-width: 62ch; }
.lead { margin-top: 18px; font-size: 1.12rem; color: rgba(246, 241, 230, 0.86); }
.hero-actions, .pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { margin-top: 26px; }
.pills { list-style: none; padding: 0; margin: 22px 0 0; }
.pills a, .card-link {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 230, 0.28);
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ink { background: var(--pine); color: #f6f1e6; }
.btn-line { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn:hover { transform: translateY(-1px); }
.portrait-card { position: relative; margin: 0; justify-self: end; max-width: 240px; }
.portrait-card img, .about-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f6f1e6;
  box-shadow: 0 0 0 8px rgba(231, 195, 106, 0.28);
}
.portrait-card figcaption { margin-top: 14px; }
.portrait-card figcaption span, .about-role { display: block; color: rgba(246, 241, 230, 0.72); font-size: 0.92rem; }
.stamp {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.band { padding: 72px 0; }
section, .hire { scroll-margin-top: 84px; }
.sec-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.sec-label.light { color: rgba(246, 241, 230, 0.62); }
.sec-lead { margin-top: 14px; color: var(--muted); }
.projects { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 18px; margin-top: 28px; }
.card { border-radius: 26px; padding: 28px; min-height: 100%; display: flex; flex-direction: column; }
.card-oktass { background: var(--pine-2); color: #f6f1e6; }
.card-balaton {
  background: linear-gradient(165deg, #e7f4ef, #f7f1e4 58%, #d7ece4);
  color: var(--ink);
}
.card-kicker { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.72; margin-bottom: 12px; }
.card h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.card p { color: inherit; }
.card blockquote {
  margin: 18px 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.3;
}
.stats { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 14px 0 0; margin: auto 0 18px; border-top: 1px solid currentColor; opacity: 0.9; }
.card-link { align-self: flex-start; margin-top: 8px; }
.card-oktass .card-link { border-color: rgba(246, 241, 230, 0.3); }
.card-balaton .card-link { border-color: rgba(23, 33, 28, 0.25); }
.card-link:hover span { display: inline-block; transform: translateX(3px); }
.earlier { margin-top: 18px; color: var(--muted); max-width: 70ch; }

.about { background: linear-gradient(#efe6d4, #e7f0ea 40%, #efe6d4); }
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.about-side { position: sticky; top: 96px; }
.about-name { margin-top: 14px; font-family: var(--serif); font-size: 1.6rem; }
.about-role { color: var(--muted); }
.chapter { margin-top: 28px; }
.chapter h3 { margin-bottom: 8px; }
.chapter p + p { margin-top: 10px; }
.chapter p { color: var(--muted); }

.hire { background: var(--gold); color: var(--ink); padding: 64px 0; }
.hire h2 { max-width: 16ch; }
.hire p { max-width: 58ch; margin: 14px 0 22px; }
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.service {
  grid-column: span 2;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  min-height: 180px;
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service h3 { margin-bottom: 8px; font-size: 1.4rem; }
.service p { color: var(--muted); }

.areas { display: grid; gap: 14px; margin-top: 28px; }
.area {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 8px 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
}
.area h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.area p { color: var(--muted); }
.area ul { margin: 12px 0 0; padding-left: 1.1rem; color: var(--ink); }
.area li + li { margin-top: 6px; }
.fit { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 70ch; }
.fit li {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.offer-cta { background: var(--gold); color: var(--ink); padding: 56px 0; }
.offer-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.offer-cta h2 { max-width: 16ch; }
.price-on-dark { margin: 0; }
.consult { background: var(--foam); }
.consult-grid, .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.price { margin: 16px 0 8px; font-family: var(--serif); }
.price span { font-size: clamp(4rem, 8vw, 6rem); letter-spacing: -0.05em; line-height: 0.9; }
.price small { font-family: var(--sans); font-size: 1rem; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; gap: 2px; }
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--muted); }
.form, .form-dark {
  background: white;
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(18, 33, 28, 0.06);
}
.row-2, .row-3 { display: grid; gap: 12px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 0.8fr; }
.field { display: grid; gap: 6px; }
.field label, .check span { font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.total { font-size: 1.15rem; }
.form-status { min-height: 1.4em; }
.form-status.is-ok { color: #0f6e4c; }
.form-status.is-err { color: #8d2f1b; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact {
  background: var(--pine);
  color: #f6f1e6;
  padding: 72px 0 88px;
}
.contact .sec-lead { color: rgba(246, 241, 230, 0.78); }
.contact h2 { font-size: clamp(3rem, 7vw, 5.4rem); max-width: 8ch; }
.phone { margin-top: 22px; font-family: var(--serif); font-size: 1.8rem; }
.phone a { text-decoration: none; }
.form-dark { background: #1b302a; color: #f6f1e6; }
.form-dark input, .form-dark select, .form-dark textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f6f1e6;
}
.form-dark .form-status.is-ok { color: #b7ebc6; }
.form-dark .form-status.is-err { color: #ffb4a2; }

.footer { padding: 36px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { width: min(1120px, calc(100% - 32px)); margin: 18px auto 0; color: var(--muted); font-size: 0.9rem; }

.toast {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}
.toast.is-ok { background: #e5f6ea; }
.toast.is-err { background: #fde8e2; }

.dock { display: none; }

@media (max-width: 900px) {
  .hero-grid, .projects, .about-grid, .consult-grid, .contact-grid, .footer-inner, .row-3, .area, .offer-cta-inner { grid-template-columns: 1fr; }
  .offer-cta-inner { display: grid; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: auto; }
  .about-side { position: static; }
  .portrait-card { justify-self: start; }
  .nav-toggle { display: inline-flex; }
  .nav-hire { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(18, 33, 28, 0.08);
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 28px 20px 28px; }
  .lead { font-size: 1.02rem; }
  .portrait-card img, .about-photo { width: 120px; height: 120px; }
  .dock {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 33, 28, 0.94);
  }
  .dock .btn-line { color: #f6f1e6; }
  .dock.is-hidden { transform: translateY(120%); }
  body { padding-bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .btn { animation: none; transition: none; }
  .btn:hover { transform: none; }
}
