:root {
  --color-bg-light: #E9EFDE;
  --color-primary:  #8EA24E;
  --color-dark:     #0D3701;
  --color-accent:   #FF383C;
  --color-text:     #343434;
  --color-white:    #FFFFFF;
  --font-main:      'Unbounded', sans-serif;
  --radius-sm:      8px;
  --radius-md:      12px;
  --container:      1320px;
  --gap:            40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }
input, textarea, select { font-family: var(--font-main); font-size: 14px; outline: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.site-header.dropdown-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.site-logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }

.nav-link {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover { color: var(--color-primary); }

.nav-item { position: relative; }

.chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s;
}

.nav-item.open .chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.nav-dropdown {
    display: none;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13,55,1,0.15);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-width: 380px;
    padding: 16px 0;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(13,55,1,0.1);
    columns: 2;
    column-gap: 0;
}

.nav-item.open .nav-dropdown { display: block; }

.nav-dropdown a {
    display: block;
    font-size: 12px;
    color: var(--color-text);
    padding: 10px 20px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    break-inside: avoid;
}

.nav-dropdown a:hover {
    background: rgba(142,162,78,0.12);
    color: var(--color-dark);
}

.header-phone { position: relative; flex-shrink: 0; }

.phone-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.phone-chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--color-primary);
    border-bottom: 1.5px solid var(--color-primary);
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.2s;
}

.header-phone.open .phone-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.phone-dropdown {
    display: none;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(142,162,78,0.3);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-width: 220px;
    padding: 8px 0;
    z-index: 200;
    box-shadow: none;
    text-align: center;
}

.header-phone.open .phone-dropdown { display: block; }

.phone-dropdown a {
    display: block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    padding: 10px 20px;
    transition: background 0.15s;
    text-align: center;
}

.phone-dropdown a:hover { background: rgba(142,162,78,0.12); }

/* FOOTER */
.site-footer {
    background: var(--color-bg-light);
    color: var(--color-text);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.footer-logo img { height: 36px; width: auto; }

.footer-nav { display: flex; align-items: center; gap: 32px; }

.footer-nav a {
    font-size: 12px;
    color: var(--color-text);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text);
    transition: opacity 0.2s;
}

.footer-contact-item:hover { opacity: 0.7; }

.footer-contact-item img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* HERO */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 848px;
    position: relative;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 848px;
}

.hero-content { max-width: 600px; }

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 580px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
}

/* HERO FORM */
.hero-form-wrap {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(142,162,78,0.3);
    border-radius: 24px;
    padding: 40px;
    width: 440px;
    min-height: 584px;
    flex-shrink: 0;
    position: relative;
    align-self: flex-end;
    margin-right: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
    text-align: center;
}

.hero-form-subtitle {
    font-size: 12px;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(13,55,1,0.2);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-white);
    margin-bottom: 16px;
    display: block;
    height: 56px;
}

.form-input::placeholder { color: rgba(52,52,52,0.4); }
.form-input:focus { border-color: var(--color-primary); }

.input-error { border-color: var(--color-accent) !important; }

.form-error {
    display: block;
    font-size: 11px;
    color: var(--color-accent);
    margin-top: -10px;
    margin-bottom: 12px;
}

.form-success {
    text-align: center;
    padding: 20px 0;
    color: var(--color-dark);
    font-size: 14px;
    line-height: 2;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    padding: 0 28px;
    height: 56px;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.btn-full { width: 100%; }

.btn-auto {
    width: auto !important;
    padding: 16px 40px;
    height: auto;
    margin-top: 24px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover { opacity: 0.88; }

/* ABOUT SECTION */
.about-section {
    padding: 80px 0;
    background: var(--color-white);
}

.about-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.about-left { flex: 0 0 400px; }

.about-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-lead {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.7;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-right p {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.7;
}
/* SERVICES SECTION */
.services-section {
    padding: 80px 0;
    background: var(--color-white);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.text-primary { color: var(--color-primary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.service-card-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
}

.service-card-btn {
    color: var(--color-white);
    flex-shrink: 0;
}

.service-card:hover {
    background: var(--color-dark);
}