/* DiyorSoft — стиль в духе современных лендингов (FARMOISH-подобная структура) */
:root {
  --teal: #00b2b2;
  --teal-dark: #009494;
  --teal-soft: rgba(0, 178, 178, 0.12);
  --charcoal: #263238;
  --muted: #5c6b73;
  --bg: #f0f4f6;
  --surface: #ffffff;
  --border: #e2e8ec;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(38, 50, 56, 0.08);
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

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

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--teal);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--charcoal);
}

.lang-btn:hover {
  border-color: var(--teal);
}

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
  z-index: 50;
}

.lang-panel.is-open {
  display: block;
}

.lang-panel a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.lang-panel a:hover,
.lang-panel a.is-active {
  background: var(--teal-soft);
  color: var(--teal-dark);
  text-decoration: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 10px;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.85rem 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a252b 50%, #1e3338 100%);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(0, 178, 178, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(0, 178, 178, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 178, 178, 0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* Service categories */
/* Сетка «Авито» — основные направления */
.service-bento {
  margin-bottom: 2.25rem;
}

.service-bento__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.service-bento__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .service-bento__grid {
    gap: 0.85rem;
  }
}

.service-bento__card {
  position: relative;
  display: block;
  min-height: 118px;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: var(--charcoal);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.service-bento__card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(38, 50, 56, 0.12);
  text-decoration: none;
  color: var(--charcoal);
  background: #ececec;
}

.service-bento__card-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 58%;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-bento__card-art {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 58%;
  max-width: 112px;
  height: 78%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  color: var(--teal);
  opacity: 0.92;
}

.service-bento__svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.section-label--after-bento {
  margin-top: 0.25rem;
}

.service-card[id^="service-"],
#contact {
  scroll-margin-top: 5.5rem;
}

.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 4px 20px rgba(38, 50, 56, 0.04);
}

.section-alt .service-card {
  background: var(--bg);
}

.service-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.service-list li:last-child {
  border-bottom: none;
}

/* Portfolio */
.portfolio-empty {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(38, 50, 56, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-alt .portfolio-card {
  background: var(--bg);
}

.portfolio-card__media {
  aspect-ratio: 16 / 10;
  background: var(--border);
  overflow: hidden;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card__tag {
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.portfolio-card__year {
  color: var(--muted);
}

.portfolio-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.portfolio-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.portfolio-card__link {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

.portfolio-card__link:hover {
  text-decoration: none;
  color: var(--teal);
}

.portfolio-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.page-main {
  min-height: 40vh;
}

.page-intro {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.page-intro__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.page-intro__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.breadcrumb {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 0.4rem;
  color: var(--muted);
}

.breadcrumb__current {
  color: var(--muted);
}

.service-name {
  font-weight: 500;
  color: var(--charcoal);
}

.service-price {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal-dark);
  white-space: nowrap;
  text-align: right;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 520px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 178, 178, 0.2);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.contact-card a,
.contact-card span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.is-success {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border: 1px solid rgba(0, 178, 178, 0.35);
}

.form-feedback.is-error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c2;
}

.form-feedback[hidden] {
  display: none !important;
}

button.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-footer a {
  color: var(--teal);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin: 0;
}

/* Нижняя панель навигации (мобильные) */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 899px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    justify-content: space-around;
    align-items: stretch;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 28px rgba(38, 50, 56, 0.1);
  }

  .mobile-bottom-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.35rem 0.2rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .mobile-bottom-nav__link:hover {
    text-decoration: none;
    color: var(--charcoal);
  }

  .mobile-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: currentColor;
    opacity: 0.88;
  }

  .mobile-bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
  }

  .mobile-bottom-nav__link.is-active {
    color: var(--teal-dark);
    background: var(--teal-soft);
  }

  .mobile-bottom-nav__link.is-active .mobile-bottom-nav__icon {
    opacity: 1;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}
