* {
  box-sizing: border-box;
}

:root {
  --accent-dark: #1f2529;
  --accent: #596770;
  --accent-light: #a7b0b6;
  --accent-shadow: rgba(31, 37, 41, 0.22);
  --bg-soft: #f4f4f2;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1f1f1f;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

/* Header */

.header {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 27px;
  line-height: 1;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  color: #1c1c1c;
  white-space: nowrap;
}

.brand-text strong {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding: 26px 0 22px;
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-dark),
    var(--accent-light),
    var(--accent-dark)
  );
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0 0 8px;
    font-size: 15px;
  }

  .nav-link.active::after {
    bottom: 0;
  }
}

@media (max-width: 520px) {
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 15px;
    white-space: normal;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero */

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(rgba(15, 22, 30, 0.62), rgba(15, 22, 30, 0.62)),
    url("img/hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  padding: 80px 20px;
}

.hero-content {
  max-width: 1050px;
  color: #ffffff;
}

.hero h1 {
  margin: 0 0 28px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: none;
}

.hero p {
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

@media (max-width: 768px) {
  .hero {
    min-height: 460px;
    background-attachment: scroll;
    background-position: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 24px;
  }
}

/* About */

.about {
  padding: 76px 0 82px;
  background: var(--bg-soft);
}

.about-inner {
  max-width: 860px;
  text-align: center;
}

.about h2 {
  margin: 0 0 34px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  color: #111111;
}

.about p {
  margin: 0 auto 16px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #242424;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Services */

.services {
  padding: 80px 0 88px;
  background: #f5f5f3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 82px;
  padding-top: 10px;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 70px;
}

.service-card {
  position: relative;
  padding: 8px 0 0 22px;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 52px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    var(--accent-light),
    var(--accent),
    var(--accent-dark)
  );
  box-shadow: 0 8px 22px var(--accent-shadow);
}

.service-number {
  margin-bottom: 18px;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: 1px;
  color: #141414;
  text-shadow: 3px 3px 0 rgba(89, 103, 112, 0.22);
}

.service-card p {
  margin: 0;
  max-width: 330px;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
  color: #222222;
}

.service-card:hover .service-number {
  transform: translateY(-3px);
}

.service-number {
  transition: transform 0.2s ease;
}

/* Work steps */

.work-steps {
  padding: 0 0 90px;
  background: var(--bg-soft);
}

.section-divider {
  height: 1px;
  background: #d8d8d8;
  margin-bottom: 58px;
}

.work-steps-title {
  margin: 0 0 58px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #1b1f22;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.work-card {
  height: 420px;
  padding: 14px 14px 22px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  box-shadow: 0 12px 30px rgba(20, 24, 28, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 24, 28, 0.12);
}

.work-card img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  object-position: center;
  background: #d9d9d9;
}

.work-card p {
  margin: 18px auto 0;
  max-width: 280px;
  text-align: center;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  color: #222222;
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card {
    height: 400px;
  }

  .work-card img {
    height: 265px;
  }
}

@media (max-width: 620px) {
  .work-steps {
    padding-bottom: 64px;
  }

  .section-divider {
    margin-bottom: 42px;
  }

  .work-steps-title {
    margin-bottom: 36px;
    font-size: 19px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-card {
    height: auto;
    min-height: 360px;
  }

  .work-card img {
    height: 250px;
  }

  .work-card p {
    font-size: 16px;
  }
}

/* Final note */

.final-note {
  padding: 54px 0 62px;
  background: var(--bg-soft);
}

.final-note-inner {
  max-width: 920px;
  text-align: center;
}

.final-note p {
  margin: 0 auto 18px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  color: #202326;
}

.final-note-brand {
  color: #111111;
}

.final-note a {
  font-weight: 700;
  color: #1f2529;
  border-bottom: 1px solid var(--accent);
}

.final-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-light);
}

@media (max-width: 768px) {
  .final-note {
    padding: 42px 0 50px;
  }

  .final-note p {
    font-size: 17px;
    line-height: 1.4;
  }
}

/* Advantages */

.advantages {
  background-image:
    linear-gradient(rgba(10, 20, 30, 0.76), rgba(10, 20, 30, 0.76)),
    url("img/advantages-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.advantages-overlay {
  padding: 82px 0 90px;
}

.advantages-title {
  margin: 0 0 54px;
  text-align: center;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.advantages-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.adv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.adv-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(167, 176, 182, 0.18));
}

.adv-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.adv-text {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .advantages {
    background-attachment: scroll;
  }

  .advantages-overlay {
    padding: 58px 0 64px;
  }

  .advantages-title {
    margin-bottom: 34px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .advantages-column {
    gap: 14px;
  }

  .adv-text {
    font-size: 16px;
  }
}

/* Footer */

.footer {
  padding: 58px 0 54px;
  background: #ffffff;
  border-top: 1px solid #e2e2e2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.footer h3 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #141414;
}

.footer-info p {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 600;
  color: #252525;
}

.footer-vk {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #141414;
  border-bottom: 1px solid var(--accent);
}

.footer-vk:hover {
  color: var(--accent);
}

.footer-contacts h3 {
  margin-bottom: 24px;
}

.footer-contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #202020;
}

.footer-contacts a {
  color: inherit;
}

.footer-contacts a:hover {
  color: var(--accent);
}

@media (max-width: 780px) {
  .footer {
    padding: 44px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-info p {
    font-size: 16px;
    line-height: 1.45;
  }

  .footer h3 {
    font-size: 16px;
  }
}

.services-seo {
  padding: 76px 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(170, 190, 215, 0.22), transparent 32%),
    linear-gradient(180deg, #f6f8fb 0%, #edf1f6 100%);
}

.services-seo-inner {
  max-width: 1120px;
}

.services-seo h2 {
  margin-bottom: 18px;

  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #151a21;
}

.services-seo-inner > p {
  max-width: 820px;
  margin-bottom: 36px;

  font-size: 18px;
  line-height: 1.65;
  color: rgba(21, 26, 33, 0.68);
}

.services-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.services-seo-card {
  padding: 24px;
  border-radius: 22px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 248, 252, 0.72));
  border: 1px solid rgba(80, 95, 115, 0.12);
  box-shadow:
    0 18px 40px rgba(25, 35, 50, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.services-seo-card h3 {
  margin-bottom: 12px;

  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: #151a21;
}

.services-seo-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(21, 26, 33, 0.66);
}

@media (max-width: 960px) {
  .services-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .services-seo {
    padding: 52px 0;
  }

  .services-seo-grid {
    grid-template-columns: 1fr;
  }

  .services-seo-inner > p {
    font-size: 16px;
  }
}