* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --page: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --accent: #b88746;
  --accent-dark: #8a6232;
  --success: #1f9d68;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.profile-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
}

.top-area {
  height: 116px;
  position: relative;
  background: #1f2937;
}

.top-area::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
}

.shape {
  display: none;
}

.profile-content {
  position: relative;
  padding: 0 28px 34px;
  text-align: center;
}

.photo-wrapper {
  width: 132px;
  height: 132px;
  margin: -66px auto 18px;
  padding: 4px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.12);
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.role {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--muted);
}

.creci {
  margin-top: 12px;
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(184, 135, 70, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: #fffaf3;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 22px auto;
  background: var(--line);
}

.slogan {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.location {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.video-card {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(184, 135, 70, 0.36);
  border-radius: 8px;
  background: #fffaf3;
  color: var(--text);
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover {
  border-color: rgba(184, 135, 70, 0.7);
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.1);
  transform: translateY(-1px);
}

.video-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f2937;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-play i {
  margin-left: 3px;
  font-size: 1.45rem;
  color: var(--accent);
}

.video-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.video-copy strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.video-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.video-duration {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.main-actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.links-area {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.btn {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn i {
  font-size: 1.16rem;
  color: var(--accent-dark);
}

.btn:hover {
  border-color: rgba(184, 135, 70, 0.5);
  color: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.08);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.close-modal:focus-visible,
.video-card:focus-visible,
.submit-form:focus-visible,
.form-group input:focus,
.form-group select:focus {
  outline: 3px solid rgba(184, 135, 70, 0.22);
  outline-offset: 2px;
}

.btn-small {
  min-height: 50px;
  font-size: 0.93rem;
}

.links-area a:first-child {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.links-area a:first-child i {
  color: #ffffff;
}

.links-area a:first-child:hover {
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 157, 104, 0.2);
}

#openLeadForm {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
}

#openLeadForm i {
  color: var(--accent);
}

#openLeadForm:hover {
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.16);
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 22px;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(17, 24, 39, 0.56);
  backdrop-filter: blur(10px);
}

.form-modal.active {
  display: flex;
}

.form-panel {
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
}

.form-header {
  margin-right: 42px;
  margin-bottom: 24px;
  text-align: left;
}

.form-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(184, 135, 70, 0.32);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #fffaf3;
}

.form-header h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text);
}

.form-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.form-group label span {
  color: var(--accent-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.privacy-check a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.submit-form {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #1f2937;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.submit-form i {
  font-size: 1.25rem;
  color: var(--accent);
}

.submit-form:hover {
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.16);
  transform: translateY(-1px);
}

.safe-text {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.credentials-panel {
  max-width: 520px;
}

.video-panel {
  max-width: 560px;
}

.video-frame {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111827;
}

.video-unavailable {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: #111827;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.video-unavailable[hidden] {
  display: none;
}

.video-unavailable i {
  font-size: 2rem;
  color: var(--accent);
}

.video-unavailable strong {
  font-size: 1rem;
}

.video-unavailable p {
  max-width: 260px;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.5;
}

.video-cta {
  margin-top: 0;
}

.credentials-content {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.credential-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
}

.credential-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.credential-item strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.credential-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.credentials-map {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.credentials-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (min-width: 768px) {
  .profile-card {
    max-width: 520px;
  }

  .profile-content {
    padding: 0 42px 40px;
  }

  .links-area {
    grid-template-columns: 1fr 1fr;
  }

  .links-area .btn:first-child,
  .links-area .btn:nth-child(2),
  .links-area .btn:nth-child(3),
  .links-area .btn:nth-child(6) {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    padding: 48px;
  }
}

@media (max-width: 560px) {
  .page-wrapper {
    align-items: flex-start;
    padding: 16px;
  }

  .profile-content {
    padding: 0 20px 28px;
  }

  .main-actions {
    margin-top: 26px;
    grid-template-columns: 1fr;
  }

  .video-card {
    grid-template-columns: 42px 1fr auto;
    padding: 12px;
  }

  .video-play {
    width: 42px;
    height: 42px;
  }

  .video-copy strong {
    font-size: 0.94rem;
  }

  .video-copy small {
    font-size: 0.78rem;
  }

  .form-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .form-panel {
    max-height: 94vh;
    padding: 24px 18px;
    border-radius: 8px 8px 0 0;
  }

  .form-header {
    margin-right: 44px;
  }

  .video-frame {
    width: min(100%, 320px);
    max-height: 58vh;
  }

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