:root {
  --ink: #17202a;
  --muted: #5f6f7f;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --accent: #276264;
  --accent-dark: #17494b;
  --warm: #b88a44;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 264px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 25px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.brand strong {
  font-size: 19px;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.site-nav a,
.header-phone {
  text-decoration: none;
}

.site-nav a:hover,
.header-phone:hover {
  color: var(--accent-dark);
}

.header-phone {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}

.language-switch span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(38px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 50px);
  background:
    linear-gradient(115deg, rgba(23, 32, 42, 0.9), rgba(39, 98, 100, 0.84)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8c784;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.5vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #173132;
  background: #f0c86e;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.hero-panel p {
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
}

.hero-panel li + li {
  margin-top: 10px;
}

.section {
  padding: clamp(34px, 5vw, 56px) clamp(18px, 5vw, 72px);
}

.section.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.text-block {
  max-width: 860px;
  color: #2c3844;
  font-size: 17px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.practice-card {
  min-height: 150px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.practice-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.consultation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 20px;
  align-items: start;
}

.check-list {
  margin: 0;
  padding: 16px 16px 16px 34px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.check-list li + li {
  margin-top: 6px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
  padding: clamp(32px, 5vw, 54px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--accent-dark);
}

.contact-section h2 {
  margin-bottom: 14px;
}

.contact-section p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.contact-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.contact-box a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.contact-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.map-section {
  padding: clamp(32px, 5vw, 54px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.map-frame {
  overflow: hidden;
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(120px, 16vw, 180px);
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #101820;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.25);
  cursor: pointer;
}

.chat-icon {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.chat-window {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 29;
  display: none;
  width: min(380px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 132px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.22);
}

.chat-window.open {
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background: var(--accent-dark);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #173132;
  background: #f0c86e;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.chat-header h2 {
  margin: 0;
  font-size: 20px;
}

.chat-header p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 16px;
  background: var(--soft);
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.chat-message p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.chat-quick button {
  padding: 7px 10px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.chat-form {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 16px 12px;
}

.ai-chat-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 96px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  resize: vertical;
}

.ai-chat-form button {
  align-self: stretch;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.ai-chat-form.loading button {
  opacity: 0.7;
  cursor: wait;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.chat-form button {
  padding: 11px 12px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .consultation,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .header-phone {
    width: 100%;
    text-align: center;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .language-switch {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 38px;
  }

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

  .practice-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  .chat-window {
    right: 16px;
    bottom: 86px;
  }
}
