/* =============================================
   ALLERD — VARIABLES & RESET
   ============================================= */
@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:       #e8281e;
  --red-dark:  #c01f17;
  --black:     #111111;
  --dark:      #1c1c1c;
  --gray-dark: #2e2e2e;
  --gray:      #5a5a5a;
  --gray-mid:  #8a8a8a;
  --gray-light:#d4d4d4;
  --border:    #e0e0e0;
  --bg:        #f5f5f5;
  --white:     #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Manrope', sans-serif;

  --radius:    4px;
  --shadow:    0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 32px rgba(0,0,0,0.18);

  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   LAYOUT
   ============================================= */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TOPBAR
   ============================================= */

.topbar {
  background: var(--black);
  color: var(--gray-light);
  font-size: 12px;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar__right {
  display: flex;
  gap: 10px;
}

.topbar__social {
  color: var(--gray-mid);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.topbar__social:hover { color: var(--red); }

/* =============================================
   HEADER
   ============================================= */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--black);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.nav__link:hover { color: var(--black); }
.nav__link:hover::after { width: 100%; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 16px rgba(232,40,30,0.35);
  transform: translateY(-1px);
}

/* =============================================
   SECTION TITLES
   ============================================= */

.section-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 28px;
  line-height: 1.25;
}

.section-title--center { text-align: center; }

/* =============================================
   HERO
   ============================================= */

.hero {
  background: var(--white);
  padding: 64px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 14px;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 380px;
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  border: none;
  border-bottom: 1.5px solid var(--gray-light);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  outline: none;
  background: transparent;
  transition: border-color 0.2s;
}

.form-input:focus { border-bottom-color: var(--red); }

.form-note {
  font-size: 11px;
  color: var(--gray-mid);
  line-height: 1.5;
}

.hero__image {
  position: relative;
  height: 420px;
  min-height: 700px;
  border-radius: 8px;
  overflow: hidden;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  min-width: 670px;
  background: url('../images/hero.png');
  position: relative;
}

.hero__image-placeholder::after {
  content: '⚙ Лазерная резка';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   SERVICES
   ============================================= */

.services {
  background: var(--white);
  padding: 60px 0 80px;
}

.services .section-title {
  font-family: 'Roboto Slab', Georgia, serif !important;
  font-size: 50px;
  font-weight: 400;
  line-height: 66px;
  color: #26130E;
  margin-bottom: 30px;
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services__row-1 {
  display: grid;
  grid-template-columns: 900fr 435fr;
  gap: 20px;
  align-items: start;
}

.services__row-1-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services__row-1-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services__row-2 {
  display: grid;
  grid-template-columns: 670fr 664fr;
  gap: 20px;
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.service-card--1 { height: 455px; }
.service-card--2 { height: 793px; }
.service-card--3 { height: 318px; }
.service-card--4 { height: 318px; }
.service-card--5 { height: 338px; }
.service-card--6 { height: 338px; }

.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.service-card:hover .service-card__bg { transform: scale(1.04); }

.service-card__bg--1 { background-color: #1a2a3a; background-image: url('../images/1.jpg'); }
.service-card__bg--2 { background-color: #1a1a2e; background-image: url('../images/2.jpg');}
.service-card__bg--3 { background-color: #2a2a2a; background-image: url('../images/3.jpg');}
.service-card__bg--4 { background-color: #1e2a1e; background-image: url('../images/4.jpg');}
.service-card__bg--5 { background-color: #2a1a10; background-image: url('../images/5.jpg');}
.service-card__bg--6 { background-color: #1a2a2a; background-image: url('../images/6.jpg');}

.service-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 44%, #000000 100%);
}

.service-card__label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 35px;
  color: #ffffff;
  z-index: 1;
}

/* =============================================
   MATERIALS
   ============================================= */

.materials {
  padding: 60px 0 80px;
  background: var(--white);
}

.materials .section-title {
  font-family: 'Roboto Slab', Georgia, serif !important;
  font-size: 50px;
  font-weight: 500;
  line-height: 66px;
  color: #26130E;
  margin-bottom: 60px;
}

.materials__tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.tag {
  box-sizing: border-box;
  width: 441px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #C74338;
  border-radius: 30px;
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 35px;
  text-align: center;
  color: #26130E;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.tag:hover {
  background: #C74338;
  color: #ffffff;
}

.materials__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 245px;
}

.materials__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.materials__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
  color: #000000;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  font-size: 28px;
  color: #C74338;
  font-weight: 700;
}

.materials__bottom .btn,
.materials__bottom a.btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 322px !important;
  height: 59px !important;
  background: #C74338 !important;
  border-radius: 10px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none !important;
  padding: 10px !important;
  flex-shrink: 0 !important;
  transition: background 0.2s !important;
}

.materials__bottom .btn:hover,
.materials__bottom a.btn:hover {
  background: #a8332a !important;
}

/* =============================================
   ADVANTAGES
   — Figma: Блок4, слайдер, карточки 326px
   ============================================= */

.advantages {
  background: var(--white);
  padding: 60px 0 80px;
  overflow: hidden;
}

.advantages__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.advantages__header .section-title {
  font-family: 'Roboto Slab', Georgia, serif !important;
  font-size: 50px;
  font-weight: 500;
  line-height: 66px;
  color: #26130E;
  margin-bottom: 0;
}

/* Кнопки слайдера */
.slider-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn svg path { transition: fill 0.2s; }
/*.slider-btn:hover svg path { fill: #a8332a; } */
.slider-btn:hover { opacity: 0.7; }

/* Обёртка слайдера */
.advantages__slider-wrap {
  overflow: hidden;
}

.advantages__cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: transform 0.4s ease;
  align-items: center;
}

/* Карточка */
.adv-card {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 326px;
  height: 312px;
  border-radius: 30px;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Последняя карточка выше */
.adv-card--tall {
  height: 440px;
}

.adv-card--light {
  background: var(--white);
  border: 5px solid #000000;
}

.adv-card--dark {
  background: #000000;
  color: #ffffff;
}

.adv-card--red {
  background: #C74338;
  color: #ffffff;
}

.adv-card__title {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 35px;
  color: inherit;
}

.adv-card--light .adv-card__title { color: #000000; }

.adv-card__text {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  color: inherit;
}

.adv-card--light .adv-card__text { color: #000000; }

/* =============================================
   DOCS
   ============================================= */

.docs {
  padding: 60px 0 80px;
  background: var(--white);
}

.docs .section-title {
  font-family: 'Roboto Slab', Georgia, serif !important;
  font-size: 50px;
  font-weight: 500;
  line-height: 66px;
  color: #26130E;
  margin-bottom: 40px;
}

.docs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  row-gap: 24px;
  overflow: hidden;
}

.docs__cell {
  padding: 28px 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  border-left: 4px solid #000;
}

.docs__cell:nth-child(3n) { border-right: none; }
.docs__cell:nth-last-child(-n+3) { border-bottom: none; }

.docs__cell--action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none;
}

.docs__cell--action .btn,
.docs__cell--action a.btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 322px !important;
  height: 59px !important;
  background: #C74338 !important;
  border-radius: 10px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none !important;
  padding: 10px !important;
  transition: background 0.2s !important;
}

.docs__cell--action .btn:hover,
.docs__cell--action a.btn:hover {
  background: #a8332a !important;
}

/* =============================================
   MAP
   ============================================= */

.map-section {
  background: var(--bg);
  padding: 64px 0 0 0;
}

.map-placeholder {
  background: #e0e0e0;
  border-radius: 8px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray);
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--black);
  color: var(--gray-mid);
  padding: 28px 0;
}

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

.footer .logo { color: var(--white); }

.footer__copy { font-size: 12px; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* ── 1200px — широкие ноутбуки ── */
@media (max-width: 1200px) {
  .container { padding: 0 24px; }

  .hero__title { font-size: 52px !important; line-height: 68px !important; }
  .hero__subtitle { font-size: 22px !important; }
  .hero__image { width: 500px !important; height: 560px !important; }
  .hero__inner { grid-template-columns: 1fr 500px; gap: 32px; }

  .tag { width: 360px; height: 120px; font-size: 24px; }

  .adv-card { width: 280px; }
}

/* ── 960px — планшеты горизонтально ── */
@media (max-width: 960px) {
  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero__image {
    width: 100% !important;
    height: 420px !important;
    border-radius: 12px !important;
  }
  .hero__title { font-size: 42px !important; line-height: 52px !important; }
  .hero__subtitle { font-size: 20px !important; }
  .hero__form { width: 100% !important; max-width: 560px; }
  .form-group { width: 100% !important; }

  /* Services */
  .services__row-1 { grid-template-columns: 1fr; }
  .services__row-2 { grid-template-columns: 1fr 1fr; }
  .services__row-1-bottom { grid-template-columns: 1fr 1fr; }
  .service-card--1 { height: 360px; }
  .service-card--2 { height: 280px; }
  .service-card--3,
  .service-card--4 { height: 240px; }
  .service-card--5,
  .service-card--6 { height: 240px; }

  /* Materials */
  .materials__tags { flex-wrap: wrap; }
  .tag { width: 300px; height: 100px; font-size: 22px; }
  .materials__bottom { gap: 40px; }
  .materials__item { font-size: 22px !important; }

  /* Advantages */
  .adv-card { width: 260px; height: 240px; padding: 28px 16px; }
  .adv-card--tall { height: 320px; }
  .adv-card__title { font-size: 22px !important; }
  .adv-card__text { font-size: 15px !important; }

  /* Docs */
  .docs__grid { grid-template-columns: 1fr 1fr; }
  .docs__cell { font-size: 15px; }
  .docs__cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .docs__cell:nth-child(2n) { border-right: none; }
  .docs__cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .docs__cell:last-child { border-bottom: none; }
  .docs__cell--action { grid-column: 1 / -1; border-left: none; }
}

/* ── 768px — планшеты вертикально ── */
@media (max-width: 768px) {
  /* Header */
  .nav { display: none; }

  /* Hero */
  .hero__title { font-size: 36px !important; line-height: 44px !important; }
  .hero__subtitle { font-size: 18px !important; }
  .hero__image { height: 320px !important; }
  .hero__form .btn,
  .hero__form button[type="submit"] { width: 100% !important; }

  /* Section titles */
  .services .section-title,
  .materials .section-title,
  .advantages__header .section-title,
  .docs .section-title { font-size: 36px !important; line-height: 48px !important; }

  /* Services */
  .services__row-2 { grid-template-columns: 1fr; }
  .service-card__label { font-size: 22px !important; }

  /* Materials */
  .tag { width: 100%; height: 90px; font-size: 20px; }
  .materials__bottom { flex-direction: column; gap: 32px; align-items: flex-start; }
  .materials__item { font-size: 18px !important; }
  .materials__bottom .btn,
  .materials__bottom a.btn { width: 100% !important; }

  /* Docs */
  .docs__grid { grid-template-columns: 1fr; }
  .docs__cell { font-size: 15px; border-right: none; }
  .docs__cell:nth-child(2n) { border-right: none; }
  .docs__cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .docs__cell:last-child { border-bottom: none; }
  .docs__cell--action { grid-column: 1; }
  .docs__cell--action .btn,
  .docs__cell--action a.btn { width: 100% !important; }
}

/* ── 480px — мобильные ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Topbar */
  .topbar { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; }
  .topbar__left { flex-direction: column; gap: 4px; }

  /* Hero */
  .hero { padding: 32px 0 40px; }
  .hero__title { font-size: 28px !important; line-height: 36px !important; }
  .hero__subtitle { font-size: 16px !important; }
  .hero__image { height: 240px !important; }

  /* Section titles */
  .services .section-title,
  .materials .section-title,
  .advantages__header .section-title,
  .docs .section-title { font-size: 28px !important; line-height: 36px !important; }

  /* Services */
  .services__row-1-bottom { grid-template-columns: 1fr; }
  .service-card--1,
  .service-card--2,
  .service-card--3,
  .service-card--4,
  .service-card--5,
  .service-card--6 { height: 220px; }
  .service-card__label { font-size: 18px !important; }

  /* Materials */
  .tag { font-size: 18px; height: 80px; }
  .check-icon { width: 36px !important; height: 36px !important; font-size: 20px !important; }
  .materials__item { font-size: 16px !important; }

  /* Advantages */
  .adv-card { width: calc(100vw - 64px); height: auto; min-height: 200px; }
  .adv-card--tall { height: auto; min-height: 260px; }
  .adv-card__title { font-size: 20px !important; }
  .adv-card__text { font-size: 14px !important; }

  /* Docs */
  .docs__cell { font-size: 14px; padding: 20px 16px; }
}

/* =============================================
   HERO OVERRIDES
   (перекрывают базовые стили сайта)
   ============================================= */

/* Заголовок — Roboto Slab */
.hero__title {
  font-family: 'Roboto Slab', Georgia, serif !important;
  font-size: 70px;
  font-weight: 400;
  line-height: 92px;
  color: #26130E !important;
  margin: 0 !important;
}

/* Subtitle */
.hero__subtitle {
  font-family: 'Roboto', sans-serif !important;
  font-size: 30px;
  font-weight: 500 !important;
  line-height: 35px;
  color: #26130E !important;
  margin: 0 !important;
}

/* Кнопка — красная, фиксированный размер */
.hero__form .btn,
.hero__form button[type="submit"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 322px !important;
  height: 59px !important;
  background: #C74338 !important;
  border-radius: 10px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding: 10px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.hero__form .btn:hover,
.hero__form button[type="submit"]:hover {
  background: #a8332a !important;
  transform: none !important;
}

/* Фото — убираем лишние бордеры от base.css */
.hero__image,
.hero__image img,
.hero__image-placeholder {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (min-width: 961px) {
  .hero__image {
    width: 670px !important;
    height: 700px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
}

.hero__image-placeholder {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  background: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
  url('../images/hero.png') center / cover no-repeat !important;
  background-color: #1a1a2e !important;
}