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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background: #f7f9fb;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  color: #0f1b33;
  line-height: 1.2;
}

p {
  color: #4b5563;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}

.section {
  padding: 24px 0 8px;
}
.section__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section__lead {
  margin: -8px 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1b33;
}
@media (min-width: 768px) {
  .brand__name {
    font-size: 1.5rem;
  }
}
.brand__slogan {
  font-size: 0.875rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 6px;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f1b33;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.burger span {
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -7px;
}
.burger span::after {
  top: 7px;
}
@media (min-width: 768px) {
  .burger {
    display: none;
  }
}

.nav-toggle:focus-visible + .burger {
  outline: 2px solid #2f7d32;
}

.main-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding-top: 8px;
}
.main-nav__link {
  padding: 8px 2px;
  font-weight: 500;
  color: #0f1b33;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav__link:hover {
  color: #2f7d32;
}
.main-nav__link--active {
  color: #2f7d32;
  font-weight: 600;
  border-bottom-color: #2f7d32;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    gap: 28px;
    padding-top: 0;
  }
}

.nav-toggle:checked ~ .main-nav {
  display: flex;
}

.nav-toggle:checked + .burger span {
  background: transparent;
}
.nav-toggle:checked + .burger span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .burger span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  margin-top: 32px;
  padding: 28px 0;
  background: #2b3542;
  color: #e5e7eb;
}
.site-footer .container {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.site-footer__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.site-footer__slogan, .site-footer__copy, .site-footer__contacts {
  font-size: 0.875rem;
  font-style: normal;
  color: #c7ced8;
}
.site-footer__contacts {
  margin-top: 8px;
}
.site-footer__contacts a:hover {
  color: #8fd694;
}
@media (min-width: 768px) {
  .site-footer__meta {
    text-align: right;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .footer-nav {
    justify-content: flex-end;
  }
}
.footer-nav a {
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: #8fd694;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #2f7d32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(47, 125, 50, 0.3);
}
.btn:focus-visible {
  outline: 3px solid rgba(47, 125, 50, 0.4);
  outline-offset: 2px;
}
.btn--submit {
  justify-self: start;
  padding: 12px 36px;
}

.hero {
  background: #eef2f6;
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: 24px;
  padding-block: 32px;
}
@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding-block: 0;
    min-height: 340px;
  }
}
.hero__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.hero__text {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: #1f2937;
  margin-bottom: 24px;
}
.hero__media {
  position: relative;
  margin: 0 -16px -32px;
  aspect-ratio: 16/9;
}
@media (min-width: 768px) {
  .hero__media {
    margin-inline: -24px;
    aspect-ratio: 21/9;
  }
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 25%;
}
@media (min-width: 1024px) {
  .hero__media {
    height: 340px;
    aspect-ratio: auto;
    margin: 0 calc((100vw - min(100vw, 1120px)) / -2 - 24px) 0 0;
  }
  .hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef2f6 0%, rgba(238, 242, 246, 0) 40%);
    z-index: 1;
  }
}
.hero__waves {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 30%;
  width: 110px;
  height: 110px;
}
.hero__waves span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}
.hero__waves span:nth-child(1) {
  transform: rotate(-60deg) scale(0.5);
}
.hero__waves span:nth-child(2) {
  transform: rotate(-60deg) scale(0.75);
}
.hero__waves span:nth-child(3) {
  transform: rotate(-60deg) scale(1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.stat {
  background: #f4f7fb;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 16px;
}
.stat:last-child {
  grid-column: 1/-1;
}
@media (min-width: 768px) {
  .stat:last-child {
    grid-column: auto;
  }
}
.stat__label {
  font-size: 0.8125rem;
  margin-bottom: 6px;
}
.stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1b33;
  margin-bottom: 8px;
}
.stat__value--small {
  font-size: 1.0625rem;
}
.stat__note {
  font-size: 0.8125rem;
}

.badge {
  display: block;
  padding: 3px 12px;
  font-size: 0.8125rem;
  border-radius: 3px;
}
.badge--ok {
  color: #1b5e20;
  background: #dcf1dd;
}

.cards {
  display: grid;
  gap: 14px;
}
@media (min-width: 576px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #f4f7fb;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #2f7d32;
  box-shadow: 0 8px 18px rgba(15, 27, 51, 0.08);
}
.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card__text {
  font-size: 0.875rem;
}

.warning {
  position: relative;
  margin: 28px 0 8px;
  padding: 18px 20px;
  background: #fde8e8;
  border: 1px solid #f19a9a;
  border-radius: 6px;
}
.warning__tag {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #d32f2f;
  border-radius: 10px;
}
.warning__title {
  font-size: 1.375rem;
  color: #d32f2f;
  margin-bottom: 4px;
}
.warning__text {
  color: #1f2937;
  font-size: 0.9375rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
}

.log {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.875rem;
}
.log th,
.log td {
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.log th {
  font-weight: 600;
  background: #e8edf3;
}
.log tbody tr {
  transition: background-color 0.3s ease;
}
.log tbody tr:hover {
  background: #f4f7fb;
}
.log tbody tr:last-child td {
  border-bottom: none;
}

.level {
  font-weight: 600;
}

.status--ok {
  color: #2f7d32;
}

.status--high {
  color: #d32f2f;
}

.level--high {
  color: #d32f2f;
}

.order-form {
  display: grid;
  gap: 14px 24px;
  grid-template-areas: "name" "email" "type" "period" "desc" "submit";
}
@media (min-width: 768px) {
  .order-form {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "name   email" "type   period" "desc   desc" "submit .";
  }
}
@media (min-width: 1024px) {
  .order-form {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "name   email  desc" "type   period desc" "submit .      .";
  }
}
.order-form .btn--submit {
  grid-area: submit;
}

.field--name {
  grid-area: name;
}
.field--email {
  grid-area: email;
}
.field--type {
  grid-area: type;
}
.field--period {
  grid-area: period;
}
.field--desc {
  grid-area: desc;
}
.field--desc {
  display: flex;
  flex-direction: column;
}
.field--desc textarea {
  flex: 1;
}
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.req {
  color: #d32f2f;
}

input[type=text],
input[type=email],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cfd6de;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type=text]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2f7d32;
  box-shadow: 0 0 0 3px rgba(47, 125, 50, 0.15);
}

textarea {
  min-height: 98px;
  resize: vertical;
}
