:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f5f7fb;
  --white: #ffffff;
  --navy: #101b3d;
  --navy-soft: #162a52;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #a3e635;
  --gold: #fbbf24;
  --line: #d9e2ec;
  --shadow: 0 18px 48px rgba(16, 32, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.2), transparent 330px),
    radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.16), transparent 280px),
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 520px),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 16px 6%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: 0;
}

.menu-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
}

.desktop-nav {
  display: flex;
  justify-self: end;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
}

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

.header-phone {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 6%;
  z-index: 20;
  display: grid;
  min-width: 230px;
  padding: 12px 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  padding: 13px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.site-menu a:hover,
.site-menu a:focus {
  background: #e8fbfb;
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 27, 61, 0.92), rgba(22, 42, 82, 0.66), rgba(6, 182, 212, 0.18)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1900&q=84")
      center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: end;
  padding: 120px 0 76px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 15px 24px;
  text-decoration: none;
  border: 0;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  color: #07161d;
  background: var(--green);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.intro-section .button-secondary,
.contact-section .button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stats div {
  padding: 22px;
  background: rgba(16, 27, 61, 0.74);
}

.hero-stats dt {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.intro-section,
.services-section,
.support-section,
.story-section,
.contact-section {
  padding: 96px 0;
}

.intro-grid,
.support-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.support-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
}

.section-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p {
  margin-right: auto;
  margin-left: auto;
}

.services-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 12%, rgba(6, 182, 212, 0.32), transparent 320px),
    radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.16), transparent 260px),
    linear-gradient(145deg, #0b1228 0%, var(--navy) 54%, var(--navy-soft) 100%);
}

.services-section p {
  color: rgba(255, 255, 255, 0.78);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-grid article,
.about-grid article,
.contact-form,
.quick-message,
.cookie-panel {
  border-radius: 8px;
}

.service-grid article {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.service-grid h3,
.service-grid p {
  padding-right: 22px;
  padding-left: 22px;
}

.service-grid h3 {
  padding-top: 24px;
}

.service-grid p {
  padding-bottom: 24px;
}

.support-section {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.06)),
    #ffffff;
}

.story-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.16), transparent 260px),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.about-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 32, 39, 0.08);
}

.about-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.about-grid h3,
.about-grid p {
  padding-right: 24px;
  padding-left: 24px;
}

.about-grid h3 {
  padding-top: 24px;
}

.about-grid p {
  padding-bottom: 28px;
  font-size: 16px;
}

.contact-section {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(163, 230, 53, 0.18), transparent 280px),
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.22), transparent 300px),
    linear-gradient(145deg, #0b1228 0%, var(--navy) 68%, #102a43 100%);
}

.contact-section p,
.contact-section span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a,
.contact-list span {
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label,
.quick-message label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.quick-message input,
.quick-message textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 12px;
  font: inherit;
}

footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.82);
  background: #0b1228;
  font-size: 14px;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.cookie-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 5;
  width: min(400px, calc(100vw - 44px));
  padding: 24px;
  color: var(--white);
  background: #111827;
  box-shadow: var(--shadow);
}

.cookie-panel h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.cookie-panel p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.cookie-panel button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #07161d;
  background: var(--green);
  font-weight: 900;
}

.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-toggle span {
  position: relative;
  display: block;
  width: 30px;
  height: 22px;
  border: 3px solid #07161d;
  border-radius: 7px;
}

.chat-toggle span::after {
  position: absolute;
  right: 3px;
  bottom: -9px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #07161d;
  border-bottom: 3px solid #07161d;
  background: var(--green);
  content: "";
  transform: rotate(45deg);
}

.quick-message {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 6;
  width: min(360px, calc(100vw - 48px));
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-message[hidden] {
  display: none;
}

.quick-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quick-message h2 {
  margin: 0;
  font-size: 22px;
}

.quick-message-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #edf3f6;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.quick-message form {
  display: grid;
  gap: 13px;
}

.chat-log {
  display: grid;
  max-height: 260px;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 2px 14px;
}

.bot-message,
.user-message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.bot-message {
  color: var(--ink);
  background: #edf3f6;
}

.user-message {
  justify-self: end;
  color: var(--white);
  background: var(--blue);
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.chat-options button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--blue);
  background: #f7fbfc;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-compose button,
.chat-email-link {
  border: 0;
  border-radius: 6px;
  color: #07161d;
  background: var(--green);
  font-weight: 900;
}

.chat-compose button {
  padding: 0 14px;
  cursor: pointer;
}

.chat-email-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
  font-size: 14px;
}

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

.quick-message .button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 16px 24px;
  }

  .desktop-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .site-menu {
    left: 24px;
    right: 24px;
    min-width: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-grid,
  .intro-grid,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(100% - 34px, 520px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-grid {
    padding: 86px 0 52px;
  }

  .intro-section,
  .services-section,
  .support-section,
  .story-section,
  .contact-section {
    padding: 66px 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cookie-panel {
    right: 14px;
    bottom: 92px;
    width: calc(100vw - 28px);
  }

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

  .quick-message {
    right: 14px;
    bottom: 88px;
    width: calc(100vw - 28px);
  }
}
