/* =========================================================
   ИИ-Сервис — стили
   ========================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---- Variables ---- */
:root {
  --ink: #1A1A1A;
  --ink-soft: #404040;
  --ink-mute: #6B6B6B;
  --ink-light: #9A9A9A;
  --bg: #FAFAF7;
  --bg-alt: #F2F0EA;
  --bg-card: #FFFFFF;
  --line: #E5E1D6;
  --line-soft: #EDE9DE;
  --primary: #1F3A5F;
  --primary-deep: #142844;
  --accent: #D4843A;
  --accent-soft: #F0D8B5;

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'IBM Plex Serif', Georgia, serif;

  --container: 1180px;
  --pad-x: clamp(16px, 4vw, 32px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 250, 247, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.header-contacts {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.header-contacts a { transition: color 0.15s; }
.header-contacts a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .header-contacts { display: none; }
  .header-inner { padding: 14px 0; }
  .logo { font-size: 20px; }
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink-mute);
  margin-bottom: 36px;
  font-weight: 400;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 4px;
  transition: all 0.18s ease;
  letter-spacing: -0.01em;
}

.cta:hover {
  background: #BD6E2A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 132, 58, 0.25);
}

/* News feed */
.news-feed {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 24px 20px;
  position: relative;
}

.news-feed::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 36px;
  height: 3px;
  background: var(--accent);
}

.news-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list li {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  margin-right: 6px;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 40px; }
}

/* ---- Section common ---- */
section { padding: 72px 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-title .section-tag {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ---- Pains carousel ---- */
.pains {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.carousel-wrap {
  position: relative;
  margin: 0 -8px;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar { display: none; }

.pain-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px 28px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.08);
}

.pain-card.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(31, 58, 95, 0.18);
  transform: scale(1.02);
}

.pain-card.featured:hover {
  transform: scale(1.02) translateY(-2px);
}

.pain-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.pain-icon {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.pain-card.featured .pain-icon {
  color: var(--accent-soft);
}

.pain-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-mute);
}

.pain-card.featured p {
  color: rgba(255, 255, 255, 0.85);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.carousel-arrow.left { left: -18px; }
.carousel-arrow.right { right: -18px; }

@media (max-width: 720px) {
  .pain-card { flex: 0 0 85%; min-width: 0; }
  .carousel-arrow { display: none; }
}

/* Models CTA */
.models-cta {
  margin-top: 40px;
  text-align: center;
  padding: 28px 24px;
  border: 2px dashed var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.models-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.15s;
}

.models-link:hover {
  color: var(--accent);
}

.models-link-arrow {
  font-style: normal;
  font-family: var(--font-body);
  transition: transform 0.15s;
}

.models-link:hover .models-link-arrow {
  transform: translateX(4px);
}

.models-cta-sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service {
  padding: 28px 24px 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
}

.service:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.service p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.service p em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- How we work ---- */
.how {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
}

.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-body h3 {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .step { grid-template-columns: 60px 1fr; gap: 18px; }
  .step-num { font-size: 34px; }
}

/* ---- Why me ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.why-item h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 18px;
}

.why-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.why-item p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 18px;
}

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- FAQ ---- */
.faq {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 800px;
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-body {
  padding: 0 0 24px;
  max-width: 700px;
}

.faq-body p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---- About ---- */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 860px;
}

.about-photo {
  width: clamp(140px, 18vw, 200px);
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.about-location {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px !important;
  color: var(--ink-mute) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-photo { margin: 0 auto; }
  .why-item h3 { padding-left: 16px; }
}

/* ---- Contacts ---- */
.contacts {
  background: var(--primary);
  color: #fff;
  border-top: none;
}

.contacts .section-title {
  color: #fff;
}

.contacts-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.55;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  display: block;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: all 0.2s;
  color: #fff;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  color: var(--accent);
  margin-bottom: 14px;
}

.contact-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  word-break: break-all;
}

.contact-tag {
  display: inline-block;
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: lowercase;
  letter-spacing: 0;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.matrix-card .contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.matrix-card .contact-icon {
  color: var(--accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.5);
  padding: 24px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

/* =========================================================
   MODELS PAGE
   ========================================================= */

.models-hero {
  padding: 56px 0 40px;
  background: var(--bg);
}

.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 15px;
  margin-bottom: 28px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

.models-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ink);
}

.models-hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.models-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 740px;
}

.models-block {
  background: var(--bg);
  padding: 56px 0;
}

.models-block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.model-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 22px 22px;
  transition: all 0.2s;
}

.model-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.06);
}

.model-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.model-head h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.model-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-ru { background: #E8F0E5; color: #3E6B2A; }
.tag-local { background: var(--accent-soft); color: #8B5621; }
.tag-cheap { background: #FCE8E8; color: #9E3535; }

.model-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.model-tasks-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.model-tasks {
  list-style: none;
  margin-bottom: 16px;
}

.model-tasks li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 4px 0 4px 16px;
  position: relative;
}

.model-tasks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

.model-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-style: italic;
}

.other-models-note {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .model-list { grid-template-columns: 1fr; }
}

/* Matrix table */
.matrix-block {
  background: var(--bg);
  padding: 56px 0;
}

.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.matrix-table thead {
  background: var(--primary);
  color: #fff;
}

.matrix-table th {
  text-align: left;
  font-weight: 600;
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.matrix-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.5;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tbody tr:hover {
  background: var(--bg-alt);
}

.matrix-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.matrix-table td:nth-child(2) {
  color: var(--accent);
  font-weight: 500;
}

.matrix-table td:last-child {
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 720px) {
  .matrix-table { font-size: 13px; }
  .matrix-table th, .matrix-table td { padding: 12px; }
}

/* CTA back */
.cta-back {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 56px 0;
}

.cta-back h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.cta-back p {
  color: var(--ink-mute);
  margin-bottom: 24px;
  font-size: 16px;
}

.cta-back-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.link-back {
  color: var(--ink-mute);
  font-size: 14px;
  font-family: var(--font-display);
  font-style: italic;
  transition: color 0.15s;
}

.link-back:hover { color: var(--accent); }
