@import url('https://fonts.googleapis.com/css2?family=Kurale&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #e6e8e1;
}
::-webkit-scrollbar-thumb {
    background: #A88F34;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8A752A;
}

html {
    scroll-behavior: smooth;
}

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

body {
      margin: 0;
      font-family: "Kurale", serif;
      background-color: #e0e1de;
      color: #000000;
    }

hr {
    border: 0;
    height: 2px;
    background: #121212;
    margin: 40px auto;
    max-width: 800px;
}

.container {
    width: 1100px;
    margin: 0 auto;
}

    /* ===== HEADER ===== */
    header {
      background-color: #131313;
      padding: 15px 0;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 15px;
        position: relative;
    }

    .logo img {
      width: 120px;
      height: auto;
      object-fit: cover;
      box-shadow: 8px 6px 10px rgba(0, 0, 0, 0.25);
      position: absolute;
      top: 0;
    }

    .logo strong {
        padding-left: 170px;
        font-size: 30px;
        color: #e0e1de;
    }

    .contacts {
      display: flex;
      gap: 15px;
    }

    .messengers {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .messenger-link {
        display: block;
        width: 35px;
        height: auto;
        overflow: hidden;
        transition: transform 0.2s ease;
    }

    .messenger-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: invert(57%) sepia(100%) saturate(172%) hue-rotate(11deg) brightness(80%) contrast(100%);
    }

    .messenger-link {
        transition: transform 0.2s ease;
    }

    .messenger-link:hover {
        transform: scale(1.1) rotate(10deg);
    }

    .phone {
        color: #9f8d4d;
        font-weight: bold;
        font-size: 30px;
        transition: color 0.3s ease;
        text-decoration: none;
    }
    .phone:hover {
    color: #887635;
    }

    /* ===== HERO ===== */
    .hero {
      padding: 60px 0;
    }

    .hero-inner {
      display: flex;
      align-items: center;
    }

    .hero img {
      width: 320px;
      box-shadow: 8px 6px 20px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 10;
        margin-right: -100px;
        margin-bottom: -150px;
    }

    .hero-text {
        position: relative;
        z-index: 5;
    }

    .hero-text-2 {
        margin-left: 95px;
        display: block;
    }

    .hero-text h1 {
      font-size: 32px;
      margin-bottom: 20px;
        text-align: right;
    }

    .hero-text p {
      font-size: 28px;
      line-height: 1.6;
        background: rgba(211, 210, 198, 0.85);
        box-shadow: 0 0 15px rgba(243, 237, 230);
      padding: 25px;
        border-radius: 8px;
    }

    .hero-button {
        display: block;
        margin-top: 30px;
        margin-left: auto;
        width: fit-content;

        background-color: #94a17b;
        color: #000;
        text-decoration: none;
        font-size: 32px;
        padding: 14px 55px;
        border-radius: 20px 0 0 20px;
        transition: background-color 0.2s ease;
    }

    .hero-button:hover {
        background-color: #839563;
    }

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
    opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background-color: #FAF8F2;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #C7B98F;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  font-family: sans-serif;
    transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #A88F34;
    box-shadow: 0 0 5px rgba(200, 121, 43, 0.5);
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* Стили формы */
.modal-content h2 {
  margin-top: 0;
  color: #333;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 14px;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.modal-content input[type="file"] {
  margin-top: 5px;
  width: 100%;
}

.submit-btn {
  background-color: #94a17b;
  color: white;
  padding: 12px 20px;
  margin-top: 25px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
  border-radius: 5px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #8A752A;
}

    /* ===== SECTION TITLE ===== */
    .section-title {
      text-align: center;
      font-size: 36px;
      margin: 80px 0 40px;
        font-style: normal;
    }

    /* ===== ITEMS GRID ===== */
    .items-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
      justify-items: center;
    }

    .item-card {
        background-color: #c7cfba;
        border: 4px solid #b0bd95;
      padding: 20px;
      text-align: center;
      width: 220px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 250px;
        box-shadow: 8px 6px 10px rgba(0, 0, 0, 0.25);
        transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease;
    }

    .item-card:hover {
        transform: scale(1.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        background-color: #cbd3be;
        border: 4px dashed #dccd9b;
    }

    .item-card img {
      width: auto;
        height: auto;
        max-width: 100%;
      max-height: 170px;
        flex-shrink: 1;
        min-height: 0;
        object-fit: contain;
        margin-bottom: 10px;
        filter: sepia(0.2);
    }

    .item-card:hover img {
        filter: sepia(0);
    }

    .item-card h3 {
      font-size: 18px;
        font-weight: normal;
        margin: 0;
    }

    .additional-items {
        margin: 35px 60px 0;
        text-align: center;
        font-size: 18px;
        background: #ccd5bf;
        padding: 10px 20px;
        border-radius: 15px;
        border: 2px dashed #A88F34;
    }

    /* ===== CRITERIA ===== */
    .hr-criteria {
        border: 0;
    height: 2px;
    background: #C7B98F;
    margin: 60px auto 20px;
    max-width: 800px;
    }

    .criteria {
      margin: 60px 0;
    }

    .criteria ol {
      font-size: 24px;
      line-height: 1.8;
      max-width: 1000px;
      margin: 0 auto;
    }

    .criteria b {
        font-weight: bold;
        color: #A88F34;
    }

    /* ===== FOOTER ===== */
.footer-container {
    width: 1000px;
    margin: 0 auto;
}

footer {
    background-color: #353534;
    color: #d1d1d1;
    padding: 20px 0 15px;
    margin-top: 60px;
    font-size: 20px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.footer-col {
    width: 45%;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 24px;
    color: #d5d5d5;
}

.map-placeholder {
    width: 100%;
    height: 100px;
    background-color: #dcdcdc;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border: 2px solid #353534;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {

    .container,
    .footer-container{
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    hr {
        width: 85%;
    }

    .header-inner {
        flex-direction: column;
        gap: 0;
    }

    .logo img {
        display: none;
    }

    .logo strong {
        padding-left: 0;
        text-align: center;
        font-size: 24px;
        display: block;
        width: 100%;
    }

    .contacts {
        flex-direction: column-reverse;
        align-items: center;
        margin-top: 10px;
        gap: 10px;
    }

    .phone {
        font-size: 24px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero img {
        display: none;
    }

    .hero-text h1 {
        text-align: center;
        font-size: 23px;
        margin-top: 0;
    }

    .hero-text p {
        font-size: 18px;
        text-align: center;
    }

    .hero-text-2 {
        margin-left: 0;
        display: inline;
    }

    .hero-button {
        margin: 40px auto 0;
        border-radius: 20px;
        font-size: 20px;
        padding: 12px 30px;
        text-align: center;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .items-grid .item-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .item-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 10px;
        box-shadow: none;
    }

    .item-card img {
        max-height: 120px;
    }

    .item-card:hover {
        transform: scale(1.075);
    }

    .item-card span {
        font-size: 16px;
        line-height: 1.2;
    }

    .additional-items {
        margin: 25px 0 0;
    }

    .section-title {
        font-size: 24px;
        margin: 30px 0 20px;
    }

    .criteria {
        margin: 40px 20px;
    }

    .criteria ol {
        font-size: 18px;
        padding-left: 20px;
    }

    .footer-flex {
        flex-direction: column;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-title-second {
        margin-bottom: 0;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .footer-col p {
        font-size: 18px;
    }

    .footer-p-second {
        margin-top: 5px;
    }

    .map-placeholder iframe {
        width: 100% !important;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
}