:root {
  --clay:        #B05A35;
  --clay-hover:  #943F1F;
  --clay-light:  #E8C4A7;
  --clay-pale:   #F5EBE0;
  --cream:       #FAFAF7;
  --beige:       #F1EAE0;
  --dark:        #1E1510;
  --text:        #3A2820;
  --mid:         #6B4E3D;
  --muted:       #9A7B6C;
  --border:      #DDD0C2;
  --white:       #FEFCFA;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(30, 21, 16, 0.08);
  --shadow:      0 4px 16px rgba(30, 21, 16, 0.10);
  --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1120px;
  --section-gap: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; }
a:hover { color: var(--clay); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
p  { color: var(--text); }

.section-title { margin-bottom: 28px; }
.section-title-center { text-align: center; }

.btn-primary {
  display: inline-block;
  background: var(--clay);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
  border: none;
}
.btn-primary:hover { background: var(--clay-hover); color: var(--white); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--dark);
  color: #F0E8DF;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  flex-wrap: wrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner a { color: var(--clay-light); }
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #F0E8DF;
  transition: background 0.15s;
}
.btn-cookie:hover { background: rgba(255,255,255,0.2); }
.btn-cookie-ghost { background: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--clay); }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:last-child { border-bottom: none; }

.hero {
  padding: 72px 0 80px;
  background: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 16px;
}
.hero-title {
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 36px;
  max-width: 420px;
}
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.section-trust {
  background: var(--beige);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 40px;
  flex: 1;
  min-width: 180px;
}
.trust-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}
.trust-desc {
  font-size: 0.83rem;
  color: var(--muted);
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.section-about {
  padding: var(--section-gap) 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  margin-bottom: 16px;
  color: var(--mid);
  line-height: 1.7;
}
.about-text p:last-child { margin-bottom: 0; }
.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image { width: 100%; height: auto; object-fit: cover; }

.section-skills {
  padding: var(--section-gap) 0;
  background: var(--beige);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.18s;
}
.skill-card:hover { box-shadow: var(--shadow); }
.skill-icon {
  font-size: 1.4rem;
  color: var(--clay);
  margin-bottom: 14px;
  display: block;
}
.skill-card h3 { margin-bottom: 10px; }
.skill-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }

.section-for-whom {
  padding: var(--section-gap) 0;
}
.for-whom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.for-whom-item {
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.for-whom-item:nth-child(2n) { border-right: none; }
.for-whom-item:nth-child(3),
.for-whom-item:nth-child(4) { border-bottom: none; }
.for-whom-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}
.for-whom-item p { font-size: 0.9rem; color: var(--mid); line-height: 1.65; }

.section-format {
  padding: var(--section-gap) 0;
  background: var(--clay-pale);
}
.format-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.format-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  order: -1;
}
.format-image { width: 100%; height: auto; object-fit: cover; }
.format-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.format-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.format-marker {
  color: var(--clay);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 2px;
}
.format-list-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}
.format-list-item p { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }

.section-form {
  padding: var(--section-gap) 0;
}
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.form-intro {
  margin-bottom: 36px;
}
.form-intro p {
  color: var(--mid);
  font-size: 1rem;
  margin-top: 10px;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}
.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-field input::placeholder { color: var(--muted); }
.form-field input:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(176, 90, 53, 0.12);
}
.form-field input.invalid { border-color: #C0392B; }
.field-error {
  font-size: 0.8rem;
  color: #C0392B;
  min-height: 1em;
  display: block;
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--clay);
  cursor: pointer;
}
.form-check label {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.5;
  cursor: pointer;
}
.form-check label a { color: var(--clay); }
.btn-submit {
  align-self: flex-start;
  padding: 14px 40px;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--dark);
  color: rgba(240, 232, 223, 0.85);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  color: var(--clay-light);
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(240, 232, 223, 0.6);
  margin-bottom: 16px;
}
.footer-legal-entity {
  font-size: 0.78rem;
  color: rgba(240, 232, 223, 0.45);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(240, 232, 223, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--clay-light); }
.footer-bottom {
  border-top: 1px solid rgba(240, 232, 223, 0.1);
  padding-top: 20px;
  padding-bottom: 24px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(240, 232, 223, 0.35); }

.legal-header {
  background: var(--beige);
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.legal-header p { font-size: 0.88rem; color: var(--muted); }
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--dark);
}
.legal-content p {
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.7;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content ul li {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 6px;
}

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.success-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.success-card {
  max-width: 480px;
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--clay-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--clay);
  font-size: 1.6rem;
}
.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.success-card p {
  color: var(--mid);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  :root { --section-gap: 60px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 60px; }
  .hero-image-wrap { order: -1; }
  .hero-sub { max-width: 100%; }

  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-image-wrap { order: -1; }

  .skills-grid { grid-template-columns: 1fr 1fr; }

  .format-inner { grid-template-columns: 1fr; gap: 36px; }
  .format-image-wrap { order: 0; }

  .for-whom-list { grid-template-columns: 1fr; }
  .for-whom-item { border-right: none !important; }
  .for-whom-item:nth-child(3) { border-bottom: 1px solid var(--border) !important; }
  .for-whom-item:nth-child(4) { border-bottom: none !important; }

  .trust-divider { display: none; }
  .trust-item { padding: 10px 20px; }

  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --section-gap: 48px; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .skills-grid { grid-template-columns: 1fr; }

  .for-whom-list { border-radius: 0; border-left: none; border-right: none; }

  .trust-row { flex-direction: column; gap: 4px; }
  .trust-item { padding: 10px 0; }

  .section-form .form-wrap { padding: 0; }
  .btn-submit { width: 100%; text-align: center; }

  .cookie-banner { bottom: 12px; left: 12px; right: 12px; width: auto; transform: none; }
  .cookie-banner.hidden { transform: translateY(12px); }
}
