:root {
  color-scheme: light;
  --black: #000;
  --white: #fff;
  --line: #d8d8d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.38;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.header-title p {
  margin: 2px 0 0;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
}

.brand {
  display: inline-block;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

main {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  padding-top: 34px;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1;
  font-weight: 700;
}

.intro p:last-child,
.about p {
  max-width: 760px;
}

.intro p:last-child,
.about p,
address {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.2;
}

.item-list {
  margin: 0;
  padding-left: 1.25em;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.2;
}

.item-list li {
  padding: 3px 0;
}

.name {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

address {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  font-style: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    gap: 12px;
  }

  section {
    padding: 28px 0;
  }

  .intro {
    padding-top: 30px;
  }
}
