:root {
  --ink: #0f1720;
  --muted: #5e6a75;
  --surface: #f7f8fa;
  --card: #ffffff;
  --accent: #c7f58f;
  --border: #e2e8f0;
  --h1: clamp(30px, 4vw, 36px);
  --h2: 22px;
  --h3: 18px;
  --body: 16px;
  --label: 13px;
  --space-lg: 32px;
  --space-md: 18px;
  --space-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #f1f5ff, #f7f8fa 45%),
    radial-gradient(circle at 80% 10%, #eefbf0, #f7f8fa 40%), var(--surface);
  color: var(--ink);
  font-family: 'Space Grotesk', 'IBM Plex Sans', 'Helvetica Neue', Arial,
    sans-serif;
  line-height: 1.6;
  padding: 56px 20px 72px;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.logo {
  width: clamp(236px, 38vw, 320px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(15, 23, 32, 0.08));
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
  line-height: 1.25;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
  color: #810000;
}

h3 {
  font-size: var(--h3);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-size: var(--body);
}

p:last-child {
  margin-bottom: 0;
}

.principles {
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid #f4dec8;
  background: #fff8f1;
  box-shadow: 0 10px 22px rgba(15, 23, 32, 0.04);
}

.principles h3 {
  margin-bottom: 6px;
}

.hero-stack {
  display: grid;
  gap: var(--space-sm);
}

.principles-wrap {
  display: grid;
  gap: var(--space-sm);
}

.section {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-header {
  display: grid;
  gap: 6px;
}

.section-header p {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 15px 30px rgba(15, 23, 32, 0.05);
  display: grid;
  gap: 10px;
}

.card-visual {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}

.floating-contact {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: var(--label);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 32, 0.2);
  letter-spacing: 0.02em;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  z-index: 10;
}

.floating-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.25);
}

.floating-contact:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(15, 23, 32, 0.2);
}

.floating-contact:focus-visible {
  outline: 2px solid #a6dfa1;
  outline-offset: 3px;
}

.contact .section-header {
  margin-bottom: 0;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 32, 0.05);
}

.contact-form {
  display: grid;
  gap: var(--space-sm);
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: var(--body);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a6dfa1;
  box-shadow: 0 0 0 3px rgba(166, 223, 161, 0.35);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.phone-field .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 32, 0.05);
}

.phone-field input[type='tel'] {
  width: 100%;
}

.contact-form button {
  justify-self: start;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: var(--body);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  box-shadow: 0 10px 22px rgba(15, 23, 32, 0.15);
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 32, 0.18);
}

.contact-form button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 32, 0.14);
}

.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.thanks-card {
  text-align: center;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 23, 32, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 32, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 32, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
