/* Цвета: приглушённый нежно-зелёный + светло-бежевый */
:root {
  --color-green: #7d9b8a;
  --color-green-dark: #5f7a6b;
  --color-green-light: #a8c4b5;
  --color-beige: #f5f0e8;
  --color-beige-dark: #e8e0d5;
  --color-cream: #faf8f5;
  --color-text: #2c332e;
  --color-text-muted: #5a635c;
  --color-white: #fff;
  --shadow: 0 4px 20px rgba(45, 52, 47, 0.08);
  --radius: 12px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--color-green-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-beige-dark);
  padding-top: env(safe-area-inset-top, 0);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
}
.header__logo:hover {
  color: var(--color-green-dark);
}

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav__link:hover {
  color: var(--color-green-dark);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger__line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 85vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-beige);
    padding: 80px 24px 32px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  .nav.is-open {
    right: 0;
  }
  .nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 51, 46, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav.is-open::before {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
  }
  .nav__link {
    display: block;
    font-size: 1.05rem;
    padding: 14px 0;
    min-height: 48px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
  }
  .burger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .burger.is-active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.is-active .burger__line:nth-child(2) {
    opacity: 0;
  }
  .burger.is-active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .burger__line {
    transition: transform 0.2s, opacity 0.2s;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn--primary:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
}
.btn--outline {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-green);
}
.btn--outline:hover {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--icon {
  padding: 10px 16px;
  font-size: 0.85rem;
}
@media (max-width: 600px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--color-beige) 0%, var(--color-cream) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.hero__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green-dark);
  margin: 0 0 8px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.hero__text {
  margin: 0 0 16px;
  color: var(--color-text);
  max-width: 560px;
}
.hero__text strong {
  color: var(--color-text);
}

.hero__contacts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-green-dark);
}
.hero__phone:hover {
  color: var(--color-green);
}

.hero__messengers {
  display: flex;
  gap: 10px;
}

.hero__photo-wrap {
  position: sticky;
  top: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-beige-dark);
}

.hero__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__photo-wrap {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 88px 0 40px;
  }
  .hero__grid {
    gap: 24px;
  }
  .hero__label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  .hero__title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .hero__subtitle {
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  .hero__text {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .hero__contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }
  .hero__phone {
    font-size: 1.15rem;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .hero__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero__messengers .btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
  }
  .hero__photo-wrap {
    max-width: 100%;
    border-radius: 10px;
  }
}

/* Sections */
.section {
  padding: 72px 0;
}
@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }
  .section__title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    padding: 0 8px;
  }
}
.section--services {
  background: var(--color-white);
}
.section--reviews {
  background: var(--color-beige);
}
.section--documents {
  background: var(--color-cream);
}
.section--contacts {
  background: var(--color-beige);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 40px;
  text-align: center;
}

/* Services */
.services-intro {
  margin-bottom: 40px;
}
.services-intro__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 16px;
}
.services-list {
  margin: 0;
  padding-left: 24px;
  color: var(--color-text);
}
.services-list li {
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .services-intro__heading,
  .how-i-work__heading,
  .pricing__heading {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .services-list {
    padding-left: 20px;
  }
  .services-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }
}

.how-i-work {
  margin-bottom: 40px;
  padding: 28px;
  background: var(--color-cream);
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .how-i-work {
    padding: 20px 16px;
    margin-bottom: 28px;
  }
  .how-i-work p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
}
.how-i-work__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 16px;
}
.how-i-work p {
  margin: 0 0 12px;
  color: var(--color-text);
}
.how-i-work p:last-child {
  margin-bottom: 0;
}

.pricing__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 8px;
}
.pricing__note {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.pricing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pricing__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background: var(--color-beige);
  border-radius: var(--radius);
}
.pricing__item--highlight {
  background: var(--color-green-light);
  color: var(--color-text);
}
.pricing__name {
  font-weight: 500;
}
.pricing__price {
  font-weight: 600;
  color: var(--color-green-dark);
}
.pricing__price small {
  font-weight: 400;
  font-size: 0.9em;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .pricing__note {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }
  .pricing__list {
    gap: 10px;
  }
  .pricing__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 4px;
  }
  .pricing__name {
    font-size: 0.95rem;
  }
  .pricing__price {
    font-size: 1rem;
  }
}

/* Slider */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider__track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y;
}
.slider__track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s ease;
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}
@media (min-width: 700px) {
  .slider__slide {
    flex: 0 0 calc(50% - 10px);
  }
}
.slider__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--color-green);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.slider__btn:hover {
  background: var(--color-green);
  border-color: var(--color-green);
}
.slider__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--color-green);
  border-bottom: 2px solid var(--color-green);
  transform: translate(-30%, -50%) rotate(45deg);
}
.slider__btn:hover::after {
  border-color: var(--color-white);
}
.slider__btn--next::after {
  left: 45%;
  transform: translate(-70%, -50%) rotate(-135deg);
}
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-beige-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.slider__dot.is-active {
  background: var(--color-green);
  transform: scale(1.2);
}
@media (max-width: 600px) {
  .slider {
    gap: 8px;
  }
  .slider__track {
    gap: 16px;
  }
  .slider__btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .slider__btn::after {
    width: 8px;
    height: 8px;
  }
  .slider__dots {
    margin-top: 16px;
    gap: 10px;
  }
  .slider__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }
}

.review-card {
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 180px;
}
.review-card__text {
  margin: 0;
  color: var(--color-text);
  font-style: italic;
}
.review-card code {
  font-size: 0.85em;
  background: var(--color-beige);
  padding: 2px 6px;
  border-radius: 4px;
}
.review-card--img {
  padding: 0;
  overflow: hidden;
  min-height: 200px;
}
.review-card--img img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .review-card {
    min-height: 140px;
    padding: 0;
  }
  .review-card--img {
    min-height: 160px;
  }
  .review-card--img img {
    max-height: 280px;
  }
}

/* Documents */
.documents-groups {
  display: grid;
  gap: 32px;
}
@media (max-width: 600px) {
  .documents-groups {
    gap: 24px;
  }
}
.doc-group__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 16px;
  text-align: center;
}
@media (max-width: 600px) {
  .doc-group__title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
}
.doc-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-beige-dark);
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card__name {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.doc-card--img {
  padding: 0;
  min-height: 140px;
  overflow: hidden;
}
.doc-card--img img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
.doc-card--zoom,
.review-card--zoom {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.doc-card--zoom:focus,
.review-card--zoom:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(44, 51, 46, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox:not([hidden]).is-open {
  display: flex !important;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.35);
}
.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .doc-links {
    flex-direction: column;
    gap: 10px;
  }
}
.doc-card--link {
  display: inline-block;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--color-green-dark);
  border: 2px solid var(--color-green);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 600px) {
  .doc-card--link {
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 0.9rem;
    min-height: 48px;
    line-height: 1.3;
  }
}
.doc-card--link:hover {
  background: var(--color-green);
  color: var(--color-white);
}
@media (max-width: 600px) {
  .doc-card--img {
    min-height: 120px;
  }
  .doc-card--img img {
    max-height: 260px;
  }
}
.documents__member-wrap {
  margin-top: 28px;
  text-align: center;
}
@media (max-width: 600px) {
  .documents__member-wrap {
    margin-top: 24px;
  }
}
.documents__member {
  margin: 0 0 12px;
  font-weight: 500;
  color: var(--color-green-dark);
}
.documents__akpp {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .documents__akpp {
    max-width: 160px;
  }
}

/* Contacts */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contacts__lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 16px;
  line-height: 1.45;
}
.contacts__or {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.contacts__phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-green-dark);
  margin-bottom: 16px;
}
.contacts__phone:hover {
  color: var(--color-green);
}
.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.contacts__note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}
.contacts__form-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 20px;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__label-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.form__input {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-beige-dark);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s;
}
.form__input:focus {
  outline: none;
  border-color: var(--color-green);
}
.form__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}
.form__textarea {
  resize: vertical;
  min-height: 100px;
}
.form__note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form__note.success {
  color: var(--color-green-dark);
}
.form__note.error {
  color: #b54a4a;
}
.form__consent {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.form__consent a {
  color: var(--color-green-dark);
  text-decoration: underline;
}
.form__consent a:hover {
  color: var(--color-green);
}

@media (max-width: 768px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contacts__lead,
  .contacts__or,
  .contacts__note {
    text-align: center;
  }
  .contacts__phone {
    text-align: center;
  }
  .contacts__messengers {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .contacts__grid {
    gap: 28px;
  }
  .contacts__phone {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .contacts__messengers {
    gap: 10px;
  }
  .contacts__messengers .btn {
    min-height: 44px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .contacts__form-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
}

/* Form — mobile: 16px font to prevent iOS zoom on focus */
@media (max-width: 600px) {
  .form {
    gap: 16px;
  }
  .form__input {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }
  .form__textarea {
    min-height: 120px;
    padding: 14px 16px;
    font-size: 16px;
  }
  .form .btn--primary {
    min-height: 48px;
    font-size: 1rem;
    width: 100%;
  }
}

/* Footer */
.footer {
  padding: 24px 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  background: var(--color-text);
  color: var(--color-beige);
  text-align: center;
}
.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer a {
  color: var(--color-green-light);
}
