/* Сайт macroera.ru: общие стили всех страниц (перенос с Тильды в чистый HTML) */

@font-face {
  font-family: 'TildaSans';
  src: url('/assets/fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('/assets/fonts/TildaSans-VF.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'TildaSans', Arial, sans-serif;
  --text: #000;
  --muted: #666;
  --blue: #1f5bff;
  --violet: #2214a7;
  --violet-light: #675dcb;
  --orange: #ff7300;
  --orange-link: #ff8562;
  --gray-bg: #e6e6e6;
  --footer-bg: #111;
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; line-height: 1.23; }
p { margin: 0 0 1em; }
ul { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 105px 0; }
.section--gray { background: var(--gray-bg); }
.section-title { font-size: 42px; text-align: center; margin-bottom: 45px; }
.section-descr { font-size: 24px; text-align: center; max-width: 760px; margin: -25px auto 45px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 30px;
  border: 0;
  border-radius: 100px;
  font: 600 14px/1.4 var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, opacity .2s ease-in-out, transform .2s ease-in-out;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--violet { background: var(--violet); color: #fff; border-radius: 5px; font-size: 16px; min-height: 60px; }
.btn--white { background: #fff; color: var(--violet); border-radius: 5px; font-size: 15px; min-height: 50px; }
.btn--orange { background: var(--orange); color: #fff; border-radius: 7px; font-size: 16px; min-height: 56px; }

/* Шапка */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: #000;
  color: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 80px;
  padding: 0 40px;
}
.header__logo { font-size: 24px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__logo img { width: 80px; height: 80px; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { opacity: .8; }
.header__social { display: flex; align-items: center; gap: 10px; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; }
.header--static { position: static; }

/* Иконки соцсетей */
.social { display: inline-flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social a, .header__social a { display: block; width: 30px; height: 30px; }
.social svg, .social img, .header__social svg, .header__social img { width: 30px; height: 30px; display: block; }
.social--dark svg path { fill: #000; }

/* Обложка главной */
.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #000 url('/assets/img/hero-bg.jpg') center / cover no-repeat;
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(9, 47, 51, .8), rgba(8, 29, 31, .7));
}
.cover__content { position: relative; padding: 120px var(--gutter) 40px; }
.cover__title { font-size: 65px; line-height: 1.17; }
.cover__descr { font-size: 24px; margin-top: 24px; }
.cover__arrow { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 38px; fill: #e6e6e6; animation: arrow 1.7s infinite; }
@keyframes arrow { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Обо мне */
.about { display: grid; grid-template-columns: 560px 1fr; gap: 40px; align-items: start; }
.about__img { width: 560px; height: 560px; object-fit: cover; }
.about__title { font-size: 42px; margin-bottom: 24px; }
.about__lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.about__text { font-size: 20px; }
.about__text ul { padding-left: 1.2em; margin: .5em 0 1em; }
.about__text li { margin-bottom: .6em; }

/* Карточки разработок */
.product { display: grid; grid-template-columns: 560px 1fr; gap: 40px; align-items: center; }
.product + .product { margin-top: 90px; }
.product__img { width: 560px; height: 420px; object-fit: cover; }
.product__title { font-size: 26px; margin-bottom: 16px; }
.product__descr { font-size: 18px; margin-bottom: 24px; }

/* Контакты на главной */
.contact__email { font-size: 30px; display: block; width: fit-content; margin-bottom: 20px; text-decoration: none; }

/* Подвал */
.footer { background: var(--footer-bg); color: #fff; padding: 40px 0 60px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 40px; }
.footer__copy { font-size: 14px; font-weight: 600; max-width: 330px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; padding: 0; margin: 0; }
.footer__links a { font-size: 16px; font-weight: 600; text-decoration: none; }
.footer__links a:hover, .footer__top:hover { opacity: .8; }
.footer__top { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Текстовые страницы (политики, соглашения, оферта) */
.doc { max-width: 800px; margin: 0 auto; padding: 60px var(--gutter) 90px; font-size: 20px; }
.doc h1 { font-size: 32px; margin-bottom: 30px; }
.doc h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.doc p { margin: 0 0 .7em; }
.doc ul { padding-left: 1.2em; margin: 0 0 .9em; }
.doc li { margin-bottom: .3em; }
.doc a { color: var(--blue); word-break: break-word; }

/* Обратная связь iazKeeper (тёмная страница) */
.dark-page { background: #404040; color: #fff; min-height: 100vh; }
.faq-link { padding: 30px 0; }
.faq-link__inner { max-width: 760px; margin: 0 auto; }
.faq-link a { font-size: 14px; font-weight: 700; color: var(--orange-link); text-decoration: none; }
.faq-link p { font-size: 15px; text-transform: uppercase; margin: 6px 0 0; }
.donate { max-width: 1000px; margin: 0 auto; padding: 30px var(--gutter); display: flex; align-items: center; gap: 40px; }
.donate__text { font-size: 20px; flex: 1; }
.donate__text strong { font-weight: 600; display: block; }
.feedback { max-width: 760px; margin: 0 auto; padding: 90px var(--gutter) 105px; text-align: center; }
.feedback h1 { font-size: 42px; margin-bottom: 40px; }
.feedback__descr { font-size: 20px; margin-bottom: 50px; }
.feedback__email { font-size: 30px; color: inherit; }

/* Лендинг IAZ-GPT5 */
.gpt-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(0turn, var(--violet-light) 0%, var(--violet) 100%);
  padding: 140px var(--gutter) 80px;
}
.gpt-hero h1 { font-size: 48px; font-style: italic; }
.gpt-hero p { font-size: 16px; margin: 20px 0 40px; }
.gpt-hero .btn { padding: 10px 40px; }
.header--gpt .nav a { font-weight: 400; }
.header--gpt .btn { background: #fff; color: #000; border-radius: 20px; min-height: 40px; padding: 10px 24px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px 40px; max-width: 1120px; margin: 0 auto; text-align: center; }
.feature img { width: 100px; height: 100px; margin: 0 auto 40px; }
.feature h3 { font-size: 24px; margin-bottom: 16px; }
.feature p { font-size: 16px; }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 90px; max-width: 1110px; margin: 0 auto; text-align: center; list-style: none; padding: 0; }
.audience img { width: 100px; height: 100px; margin: 0 auto 30px; }
.audience h3 { font-size: 24px; margin-bottom: 16px; }
.audience p { font-size: 18px; }

.why { max-width: 760px; margin: 0 auto; }
.why__uptitle { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.why h2 { font-size: 32px; margin-bottom: 20px; }
.why__descr { font-size: 18px; }
.why__descr ul { padding-left: 1.2em; margin-top: 1em; }
.why__descr li { margin-bottom: .4em; }

.potential { max-width: 760px; margin: 0 auto; text-align: center; }
.potential img { width: 85px; height: 85px; margin: 0 auto 40px; }
.potential h2 { font-size: 36px; margin-bottom: 30px; }
.potential__uptitle { font-size: 16px; margin-bottom: 24px; }
.potential__descr { font-size: 20px; }

.cta { text-align: center; }
.cta h2 { font-size: 36px; margin-bottom: 20px; }
.cta p { font-size: 20px; max-width: 600px; margin: 0 auto 40px; }

.divider { background: var(--gray-bg); padding: 36px 0; }
.divider hr { max-width: 760px; margin: 0 auto; border: 0; border-top: 1px solid #000; }

.pay { display: flex; justify-content: center; gap: 90px; list-style: none; padding: 0; margin: 0; }
.pay img { width: 100px; height: 100px; }

.gpt-contacts { text-align: center; }
.gpt-contacts p { font-size: 20px; font-weight: 600; max-width: 560px; margin: 24px auto 0; }
.gpt-contacts p a { color: inherit; }

/* Страница 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px var(--gutter) 60px; }
.notfound h1 { font-size: 42px; margin-bottom: 16px; }
.notfound p { font-size: 20px; margin-bottom: 30px; }

/* Адаптив */
@media (max-width: 1240px) {
  .about, .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about__img, .product__img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .product__img { aspect-ratio: 4 / 3; }
}

@media (max-width: 960px) {
  .header__inner { padding: 0 20px; height: 64px; }
  .header__logo img { width: 64px; height: 64px; }
  .burger { display: block; }
  .header .header__social { margin-left: auto; }
  .header .header__social + .burger { margin-left: 0; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background: #000;
  }
  .nav.open { display: flex; }
  .section { padding: 75px 0; }
  .section-title { font-size: 30px; }
  .section-descr { font-size: 20px; }
  .cover__title { font-size: 40px; }
  .cover__descr { font-size: 20px; }
  .about, .product { grid-template-columns: minmax(0, 1fr); }
  .product--reverse .product__img { order: -1; }
  .about__title { font-size: 30px; }
  .about__text { font-size: 18px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 30px; }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
  .gpt-hero h1 { font-size: 34px; }
  .footer__inner { flex-direction: column; text-align: center; padding: 0 20px; }
  .donate { flex-direction: column; align-items: stretch; text-align: center; }
  .doc { font-size: 17px; padding-top: 40px; }
  .doc h1 { font-size: 26px; }
  .doc h2 { font-size: 20px; }
  .feedback h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .features, .audience { grid-template-columns: minmax(0, 1fr); }
  .pay { gap: 30px; }
  .pay img { width: 72px; height: 72px; }
  .contact__email, .feedback__email { font-size: 24px; }
  .potential h2, .cta h2 { font-size: 28px; }
}
