@layer layout {
  :root {--header-h: 88px;}
  @media (max-width: 1110px) {
    :root {--header-h: 64px;}
  }

  main {
    padding-top: var(--header-h);
    overflow: hidden;
  }

  .l-container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
  }

  /* ===== HEADER ===== */
  .p-header {
    background-color: #fff;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.08);
    height: var(--header-h);
    position: fixed;
    z-index: 999;
    width: 100%;
  }

  .p-header .l-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 20px;
  }

  .p-header__logo-image {
    width: clamp(160px, 22vw, 220px);
    margin: 0 0 5px;
  }
  .p-header__description {
    font-size: clamp(8px, 1.1vw, 10px);
  }

  @media (max-width: 1110px) {
    .p-header { height: 64px; }
    .p-header .l-container {height: 64px; padding: 0 15px;}
  }

  @media (max-width: 640px) {
    .p-header__logo-image { margin: 0; }
  }

  .c-nav-toggle,
  .c-nav-toggle__label {
    display: none;
  }

  @media (max-width: 1110px) {
    .c-nav-toggle { display: none; }
    .c-nav-toggle__label {
      display: block;
      position: fixed;
      right: 0;
      top: 0;
      width: 64px;
      height: 64px;
      cursor: pointer;
      z-index: 200;
      background-color: #EEF8F0;
    }
    .c-nav-toggle__label span {
      display: block;
      position: relative;
      width: 24px;
      height: 2px;
      background: #212121;
      transition: background 0.3s ease;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .c-nav-toggle__label span::before,
    .c-nav-toggle__label span::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      background: #212121;
      left: 0;
      transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
    }
    .c-nav-toggle__label span::before { top: -8px; }
    .c-nav-toggle__label span::after  { top:  8px; }
    .p-nav {
      position: fixed;
      inset: 0;
      background: #2AA346;
      color: #fff;
      transform: translateY(-100%);
      transition: transform 0.4s ease;
      z-index: 100;
    }
    .p-nav a { color: #fff; }
    .c-nav-toggle:checked ~ .p-nav { transform: translateY(0); }
    .c-nav-toggle:checked + .c-nav-toggle__label span { background: transparent; }
    .c-nav-toggle:checked + .c-nav-toggle__label span::before {
      transform: rotate(45deg);
      top: 0;
    }
    .c-nav-toggle:checked + .c-nav-toggle__label span::after {
      transform: rotate(-45deg);
      top: 0;
    }
  }
  .p-nav {display: grid; gap: 10px;}
  .p-nav__link--client {
    color: #212121;
    font-size: 12px;
    text-align: right;
    text-decoration: underline;
  }

  .p-nav__list {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
  }
  @media (max-width: 1110px) {
    .p-nav__link--client { display: none; }
    .p-nav__list {
      flex-direction: column;
      width: 80%;
      margin: 80px auto 40px;
      align-items: flex-start;
      gap: 15px;
    }
    .p-nav__list li {
      border-bottom: dashed 1px #fff;
      padding-bottom: 15px;
      width: 100%;
    }
    .p-nav__list li:last-child {
      border-bottom: none;
    }
  }

  .p-nav__item--client { display: none; }
  @media (max-width: 1110px) {
    .p-nav__item--client { display: block; }
  }

  .footer {
    background-color: #212121;
    color: #fff;
  }

  .footer__info {
    display: flex;
    align-items: center;
    gap: 80px;
    width: fit-content;
    margin: 0 auto;
    padding: 40px 0;
  }

  .footer__logo { width: 240px; }
  .footer__text { font-size: clamp(12px, 1.2vw, 16px); }
  .footer__tel {
    font-size: 32px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
  }
  .footer__tel-note {
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 400;
    margin-left: 20px;
  }
  .footer__menu {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #999;
    padding: 30px 0;
  }
  .footer__copyright { font-size: clamp(12px, 1.6vw, 14px); }
  .footer__list { display: flex; gap: clamp(10px, 3vw, 20px); }
  .footer__link {
    color: #fff;
    font-size: clamp(12px, 1.6vw, 14px);
    transition: filter .25s ease, color .25s ease;
  }
  .footer__link:hover { filter: brightness(1.15); } 

  @media (max-width: 640px) {
    .footer__info {
      flex-direction: column;
      gap: 20px;
      padding: 20px 0;
    }
    .footer__logo { width: 200px; }
    .footer__tel { font-size: 24px; }
    .footer__tel-note {
      margin-left: 0;
      display: block;
    }
    .footer__menu {
      flex-direction: column-reverse;
      align-items: center;
      padding: 15px 0;
    }
  }
}
