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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: #222;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.5;
}

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

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1f5fbf;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 10px 14px;
  color: #fff;
  background: #1c1c1c;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.content {
  flex: 1;
}

.content:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 24px;
}

.inner-container {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.header {
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.header .container {
  width: min(100%, 1240px);
  min-height: 80px;
  margin: 0 auto;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 70px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: #333;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 6px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #005fc7;
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(45deg, #1f5fd8, #4d82eb);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: linear-gradient(180deg, #1f5fd8 57%, #4d82eb);
}

.materials-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(45deg, #2966f3, #5b90fc);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #2966f3, #5b90fc);
}

.btn-secondary {
  border-color: #007bff;
  color: #007bff;
  background: transparent;
}

.btn-secondary:hover {
  color: #fff;
  background: #007bff;
}

.header-order-btn {
  flex: 0 0 auto;
}

.burger {
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #333;
}

.site-footer {
  width: 100%;
  margin-top: 50px;
  padding: 20px;
  color: #fff;
  background-color: #1c1c1c;
  font-size: 14px;
}

.footer-container {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(260px, 1.2fr) minmax(250px, 1fr);
  align-items: center;
  gap: 32px;
}

.footer-left p {
  margin: 4px 0;
}

.footer-left a,
.footer-center a,
.footer-cookie-settings {
  color: #fff;
  text-decoration: none;
}

.footer-left a:hover,
.footer-center a:hover,
.footer-cookie-settings:hover {
  text-decoration: underline;
}

.footer-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-center a {
  font-weight: 500;
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.footer-make-order {
  text-align: center;
}

.footer-order-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.footer-right {
  display: flex;
  justify-content: center;
}

.cookie-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(440px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  color: #222;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.2);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0 0 14px;
  font-size: 14px;
}

.cookie-notice a {
  color: #005fc7;
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-notice button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.cookie-decline {
  border: 1px solid #9aa4b2;
  color: #263244;
  background: #fff;
}

.cookie-accept {
  border: 1px solid #1f5fd8;
  color: #fff;
  background: #1f5fd8;
}

@media (max-width: 1100px) {
  .main-nav ul {
    gap: 32px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-make-order {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header .container {
    gap: 14px;
  }

  .burger {
    display: flex;
    order: 2;
  }

  .header-order-btn {
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10;
    display: none;
    padding: 18px 20px 22px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav a {
    display: block;
    min-height: 44px;
    padding: 9px 12px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-make-order {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .header .container {
    min-height: 68px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .logo img {
    height: 48px;
  }

  .header-order-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .burger {
    width: 40px;
    height: 40px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
