:root {
  --bg: #fffaf4;
  --text: #143211;
  --link-bg: #44a041;
  --break-line: rgba(20, 50, 17, .3);
  --avatar-size: 125px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 14px;
}

.section {
  flex: 1 1 auto;
  padding: 14px 0;
}

/* ---------- blocks ---------- */

.block {
  padding: 7px 0;
}

/* avatar */

.avatar-block {
  padding: 0 0 7px;
  font-size: 0;
  line-height: 0;
  text-align: center;
}

.avatar-link {
  display: inline-block;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.avatar {
  display: block;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
}

/* text */

.text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-md {
  font-size: 17px;
  line-height: 1.45;
}

.text-sm {
  font-size: 14px;
  line-height: 1.45;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* link button */

.btn {
  display: block;
  padding: 8px;
  border: 2px solid var(--link-bg);
  border-radius: 10px;
  background: var(--link-bg);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: opacity .3s ease;
}

.btn:hover {
  opacity: .9;
}

.btn-inner {
  padding: 6px;
}

.btn-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.btn-subtitle {
  margin-top: 2.8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

/* divider */

.break {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
}

.break-inner {
  display: flex;
  align-items: center;
  width: 30%;
  min-width: 30%;
}

.break-line {
  flex: 1 1 0;
  height: 1px;
  background: var(--break-line);
}

.break-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0 10.5px;
  fill: var(--text);
  color: var(--text);
}

/* socials */

.socials {
  display: flex;
  gap: 14px;
}

.social {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity .3s ease;
}

.social:hover {
  opacity: .9;
}

.social svg {
  display: block;
}

.social-tiktok {
  background: #000;
}

.social-tiktok svg {
  width: 24px;
  height: 28px;
}

.social-instagram {
  background: #f00075;
}

.social-instagram svg {
  width: 30px;
  height: 30px;
}

/* footer */

.footer {
  padding: 21px 14px 28px;
  font-family: "Roboto", "Helvetica Neue", Ubuntu, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: .7;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: none;
  opacity: 1;
}

.footer-logo {
  flex: 0 0 auto;
  margin: 0 4px;
  position: relative;
  top: 1px;
}

.footer-link span {
  font-weight: 700;
}

/* ---------- нижний футер ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0 34px;
  border-top: 1px solid #e6e2db;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.site-footer-copy {
  align-self: center;
  font-size: 13px;
}

.site-footer-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0 26px;
    font-size: 13px;
  }

  .site-footer-copy {
    order: 3;
    align-self: start;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid #efece6;
  }

  .site-footer-title {
    margin-bottom: 4px;
  }
}
