:root {
  --primary: #607080;
  --primary-variant: #f4f7fa;
  --secondary: #3c3d3e;
  --secondary-variant: #555555;
  --background: #f6f7ff;
  --text: #0b0c0e;
  --background-black: #0b0c0e;
  --warning: #0081a7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: auto;
  background: var(--white);
  color: var(--text);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--primary-variant);
  border-radius: 12px;
}

h2 {
  color: var(--secondary);
  padding-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 3rem;
  letter-spacing: -0.015em;
}

.title,
p,
.label,
figcaption,
footer {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}

p {
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 140%;
  letter-spacing: 0.03125rem;
}

.text-small {
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 160%;
}

.label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 150%;
  letter-spacing: -0.015em;
}

figure {
  margin: 1rem;
}

figcaption {
  color: var(--secondary);
  font-style: italic;
  max-width: 250px;
}

a {
  text-decoration: none;
  color: var(--secondary);
}

#title {
  letter-spacing: -0.015em;
  padding: 1rem;
  font-weight: 600;
  font-size: 6rem;
  line-height: 70px;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}
@media (max-width: 780px) {
  #title {
    font-size: 3rem;
    line-height: 3rem;
    padding: 0.5rem 1rem;
    text-align: center;
  }
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 1rem;
  background: var(--background-black);
  color: var(--white);
  font-weight: 400;
  font-size: 0.8rem;
  .footer__left,
  .footer__right {
    display: flex;
    align-items: center;
  }
  a {
    color: var(--white);
  }
}

.container {
  margin: auto;
  max-width: 1120px;
  background: var(--white);
  .container__flex {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
}

.container__space > img {
  margin: 1rem;
  height: 240px;
  width: 240px;
}

.container__text {
  max-width: 500px;
}
.container__blender_work {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 2rem;
  background: var(--primary-variant);
  border-radius: 12px;
  margin-bottom: 1rem;
}

img.has-modal {
  cursor: pointer;
  border: 1px solid var(--primary);
  border-radius: 12px;
  max-height: 250px;
  transition: border-color 0.2s ease;
}

img.has-modal:hover {
  border-color: var(--warning);
}
#imageModal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#imageModal.closed {
  display: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

#imageModal img.full-padding {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 12px;
  display: block;
}

.modal-caption {
  margin-top: 0.5rem;
  color: var(--secondary);
  font-style: italic;
  text-align: center;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.icon-button img {
  width: 2rem;
}

section {
  display: none;
  padding: 20px 0 0;
  border-top: 1px solid var(--primary);
}

input {
  display: none;
}

label {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 15px 25px;
  font-weight: 600;
  text-align: center;
  color: var(--secondary-variant);
  border: 1px solid transparent;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
}

input:checked + label {
  color: var(--secondary);
  border: 1px solid var(--primary);
  border-top: 2px solid var(--warning);
  border-bottom: 1px solid var(--white);
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7 {
  display: block;
}
