@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Manrope:wght@400;500&display=swap');

:root {
  --background-color: #fff9f9;
  --footer-background-color: #590d0e;
  --text-color: #1b1f22;
  --main-color: #8c1416;
  --main-hover-color: #b3191c;
  --contrast-color: #1a5276;
  --rgb-background: 255, 249, 249
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
}

html {
  background-image:
    linear-gradient(
      rgba(var(--rgb-background), 0.9),
      rgba(var(--rgb-background), 0.9)
    ),
    url(../img/background-texture.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--contrast-color);
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.6rem;
  text-align: center;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--main-color);
  padding: 12px 40px;
  text-align: left;
  gap: 16px;
}

.logo img {
  height: 64px;
}

header h1 {
  color: var(--background-color);
  font-size: 1.4rem;
}

main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40vh;
  text-align: center;
}

.hero h2 {
  text-transform: none;
}

.tribox,
.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.box {
  display: flex;
  background-color: var(--background-color);
  flex-direction: column;
  border: 2px solid var(--main-color);
  border-radius: 8px;
  box-shadow: 2px 2px 4px 1px #333;
  flex: 0 0 32%;
  padding: 24px;
  text-align: center;
}

.pricing h2 {
  flex: 0 0 100%;
}

.pricing .box {
  flex: 0 0 48%;
}

.box h3 {
  margin-bottom: 10px;
}

.services,
.methods,
.teachers,
.socialproof,
.pricing,
.contact {
  margin-top: 40px;
}

.contact {
  margin-bottom: 40px;
}

.services h2,
.methods h2,
.teachers h2,
.socialproof h2,
.pricing h2,
.contact h2 {
  margin: 20px 0;
}

.teachers h3 {
  margin-bottom: 12px;
}

.teachers p {
  padding: 0 60px;
}

ul {
  list-style: none;
}

.prices {
  display: flex;
  justify-content: center;
  gap: 16px;
}

p.old {
  font-size: 1.5rem;
  color: rgba(27, 31, 34, 0.6);
  font-weight: 500;
  text-decoration: line-through;
}
p.new {
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: 600;
}

p.alert {
  font-size: 1.2rem;
  color: var(--main-color);
  margin: 10px 0;
  font-weight: 500;
}

button {
  background-color: var(--main-color);
  color: var(--background-color);
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 2px 2px 2px 1px var(--text-color);
}

button:hover {
  background-color: var(--main-hover-color);
  transform: scale(1.03);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact iframe {
  margin-top: 20px;
  width: 90%;
}

footer {
  background-color: var(--main-color);
  color: var(--background-color);
  padding: 20px 0;
}

footer a {
  color: var(--background-color);
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

footer p.rights {
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero {
    height: 90vh;
  }

  .tribox {
    gap: 20px;
    justify-content: center;
  }

  .box {
    flex: 0 0 45%;
  }

  .box h3 {
    margin-bottom: 12px;
  }
}

@media (max-width: 550px) {
  .box,
  .pricing .box {
    flex: 0 0 100%;
  }

  .pricing {
    gap: 20px;
  }

  .teachers p {
    padding: 0 10px;
  }

  .contact iframe {
    width: 100%;
  }
}
