/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.6;
  font-size: 16px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #0f172a;
}
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin-bottom: 12px; color: #475569; }
.highlight { color: #2563eb; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  justify-content: center;
}
.btn--primary {
  background: linear-gradient(135deg, #999679, #817f5e);
  color: white;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}
.btn--outline {
  background: transparent;
  border: 2px solid #817f5e;
  color: #000000;
}
.btn--outline:hover {
  background: #a09e83;
  color: #000000;
}
.btn--telegram {
  background: #0088cc;
  color: white;
}
.btn--telegram:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.icon { width: 20px; height: 20px; }

/* ===== HEADER ===== */
.header {
  background: #e9e8d7;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo__text {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.logo__accent { color: #000000; }
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  font-weight: 500;
  color: #475569;
  font-size: 15px;
}
.nav a:hover { color: #040404; }

/* ===== HERO SECTION ===== */
.hero {
  padding: 60px 0;
  background:linear-gradient(180deg, #e1e0cc 0%, #d9d7bb 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__title { margin-bottom: 20px; }
.hero__subtitle {
  font-size: 18px;
  color: #475569;
  margin-bottom: 24px;
}
.hero__badges {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.badge {
  background: #817f5e;
  color: #000000;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__media {
  display: flex;
  justify-content: center;
}
.hero__image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== ABOUT SECTION ===== */
.about { padding: 80px 0; background: #d8d6bb; }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 17px;
}
.about__highlight {
  background: linear-gradient(135deg, #99977a, #817f5e);
  border-left: 4px solid #55533e;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0 40px;
  font-size: 16px;
}
.about__salary {
  background: #efefe2;
  padding: 24px;
  border-radius: 16px;
  margin: 30px 0 40px;
  border: 1px solid #93927f;
}
.about__salary p { margin-bottom: 8px; }
.about__media {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.about__image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.feature-card {
  background: #efefe2;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #93927f;
  transition: 0.2s;
}
.feature-card:hover {
  border-color: #040404;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.feature-card__icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ===== SERVICES SECTION ===== */
.services {
  padding: 80px 0;
  background: #d8d6bb;
}
.services-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.service-category h3 {
  color: #000000;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #efefe2;
  border-radius: 12px;
  border: 1px solid #93927f;
  transition: 0.2s;
}
.service-item:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.service-item__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.service-item h4 { font-size: 16px; margin-bottom: 4px; }
.service-item p { font-size: 14px; margin: 0; color: #64748b; }

/* ===== REVIEWS SECTION ===== */
.reviews { padding: 80px 0; background: #d8d6bb; }
.reviews-wrapper {
  overflow: hidden;
  margin: 40px 0;
  position: relative;
}
.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.reviews-track.no-transition {
  transition: none;
}
.review-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #efefe2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #93927f;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.review-card__content {
  display: flex;
  flex-direction: column;
}
.rating {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-card__text {
  font-style: italic;
  color: #475569;
  margin-bottom: 16px;
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
}
.review-card__author {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.reviews-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #93927f;
  background: #efefe2;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviews-nav__btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
}
.reviews-nav__btn:active {
  transform: scale(0.95);
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 80px 0;
  background: linear-gradient(180deg, #d8d6bb, #0f172a);
  color: white;
  text-align: center;
}
.cta__inner { max-width: 700px; margin: 0 auto; }
.cta__title { color: white; margin-bottom: 16px; }
.cta__subtitle {
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 32px;
}
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--outline {
  border-color: white;
  color: white;
}
.cta .btn--outline:hover {
  background: white;
  color: #1e293b;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 30px;
  font-size: 14px;
}
.footer__inner {
  text-align: center;
}
.footer__logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.footer__text { margin-bottom: 20px; }
.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer__links a:hover { color: white; }
.footer__copyright {
  color: #64748b;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__badges { justify-content: center; }
  .hero__actions { justify-content: center; }
  .header__inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 15px;
  }
  .cta__buttons { flex-direction: column; align-items: center; }
  .cta .btn { width: 100%; max-width: 320px; }
  
  /* Reviews: 1 card on mobile */
  .review-card {
    flex: 0 0 100%;
  }
}

/* ===== WRAPPER FOR BUTTON + SUBTEXT ===== */
.hero__button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ===== SMALL TEXT UNDER BUTTON ===== */
.hero__subtext {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/* ===== ALIGN BUTTONS AT SAME HEIGHT ===== */
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start; /* Кнопки выровнены по верху */
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .hero__subtext {
    font-size: 11px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__button-wrapper {
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .header__inner { gap: 10px; }
  .nav { gap: 16px; font-size: 14px; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .btn--lg { padding: 14px 24px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
}


/* ===== BLOG STYLES ===== */

/* Blog Header */
.blog-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #e1e0cc 0%, #d9d7bb 100%);
  text-align: center;
}
.blog-header__title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  color: #0f172a;
}
.blog-header__subtitle {
  font-size: 18px;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* Articles Grid */
.blog-articles {
  padding: 60px 0;
  background: #d8d6bb;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* Article Card */
.article-card {
  background: #efefe2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #93927f;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: #040404;
}
.article-card__image {
  height: 200px;
  overflow: hidden;
  background: #d8d6bb;
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.article-card:hover .article-card__image img {
  transform: scale(1.05);
}
.article-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__category {
  display: inline-block;
  background: #817f5e;
  color: #000000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}
.article-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-card__excerpt {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.article-card__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-card .btn--sm {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 14px;
}

/* Article Page */
.article-page {
  padding: 60px 0;
  background: #d8d6bb;
}
.article-page__header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.article-page__back {
  display: inline-block;
  color: #817f5e;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.article-page__back:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.article-page__category {
  display: inline-block;
  background: #817f5e;
  color: #000000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.article-page__title {
  font-size: clamp(28px, 4vw, 40px);
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.2;
}
.article-page__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #64748b;
}
.article-page__image {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.article-page__image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-page__content {
  max-width: 800px;
  margin: 0 auto;
  background: #efefe2;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #93927f;
}
.article-page__lead {
  font-size: 18px;
  color: #0f172a;
  line-height: 1.7;
  margin-bottom: 30px;
  font-weight: 500;
}
.article-page__content h2 {
  font-size: 24px;
  color: #0f172a;
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #93927f;
}
.article-page__content h3 {
  font-size: 20px;
  color: #0f172a;
  margin: 24px 0 12px;
}
.article-page__content p {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-page__content ul,
.article-page__content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.article-page__content li {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 10px;
}
.article-page__highlight {
  background: linear-gradient(135deg, #99977a, #817f5e);
  border-left: 4px solid #55533e;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-size: 15px;
  color: #000000;
}
.article-page__cta {
  background: linear-gradient(135deg, #989679, #82805f);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin-top: 40px;
}
.article-page__cta h3 {
  color: white;
  margin-bottom: 12px;
}
.article-page__cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

/* Responsive for Blog */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-page__content {
    padding: 24px;
  }
  .article-page__meta {
    flex-direction: column;
    gap: 8px;
  }
}