:root {
  color-scheme: light;
  --ink: #14213b;
  --muted: #6b7284;
  --line: #e9edf4;
  --surface: #ffffff;
  --pink: #ec4f8b;
  --pink-dark: #d83475;
  --violet: #9b5de5;
  --soft: #fff4f8;
  --shadow: 0 16px 42px rgba(45, 54, 85, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 79, 139, 0.12), transparent 28rem),
    #f4f6fb;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

.browser-frame {
  width: min(1440px, calc(100% - 28px));
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid #cfd4df;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 70px rgba(24, 30, 50, 0.18);
}

.browser-bar {
  display: grid;
  grid-template-columns: 14px 14px 14px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid #dfe3ec;
  background: #f8f9fc;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red {
  background: #ff5f57;
}

.dot--yellow {
  background: #ffbd2e;
}

.dot--green {
  background: #28c840;
}

.browser-url {
  justify-self: center;
  width: min(520px, 78%);
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 8px 14px;
  color: #757d91;
  text-align: center;
  background: #fff;
}

.page {
  background: #fff;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(170px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 20px clamp(22px, 4.5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(155, 93, 229, 0.42);
  border-radius: 50%;
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-style: italic;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 500;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  color: #1d2946;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--pink);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  min-width: 190px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-weight: 800;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button--primary {
  justify-self: end;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(236, 79, 139, 0.26);
}

.button--secondary {
  border-color: #9bc4ff;
  background: rgba(255, 255, 255, 0.9);
  color: #4295ee;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(420px, 0.42fr);
  align-items: stretch;
  min-height: 430px;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0) 72%),
    var(--soft);
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px clamp(22px, 4.5vw, 64px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f0eef5;
  color: #303852;
  font-weight: 700;
}

.badge svg {
  width: 17px;
  height: 17px;
  color: var(--violet);
}

.hero h1 {
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.45rem);
  line-height: 1.05;
  font-weight: 500;
}

.hero h1 span {
  color: var(--pink);
}

.hero p {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.hero__image {
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=1200&q=90")
      center/cover;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 34px;
  padding: 34px clamp(22px, 4.5vw, 64px) 24px;
}

.section + .section {
  margin-top: 24px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.review-card h2,
.map-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

.section-heading a {
  color: var(--violet);
  font-weight: 800;
  white-space: nowrap;
}

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

.service-card,
.review-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 42, 70, 0.08);
}

.service-card {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fde7f0;
  color: var(--pink);
}

.service-card svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.22;
}

.service-card strong {
  margin-top: 12px;
  color: var(--pink);
  font-size: 1.25rem;
}

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

.portfolio-card {
  min-height: 146px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #f7edf2;
  background-position: center;
  background-size: cover;
}

.portfolio-card--one {
  background-image: url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=500&q=85");
}

.portfolio-card--two {
  background-image: url("https://images.unsplash.com/photo-1610992015732-2449b76344bc?auto=format&fit=crop&w=500&q=85");
}

.portfolio-card--three {
  background-image: url("https://images.unsplash.com/photo-1607779097040-26e80aa78e66?auto=format&fit=crop&w=500&q=85");
}

.portfolio-card--four {
  background-image: url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=500&q=85");
  background-position: 68% center;
}

.side-column {
  display: grid;
  gap: 18px;
}

.review-card,
.map-card {
  padding: 22px 24px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--pink);
}

.rating strong {
  font-size: 2rem;
}

.rating span {
  letter-spacing: 0.08em;
}

blockquote {
  position: relative;
  margin-top: 12px;
  padding-left: 36px;
  color: #34405f;
  line-height: 1.45;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 0;
  color: #f1b5cd;
  font-size: 4rem;
  line-height: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.22)),
    url("https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=160&q=80")
      center/cover;
}

.review-author strong,
.review-author span {
  display: block;
}

.review-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-card p {
  margin-top: 12px;
  color: #34405f;
  font-size: 1.02rem;
}

.map-preview {
  display: grid;
  place-items: center;
  min-height: 116px;
  margin-top: 14px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f1f3f8 0 10px, #fff 10px 20px);
  color: var(--pink);
}

.map-preview svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 14px rgba(236, 79, 139, 0.25));
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 22px clamp(22px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.footer a,
.footer p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #34405f;
  line-height: 1.35;
}

.footer svg {
  width: 34px;
  height: 34px;
  color: var(--pink);
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .content-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: start;
  }

  .button--primary {
    justify-self: start;
  }

  .site-nav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    background: var(--soft);
  }

  .hero__image {
    min-height: 320px;
  }

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

@media (max-width: 680px) {
  .browser-frame {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .browser-bar {
    display: none;
  }

  .site-header,
  .hero__copy,
  .content-grid,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.15rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

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