html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--bg-light);
  background: var(--blue-deep);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative; overflow: hidden;
  background: var(--blue-deep);
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  max-width: 1200px; margin: 0 auto;
  background: var(--blue-deep); overflow: hidden;
}
.hero-bg .photo {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(7,31,48,0.88) 0%,
    rgba(7,31,48,0.68) 30%,
    rgba(7,31,48,0.2) 55%,
    rgba(7,31,48,0.05) 70%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 40px 80px;
}
.hero-content > * { max-width: 480px; }
.hero-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-pale); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.08;
  color: var(--bg-light); margin-bottom: 22px; letter-spacing: -0.015em;
}
.hero-body {
  font-size: 17px; color: var(--blue-pale); line-height: 1.75;
  margin-bottom: 40px; font-weight: 300;
}
.hero-note {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--blue-pale); font-weight: 300; letter-spacing: 0.01em;
}
.hero-note-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212,137,58,0.6);
  animation: notePulse 2s infinite;
}
@keyframes notePulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,137,58,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(212,137,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,137,58,0); }
}

.hero-contact { margin-top: 32px; }
.hero-contact-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--bg-light);
  letter-spacing: 0.01em; transition: color 0.2s;
}
.hero-contact-toggle:hover { color: var(--accent); }
.hero-contact-icon {
  position: relative; width: 12px; height: 12px; flex-shrink: 0;
  transition: transform 0.3s;
}
.hero-contact-icon::before, .hero-contact-icon::after {
  content: ''; position: absolute; background: var(--accent);
  top: 50%; left: 50%;
}
.hero-contact-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.hero-contact-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.hero-contact[data-open="true"] .hero-contact-icon { transform: rotate(45deg); }
.hero-contact-panel {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows 0.4s ease;
}
.hero-contact[data-open="true"] .hero-contact-panel { grid-template-rows: 1fr; }
.hero-contact-panel-inner { overflow: hidden; min-height: 0; padding-top: 22px; max-width: 420px; }

.form-wrap {
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 28px;
  border: 0.5px solid rgba(147,184,196,0.12);
}
.form-label {
  font-size: 11px; color: var(--blue-pale); letter-spacing: 0.1em;
  text-transform: uppercase; display: block; margin-bottom: 8px; font-weight: 500;
}
.form-input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(147,184,196,0.2); border-radius: 4px;
  padding: 13px 14px; font-size: 14px; color: var(--bg-light);
  font-family: var(--sans); margin-bottom: 18px; outline: none;
  transition: border-color 0.2s; box-sizing: border-box;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: rgba(147,184,196,0.4); }
textarea.form-input { height: 90px; resize: vertical; }
.form-consent {
  font-size: 12px; color: var(--blue-pale); margin-bottom: 22px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; font-weight: 300;
}
.form-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-consent a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(212,137,58,0.4); }
.btn-form {
  width: 100%; background: var(--accent); color: var(--white);
  border: none; padding: 15px; border-radius: 4px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; letter-spacing: 0.03em; transition: background 0.2s;
}
.btn-form:hover { background: var(--accent-deep); }
.btn-form:disabled { opacity: 0.6; cursor: default; }
.form-hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.form-status { min-height: 18px; margin-top: 14px; font-size: 13px; line-height: 1.5; font-weight: 300; }
.form-status-ok { color: #bfe3c8; }
.form-status-error { color: #f0b8a8; }

@keyframes fadeUp {
  from { transform: translateY(18px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: fadeUp 0.6s ease both; }
  .hero-label { animation-delay: 0.1s; }
  .hero h1    { animation-delay: 0.2s; }
  .hero-body  { animation-delay: 0.35s; }
  .hero-note  { animation-delay: 0.5s; }
}

footer { background: var(--footer-bg); padding: 24px 40px; }
footer .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(147,184,196,0.6); font-weight: 300; }
.footer-links a {
  font-size: 12px; color: rgba(147,184,196,0.6); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-pale); }

@media (max-width: 767px) {
  .hero-content { padding: 100px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-body { font-size: 15px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7,31,48,0.55) 0%, rgba(7,31,48,0.85) 55%, rgba(7,31,48,0.94) 100%); }
  .hero-bg .photo { object-position: 75% center; }
  footer { padding: 20px 20px; }
  footer .inner { flex-direction: column; text-align: center; }
}
