﻿:root {
  --page-bg: #eef2f8;
  --panel: #ffffff;
  --line: #dbe4f6;
  --text: #1f2f4a;
  --muted: #657a9c;
  --blue: #5d84ea;
  --blue-dark: #4f76dd;
  --blue-soft: #e9f0ff;
  --shadow: 0 24px 50px -36px rgba(31, 47, 74, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 4% -8%, rgba(93, 132, 234, 0.2), transparent 32%),
    radial-gradient(circle at 88% 0, rgba(93, 132, 234, 0.14), transparent 30%),
    var(--page-bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

.page-shell {
  padding: 20px 0 48px;
}

.container {
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto;
}

.utility-bar {
  background: linear-gradient(90deg, #5b81e4 0%, #638aef 100%);
  color: #eef3ff;
  border-radius: 12px 12px 0 0;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.utility-links,
.utility-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-links a,
.utility-social a {
  color: #eef3ff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.96;
}

.main-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--shadow);
}

.main-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #152641;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  letter-spacing: 0.01em;
  font-weight: 600;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-menu a {
  text-decoration: none;
  color: #445b86;
  font-size: 0.79rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.main-menu a:hover {
  color: #203a69;
}

main {
  display: grid;
  gap: 0;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  background: #dfe6f7;
}

.hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 44, 75, 0.24) 0%, rgba(29, 44, 75, 0.34) 100%);
}

.hero-overlay {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #ffffff;
  width: min(92%, 900px);
}

.hero-overlay p {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-overlay h1 {
  margin: 12px 0 0;
  font-size: clamp(1rem, 2vw, 1.48rem);
  font-weight: 500;
  opacity: 0.95;
}

.appointment-card {
  position: relative;
  z-index: 4;
  margin: -70px auto 0;
  width: min(900px, calc(100% - 20px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  overflow: hidden;
}

.emergency-panel,
.request-panel {
  padding: 24px 22px;
}

.emergency-panel {
  border-right: 1px solid #ebf0fb;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
}

.request-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.emergency-panel h2,
.request-panel h2 {
  margin: 0;
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #32486f;
}

.request-intro {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #5f7398;
}

.request-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.request-points li {
  color: #45628f;
  font-size: 0.8rem;
}

.emergency-panel p {
  margin: 10px 0 0;
  font-size: 0.77rem;
  line-height: 1.65;
  color: #6b7f9f;
}

.emergency-panel .phone {
  color: #4f7fe8;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin-top: 16px;
}

.call-btn {
  margin-top: auto;
  align-self: flex-start;
}

.request-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid #dce6fa;
  border-radius: 9px;
  background: #f9fbff;
  color: #334665;
  font: inherit;
  font-size: 0.75rem;
  padding: 10px 11px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.request-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 88px;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: #8eb0f5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(93, 132, 234, 0.16);
}

.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #ffffff;
  box-shadow: 0 16px 24px -18px rgba(93, 132, 234, 0.85);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  border-color: #c5d5f5;
  color: #496fca;
  background: #ffffff;
}

.btn-outline:hover {
  background: var(--blue-soft);
}

.request-form .btn {
  grid-column: 1 / -1;
  width: max-content;
}

.about-card,
.booking-card,
.map-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.about-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.about-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.about-card h2,
.booking-card h2,
.map-card h2 {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 600;
  color: #24385f;
}

.about-card p {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: #5f7398;
}

.about-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.about-card li {
  font-size: 0.82rem;
  color: #435a87;
}

.booking-card,
.map-card {
  padding: 18px;
}

.booking-card {
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.embed-frame {
  margin-top: 0;
  border: 1px solid #d7e4fc;
  border-radius: 12px;
  overflow: hidden;
  height: calc(100vh - 190px);
  min-height: 620px;
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

.embed-status {
  margin: 9px 0 0;
  color: #6e82a6;
  font-size: 0.75rem;
}

.map-frame {
  margin-top: 12px;
  border: 1px solid #d7e4fc;
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
}

.map-frame iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

@media (max-width: 980px) {
  .main-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .appointment-card {
    grid-template-columns: 1fr;
  }

  .emergency-panel {
    border-right: 0;
    border-bottom: 1px solid #ebf0fb;
  }

  .call-btn {
    margin-top: 14px;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .booking-card {
    min-height: 0;
  }

  .embed-frame {
    height: calc(100vh - 210px);
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .utility-inner {
    flex-direction: column;
    justify-content: center;
    padding: 6px 0;
  }

  .main-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .hero img {
    min-height: 440px;
    height: 440px;
  }

  .hero-overlay {
    width: calc(100% - 24px);
    top: 50%;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .embed-frame,
  .embed-frame iframe {
    min-height: 440px;
    height: 70vh;
  }
}
