
/* ==========================================
   НГК «КОНТУР СТАЛЬ»
   ОБЩИЕ СТИЛИ СТРАНИЦ УСЛУГ И ПРОЕКТОВ
========================================== */

:root {
  --ks-navy: #0B2D50;
  --ks-blue: #315675;
  --ks-steel: #A9BDCE;
  --ks-light: #F3F6F9;
  --ks-white: #FFFFFF;
  --ks-text: #26384A;
  --ks-muted: #68798A;
  --ks-border: #DCE4EB;
  --ks-gradient: linear-gradient(135deg, #0B2D50, #315675);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ks-text);
  background: var(--ks-white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

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

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

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

.ks-header {
  background: #fff;
  border-bottom: 1px solid var(--ks-border);
}

.ks-header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.ks-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ks-navy);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.ks-logo small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.ks-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ks-nav a {
  color: var(--ks-text);
  font-size: 14px;
  font-weight: 600;
}

.ks-nav a:hover,
.ks-nav a.active {
  color: var(--ks-blue);
}

.ks-header-phone {
  color: var(--ks-navy);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================
   BREADCRUMBS
========================================== */

.ks-breadcrumbs {
  padding: 20px 0;
  font-size: 13px;
  color: var(--ks-muted);
}

.ks-breadcrumbs a:hover {
  color: var(--ks-blue);
}

.ks-breadcrumbs span {
  margin: 0 9px;
  color: #AAB5BF;
}

/* ==========================================
   PAGE INTRO
========================================== */

.ks-intro {
  padding: 48px 0 60px;
  background: var(--ks-light);
}

.ks-intro-content {
  max-width: 900px;
}

.ks-label {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--ks-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ks-intro h1 {
  margin: 0 0 22px;
  color: var(--ks-navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
}

.ks-lead {
  max-width: 800px;
  margin: 0;
  color: #506477;
  font-size: 19px;
  line-height: 1.6;
}

/* ==========================================
   CONTENT
========================================== */

.ks-section {
  padding: 70px 0;
}

.ks-section-light {
  background: var(--ks-light);
}

.ks-section-title {
  max-width: 850px;
  margin-bottom: 35px;
}

.ks-section-title h2 {
  margin: 0 0 16px;
  color: var(--ks-navy);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}

.ks-section-title p {
  margin: 0;
  color: var(--ks-muted);
}

.ks-content {
  max-width: 900px;
}

.ks-content h2 {
  margin: 0 0 22px;
  color: var(--ks-navy);
  font-size: 30px;
  line-height: 1.3;
}

.ks-content h3 {
  margin: 32px 0 14px;
  color: var(--ks-navy);
  font-size: 21px;
}

.ks-content p {
  margin: 0 0 18px;
}

.ks-content ul {
  margin: 15px 0 25px;
  padding-left: 23px;
}

.ks-content li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.ks-content li::marker {
  color: var(--ks-blue);
}

/* ==========================================
   CARDS
========================================== */

.ks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.ks-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  transition: 0.25s ease;
}

.ks-card:hover {
  border-color: var(--ks-steel);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(11, 45, 80, 0.07);
}

.ks-card-number {
  margin-bottom: 18px;
  color: var(--ks-steel);
  font-size: 28px;
  font-weight: 800;
}

.ks-card h3 {
  margin: 0 0 12px;
  color: var(--ks-navy);
  font-size: 19px;
}

.ks-card p {
  margin: 0;
  color: var(--ks-muted);
  font-size: 15px;
}

/* ==========================================
   INFO BLOCK
========================================== */

.ks-info {
  padding: 30px 34px;
  background: var(--ks-light);
  border-left: 4px solid var(--ks-blue);
  border-radius: 0 10px 10px 0;
}

.ks-info p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   CTA
========================================== */

.ks-cta {
  padding: 55px 0;
  background: var(--ks-gradient);
  color: #fff;
}

.ks-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.ks-cta h2 {
  max-width: 650px;
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.ks-cta p {
  max-width: 650px;
  margin: 0;
  color: #D6E2EC;
}

.ks-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 27px;
  border: 1px solid #fff;
  border-radius: 6px;
  color: var(--ks-navy);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ks-button:hover {
  background: var(--ks-light);
}

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

.ks-footer {
  padding: 45px 0 25px;
  color: #D5DFE8;
  background: #081F37;
}

.ks-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.ks-footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.ks-footer p {
  margin: 5px 0;
  font-size: 14px;
}

.ks-footer a:hover {
  color: #fff;
}

.ks-footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: #91A4B7;
}

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

@media (max-width: 900px) {

  .ks-header-inner {
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .ks-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px 25px;
  }

  .ks-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 600px) {

  .container {
    padding: 0 18px;
  }

  .ks-header-inner {
    gap: 18px;
  }

  .ks-logo {
    font-size: 20px;
  }

  .ks-header-phone {
    font-size: 13px;
  }

  .ks-nav {
    gap: 12px 18px;
  }

  .ks-nav a {
    font-size: 13px;
  }

  .ks-intro {
    padding: 35px 0 42px;
  }

  .ks-intro h1 {
    font-size: 30px;
  }

  .ks-lead {
    font-size: 16px;
  }

  .ks-section {
    padding: 45px 0;
  }

  .ks-section-title h2,
  .ks-content h2 {
    font-size: 25px;
  }

  .ks-grid {
    grid-template-columns: 1fr;
  }

  .ks-card {
    padding: 23px;
  }

  .ks-info {
    padding: 23px;
  }

  .ks-cta {
    padding: 42px 0;
  }

  .ks-cta h2 {
    font-size: 25px;
  }

  .ks-button {
    width: 100%;
  }

  .ks-footer-inner {
    flex-direction: column;
    gap: 25px;
  }

}

.ks-logo {
  display: inline-flex;
  align-items: center;
}

.ks-logo-img {
  display: block;
  width: 220px;
  height: auto;
  max-width: 100%;
}


/* ТЕКСТ + ИЗОБРАЖЕНИЕ */

.ks-content-image {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
}

.ks-content-image-text {
  max-width: 100%;
}

.ks-content-image-text h2 {
  margin-top: 0;
  margin-bottom: 22px;
}

.ks-content-image-text p {
  margin-bottom: 16px;
}

.ks-content-image-photo {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 18px;
}

.ks-content-image-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* АДАПТИВНОСТЬ */

@media (max-width: 900px) {
  .ks-content-image {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .ks-content-image-photo {
    height: 340px;
  }
}

@media (max-width: 600px) {
  .ks-content-image-photo {
    height: 250px;
    border-radius: 14px;
  }

  .ks-content-image-photo img {
    border-radius: 14px;
  }
}


/* ==========================================
   КАРТОЧКИ ПРОЕКТОВ
========================================== */

.ks-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* Карточка */

.ks-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 18px;
  text-decoration: none;
  color: #26364d;
  box-shadow: 0 5px 20px rgba(25, 45, 70, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.ks-project-card:hover {
  transform: translateY(-6px);
  border-color: #d5dee8;
  box-shadow: 0 14px 32px rgba(25, 45, 70, 0.12);
}

/* Изображение */

.ks-project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf1f5;
}

.ks-project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ks-project-card:hover .ks-project-card-image img {
  transform: scale(1.05);
}

/* Контент карточки */

.ks-project-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 26px 30px 28px;
}

/* Номер проекта */

.ks-project-number {
  margin-bottom: 12px;
  color: #a0adbb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Заголовок */

.ks-project-card h3 {
  margin: 0 0 14px;
  color: #26364d;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ks-project-card:hover h3 {
  color: #c53b32;
}

/* Описание */

.ks-project-card p {
  margin: 0 0 22px;
  color: #687789;
  font-size: 15px;
  line-height: 1.65;
}

/* Ссылка */

.ks-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #bd342d;
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.ks-project-card:hover .ks-project-link {
  gap: 14px;
}


/* ==========================================
   АДАПТИВНОСТЬ
========================================== */

@media (max-width: 768px) {

  .ks-projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }

  .ks-project-card-content {
    padding: 22px 24px 24px;
  }

  .ks-project-card h3 {
    font-size: 21px;
  }

}

@media (max-width: 480px) {

  .ks-project-card-content {
    padding: 20px;
  }

  .ks-project-card h3 {
    font-size: 19px;
  }

  .ks-project-card p {
    font-size: 14px;
  }

}






/* ==========================================
   ГЛАВНЫЙ ЭКРАН С ФОНОВОЙ ФОТОГРАФИЕЙ
========================================== */

.ks-hero {
  position: relative;
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 620px;

  background-image: url("im/metalokonstruktsii-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* Затемнение фотографии */

.ks-hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(15, 29, 45, 0.88) 0%,
    rgba(15, 29, 45, 0.70) 45%,
    rgba(15, 29, 45, 0.25) 100%
  );

  z-index: 1;
}

/* Контент */

.ks-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ks-hero-content {
  max-width: 760px;
  padding: 90px 0;
  color: #fff;
}

/* Надпись над заголовком */

.ks-hero .ks-label {
  color: #e8b65e;
  margin-bottom: 22px;
}

/* Заголовок */

.ks-hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 26px;
}

/* Описание */

.ks-hero .ks-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 34px;
}

/* Кнопка */

.ks-hero .ks-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


/* ==========================================
   АДАПТИВНОСТЬ
========================================== */

@media (max-width: 768px) {

  .ks-hero {
    min-height: 540px;
    background-position: 60% center;
  }

  .ks-hero-overlay {
    background: rgba(15, 29, 45, 0.72);
  }

  .ks-hero-content {
    padding: 75px 0;
  }

  .ks-hero h1 {
    font-size: 34px;
  }

  .ks-hero .ks-lead {
    font-size: 16px;
  }

}

@media (max-width: 480px) {

  .ks-hero {
    min-height: 520px;
  }

  .ks-hero-content {
    padding: 60px 0;
  }

  .ks-hero h1 {
    font-size: 29px;
  }

  .ks-hero .ks-lead {
    font-size: 15px;
  }

}




/* ==========================================
   КАРТОЧКИ ПРЕИМУЩЕСТВ С ФОНОВЫМИ ИЗОБРАЖЕНИЯМИ
========================================== */

.ks-advantage-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Фоновые изображения */

.ks-advantage-card::before {
  content: "";
  position: absolute;

  right: 12px;
  top: 0px;
  bottom: auto;

  width: 580px;
  height: 350px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.13;

  z-index: -1;

  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

/* Изображение каждой карточки */

.ks-advantage-01::before {
  background-image: url("im/01.png");
}

.ks-advantage-02::before {
  background-image: url("im/02.png");
}

.ks-advantage-03::before {
  background-image: url("im/03.png");
}

.ks-advantage-04::before {
  background-image: url("im/04.png");
}

/* Эффект при наведении */

.ks-advantage-card:hover::before {
  opacity: 0.23;
  transform: scale(1.2);
}

/* Контент поверх изображения */

.ks-advantage-card .ks-card-number,
.ks-advantage-card h3,
.ks-advantage-card p {
  position: relative;
  z-index: 1;
}


/* ==========================================
   АДАПТИВНОСТЬ
========================================== */

@media (max-width: 768px) {

  .ks-advantage-card::before {
  width: 580px;
  height: 350px;
    right: 10px;
  top: 5px;
  bottom: auto;
  }

}


/* КАРТОЧКИ-ССЫЛКИ */

.ks-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.ks-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(20, 40, 60, 0.12);
}

.ks-card-link h3 {
  color: inherit;
}

.ks-card-link:hover h3 {
  color: #b93232;
}