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

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;

  background-color: var(--bg-primary);

  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

a[href^="tel:+"] {
  white-space: nowrap;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button[type="submit"] {
  cursor: pointer;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style-type: none;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fffbee;

  --color-red: #ff0000;
  --color-green: #00ff00;
  --color-black: #0c0c22;
  --color-white: #ffffff;
  --color-gray: #e2e2e2;

  --btn-color-primary: #ffcf36;
  --btn-color-secondary: #265070;

  --color-primary: #ffcf36;
  --color-secondary: #265684;

  --color-primary-light: #fffbee;
  --color-secondary-light: #e5f4ff;


  --text-2xs: 12px;
  --text-xs: clamp(0.75rem, 0.625rem + 0.3125vw, 0.875rem); /* 12-14 px */
  --text-sm: clamp(0.875rem, 0.75rem + 0.3125vw, 1rem); /* 14-16 px */
  --text-md: clamp(1rem, 0.875rem + 0.3125vw, 1.125rem); /* 16-18 px */
  --text-lg: clamp(1.125rem, 1rem + 0.3125vw, 1.25rem); /* 18-20 px */
  --text-xl: clamp(1.25rem, 1.1842rem + 0.2632vw, 1.5rem); /* 20-24 px */
  --text-2xl: clamp(2.25rem, 2.0526rem + 0.7895vw, 3rem); /* 36-48 px */
  --text-3xl: clamp(3rem, 2.9013rem + 0.3947vw, 3.375rem); /* 48-54 px */
  --text-4xl: clamp(3.25rem, 3.0526rem + 0.7895vw, 4rem); /* 52-64 px */


  --section-padding: clamp(2.5rem, 1.5132rem + 3.9474vw, 6.25rem);;
  --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 1rem;
}

@media screen and (max-width: 1280px) {
  .container {
    max-width: 1024px;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    max-width: 768px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 640px;
  }
}

@media screen and (max-width: 640px) {
  .container {
    max-width: 480px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    max-width: 100%;
  }
}

section {
  padding: var(--section-padding) 0;
}
section > h2,
section .container > h2 {
  font-weight: 900;
  font-size: var(--text-2xl);
}

.btn {
  display: block;
  width: fit-content;
  padding: 12px 24px;

  border: 1px solid transparent;

  font-size: var(--text-md);
  font-weight: 500;

  border-radius: 6px;

  transition: background 0.3s ease;
}

.btn-primary {
  background-color: var(--btn-color-primary);
  color: var(--color-white);
}
.btn-primary-ghost {
  border: 1px solid var(--btn-color-primary);
  color: var(--btn-color-primary);
}
@media (hover:hover) {
  .btn-primary:hover {
    background-color: hsl(from var(--btn-color-primary) h s l / 70%);
  }
  .btn-primary-ghost:hover {
    background-color: var(--btn-color-primary);
    color: var(--color-white);
  }
}

.btn-secondary {
  background-color: var(--btn-color-secondary);
  color: var(--color-white);
}
@media (hover:hover) {
  .btn-secondary:hover {
    background-color: hsl(from var(--btn-color-secondary) h s l / 70%);
  }
}

.go-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-secondary);

  transition: color 0.3s ease;
}

.go-back svg {
  rotate: 180deg;
}
@media (hover:hover) {
  .go-back:hover {
    color: var(--color-primary);
  }
}

.contacts .phone {
  display: flex;
  gap: 6px;
  align-items: center;

  color: hsl(from var(--color-white) h s l / 70%);
  font-size: var(--text-2xs);
  line-height: 1.2;
  font-weight: 600;
  transition: color 0.3s ease;
}
.contacts p {
  color: inherit;
}
@media (hover:hover) {
  .contacts .phone:hover {
    color: var(--color-white);
  }
}


/* –––––––––––– Breadcrumb –––––––––– */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: max-content;
  line-height: 1;
  padding-block: 24px;
}
.breadcrumb > a {
  display: flex;
  gap: 6px;
  align-items: center;

  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--btn-color-secondary);

  transition: opacity 0.3s ease;
}
.breadcrumb > span {
  font-weight: 700;
}
.breadcrumb > span::after {
  content: none;
}
.breadcrumb > a::after {
  content: "/";
  user-select: none;
  pointer-events: none;
  cursor: default;
  scale: 0.8;
}

@media (hover: hover) {
  .breadcrumb > a:hover {
    opacity: 0.8;
  }
}

/* ––––––– MOBILE MENU ––––––– */

.menu-btn {
  --btn-bg-color: transparent;
  --btn-text-color: var(--color-primary);

  display: none;
  cursor: pointer;
  padding: 8px;
  background-color: var(--btn-bg-color);
  border: none;
  height: 100%;
}

.menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 10px;
  background-color: var(--btn-text-color);
  margin-bottom: 7px;

  transition: all 0.3s ease;
}

.menu-btn span:last-child {
  margin-bottom: 0;
}

.menu-btn.active span:first-child {
  transform: translateY(10px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:last-child {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
  --menu-bg-color: var(--bg-secondary);
  --menu-text-color: var(--color-black);
  --content-bg-color: var(--bg-secondary);

  display: none;
}

@media screen and (max-width: 1280px) {
  .mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    padding-inline: 40px;

    position: absolute;
    top: 100%;
    left: 0;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: var(--menu-bg-color);

    transition: grid-template-rows 0.3s ease, padding-block 0.1s ease;
  }

  .mobile-menu .mobile-menu__content {
    overflow: hidden;
    color: var(--menu-text-color);
    background-color: var(--content-bg-color);
  }
  .mobile-menu .mobile-menu__content nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-menu .mobile-menu__content .contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    color: var(--menu-text-color);
    padding: 20px 10px;
  }
  .mobile-menu .mobile-menu__content .contacts p {
    color: var(--menu-text-color);
  }
  .mobile-menu .mobile-menu__content .contacts::before {
    content: none;
  }

  .mobile-menu.active {
    grid-template-rows: 1fr;
    padding-block: 20px;
  }
  .mobile-menu .mobile-menu__content > nav ul li a {
    padding: 10px;
    display: block;
    color: var(--menu-text-color);
  }

  .mobile-menu.active .mobile-menu__content {
    opacity: 1;
  }

  .menu-btn {
    display: block;
  }
}
@media screen and (max-width: 640px) {
  .mobile-menu .mobile-menu__content .contacts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-menu .mobile-menu__content .contacts > a:nth-child(3) {
    grid-row: 2;
    margin-bottom: 20px;
  }
}