/* === Box-sizing сброс для всей верстки === */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

/* === Подключение шрифтов Evolventa === */
@font-face {
    font-family: 'Evolventa';
    src: url('fonts/Evolventa-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Evolventa';
    src: url('fonts/Evolventa-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --green: #175335;
    --orange: #FFA31A;
    --white: #fff;
    --gray: #f8f8f8;
    --text: #242424;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Evolventa', Arial, sans-serif;
    background: var(--gray);
    color: var(--text);
    min-height: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo img {
    height: 160px;
    transition: height 0.2s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

nav ul li a {
    text-decoration: none;
    color: var(--green);
    font-weight: 500;
    font-size: 22px;
    transition: color 0.2s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
nav ul li a.active,
nav ul li a:hover {
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
}

.hero {
    background: linear-gradient(135deg, #175335 80%, #267f53 100%);
    color: var(--white);
    padding: 64px 0 36px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    left: -80px; top: -80px;
    width: 250px; height: 250px;
    background: rgba(255,163,26,0.11);
    border-radius: 50%;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    right: -80px; bottom: -100px;
    width: 300px; height: 170px;
    background: rgba(255,255,255,0.08);
    border-radius: 35% 65% 60% 40% / 35% 40% 60% 65%;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    margin: 0 0 18px 0;
    font-size: 2.7em;
    font-weight: 700;
    line-height: 1.2;
}
.hero p {
    font-size: 1.28em;
    margin-bottom: 28px;
}
.btn-main {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 10px;
}
.btn-main:hover {
    background: #d67e00;
}

/* --- Блок преимуществ --- */
.benefits {
    background: var(--white);
    padding: 36px 0 20px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center;
}
.benefits-grid div img {
    height: 48px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.benefits-grid h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: var(--green);
}
.benefits-grid p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* --- Портфолио-слайдер --- */
.portfolio-slider {
  background: #f7f8f6;
  padding: 50px 0 30px 0;
}
.portfolio-slider h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.1em;
    color: var(--green);
}
.pslider-desc {
    text-align: center;
    color: #555;
    font-size: 1.04em;
    margin-bottom: 24px;
    margin-top: -6px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.pslider-outer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(34,60,80,0.04);
  overflow: hidden;
  min-height: 420px;
}
.pslider-track {
  display: flex;
  width: 100%;
  transition: transform 0.3s;
}
.pslide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}
.pslide img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  display: block;
  background: #efefef;
}
.pslide-caption {
  text-align: center;
  font-size: 1.2em;
  padding: 14px 0 14px 0;
  color: #242424;
}
.pslider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #222;
  font-size: 2em;
  width: 56px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(0,0,0,0.10);
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pslider-btn.prev { left: 18px; }
.pslider-btn.next { right: 18px; }
.pslider-btn:active { box-shadow: 0 2px 8px rgba(0,0,0,0.14); }
.pslider-dots {
  text-align: center;
  margin: 20px 0 0 0;
}
.pslider-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: #d2e4db;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.pslider-dots button.active {
  background: #175335;
}

@media (max-width: 950px) {
  .pslider-outer {
    max-width: 98vw;
    min-height: 240px;
  }
  .pslide img { height: 200px; }
  .pslide-caption { font-size: 1em; padding: 9px 0; }
  .pslider-btn { font-size: 1.4em; height: 44px; width: 36px; }
}

@media (max-width: 600px) {
  .pslider-outer {
    max-width: 99vw;
    border-radius: 16px;
    min-height: 120px;
  }
  .pslide img { height: 95px; border-radius: 0; }
  .pslide-caption { font-size: 0.95em; padding: 7px 0; }
  .pslider-btn { font-size: 1.1em; height: 33px; width: 30px; border-radius: 8px; }
  .portfolio-slider h2 { font-size: 1.2em; margin-left: 7px;}
  .pslider-dots { margin: 13px 0 0 0;}
}

@media (max-width: 900px) {
  .pslider-outer { max-width: 98vw; }
  .pslider-track { gap: 12px; }
  .pslide img { height: 180px; }
  .pslide { min-width: calc(100% - 12px);}
}
@media (max-width: 600px) {
  .pslider-outer {
    max-width: 100vw;
    border-radius: 0;
  }
  .pslider-btn {
    font-size: 1.5em;
    width: 36px;
    height: 44px;
    top: auto;
    bottom: 12px;
    transform: none;
    border-radius: 8px;
  }
  .pslider-btn.prev { left: 6px; }
  .pslider-btn.next { right: 6px; }
  .pslide img { height: 92px; }
}


@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
        height: auto;
        padding: 14px 0;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .container {
        padding: 0 7px;
    }
    .pslider-track { min-width: 0; }
}

@media (max-width: 500px) {
    .pslider-outer { padding: 0 0px;}
    .pslide img { height: 120px;}
    .pslide-caption { padding: 8px 2px 8px 2px; font-size: .95em;}
}

/* --- Блок "О компании" --- */
.about {
    padding: 30px 0 30px 0;
    background: var(--white);
    text-align: center;
    font-size: 1.25em;
    color: var(--green);
}

/* --- Контакты --- */
.contacts {
    background: #f7f8f6;
    padding: 40px 0;
    min-height: 400px;
}
.contacts-info {
    font-size: 1.14em;
    margin-bottom: 40px;
}
.contacts-info > div {
    margin-bottom: 10px;
}
.contacts-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #e8e6e6;
    padding: 20px;
    border-radius: 10px;
}
.contacts-form h2 {
    margin: 0 0 12px 0;
    color: var(--green);
    font-size: 1.22em;
}
.contacts-form input,
.contacts-form textarea {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-family: inherit;
    resize: none;
}
.contacts-form textarea {
    min-height: 80px;
}
.contacts-form button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 1em;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contacts-form button:hover {
    background: #d67e00;
}

/* --- Футер --- */
footer {
    background: var(--green);
    color: var(--white);
    padding: 16px 0;
    text-align: center;
    font-size: 1em;
    margin-top: 30px;
}


.portfolio-slider > .container {
    max-width: 100vw;
    padding: 0;
}
