:root {
  --ink: #1b0238;
  --muted: #6b6b84;
  --orange: #ea512e;
  --amber: #f59b18;
  --teal: #2ab7a9;
  --pink: #f45b8a;
  --cream: #fff8ee;
  --sky: #e9f8ff;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(27, 2, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf9;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(27, 2, 56, 0.06);
}

.brand img {
  width: 150px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 18px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 11px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.call-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.call-button,
.primary-button {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(234, 81, 46, 0.25);
}

.secondary-button {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 14px 30px rgba(245, 155, 24, 0.23);
}

.call-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 56px clamp(18px, 5vw, 78px) 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(42, 183, 169, 0.18), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(244, 91, 138, 0.16), transparent 24%),
    linear-gradient(135deg, #fff8ee 0%, #fff 50%, #e9f8ff 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  opacity: 0.75;
}

.hero::before {
  right: 5vw;
  bottom: 60px;
  width: 180px;
  height: 180px;
  border: 24px solid rgba(245, 155, 24, 0.16);
}

.hero::after {
  left: 42%;
  top: 96px;
  width: 46px;
  height: 46px;
  background: var(--teal);
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.script-title {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: "Sacramento", cursive;
  font-size: 30px;
  font-weight: 400;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Catamaran", Arial, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 650px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
}

h3 {
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero__lead {
  max-width: 570px;
  margin: 22px 0 32px;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  min-height: 520px;
}

.hero__visual > img {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: min(720px, 100%);
  filter: drop-shadow(0 28px 36px rgba(27, 2, 56, 0.13));
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-card strong {
  color: var(--orange);
  font-family: "Catamaran", sans-serif;
  font-size: 32px;
  line-height: 1;
}

.floating-card span {
  color: var(--muted);
  font-weight: 700;
}

.card-one {
  left: 8%;
  top: 22%;
}

.card-two {
  right: 4%;
  bottom: 12%;
}

.section {
  padding: 96px clamp(18px, 5vw, 78px);
}

.section-soft {
  padding: 96px clamp(18px, 5vw, 78px);
  background: linear-gradient(180deg, #fff7eb, #ffffff);
}

.about,
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
}

.about__image,
.why__image {
  position: relative;
}

.about__image::before,
.why__image::before {
  position: absolute;
  inset: 28px -18px -18px 28px;
  z-index: -1;
  border-radius: 8px;
  background: var(--teal);
  content: "";
}

.why__image::before {
  background: var(--pink);
}

.about__image img,
.why__image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-copy p {
  max-width: 680px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.about__stats div {
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(27, 2, 56, 0.08);
}

.about__stats strong {
  display: block;
  color: var(--orange);
  font-family: "Catamaran", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.about__stats span {
  color: var(--muted);
  font-weight: 700;
}

.section-title {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

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

.service-card,
.blog-card,
.team-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card img,
.blog-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.service-card div,
.blog-card div {
  padding: 26px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-family: "Catamaran", sans-serif;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
  background: var(--pink);
}

.service-card:nth-child(3) .service-icon {
  background: var(--amber);
}

.service-card a,
.blog-card a {
  color: var(--orange);
  font-weight: 800;
}

.why {
  background: #ffffff;
}

.reason {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  margin-top: 26px;
}

.reason span {
  color: rgba(234, 81, 46, 0.22);
  font-family: "Catamaran", sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

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

.team-card {
  padding-bottom: 24px;
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.team-card h3 {
  margin-top: 22px;
}

.team-card p {
  margin: 5px 0 0;
  color: var(--orange);
  font-weight: 700;
}

.testimonial {
  text-align: center;
}

.testimonial__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 70px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

blockquote {
  margin: 22px 0;
  color: var(--ink);
  font-family: "Catamaran", sans-serif;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
}

.testimonial span,
time {
  display: block;
  color: var(--orange);
  font-weight: 700;
}

.footer {
  color: var(--white);
  background:
    linear-gradient(rgba(9, 22, 41, 0.93), rgba(9, 22, 41, 0.93)),
    url("../img/gallery-6.jpg") center/cover;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.75fr 1fr;
  gap: 36px;
  padding: 82px clamp(18px, 5vw, 78px);
}

.footer__logo {
  width: 170px;
  margin-bottom: 20px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer h3 {
  margin-bottom: 22px;
  color: var(--white);
}

.footer__grid > div:nth-child(3) a {
  display: block;
  margin-bottom: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.copyright {
  margin: 0;
  padding: 24px;
  text-align: center;
  background: #091629;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .call-button {
    display: none;
  }

  .main-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    padding: 10px 0 14px;
  }

  .main-nav.is-open a {
    padding: 14px 0;
    border-top: 1px solid rgba(27, 2, 56, 0.08);
  }

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

  .hero__visual {
    min-height: 440px;
  }

  .hero__visual > img {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 8px 16px;
  }

  .brand img {
    width: 126px;
  }

  .hero,
  .section,
  .section-soft {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero__visual {
    min-height: 330px;
  }

  .floating-card {
    padding: 12px 14px;
  }

  .floating-card strong {
    font-size: 25px;
  }

  .card-one {
    left: 0;
    top: 8%;
  }

  .service-grid,
  .team-grid,
  .blog-grid,
  .about__stats,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .service-card img,
  .blog-card img {
    height: 220px;
  }

  .reason {
    grid-template-columns: 52px 1fr;
  }
}
