/* =========================
   css/style.css
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;
  background:#f3f5f9;
  color:#0b2d78;
  overflow-x:hidden;
}

a{
  text-decoration:none;
}

/* HERO */

.hero{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
    90deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 34%,
    rgba(255,255,255,0.14) 67%,
    rgba(255,255,255,0.02) 100%
  ),
  url("../images/home-hero.webp");
  background-size:cover;
  background-position:center;
  border-bottom-left-radius:42px;
  border-bottom-right-radius:42px;
  padding:28px 54px 74px;
  min-height:650px;
}

/* HEADER */

.header{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:34px;
  margin-bottom:54px;
}

.logo{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.logo img{
  width:74px;
  height:74px;
  flex-shrink:0;
}

.logo-title{
  font-size:46px;
  line-height:0.95;
  font-weight:900;
  color:#0b2d78;
  white-space:nowrap;
}

.logo-title span{
  color:#f3a400;
}

.logo-subtitle{
  margin-top:8px;
  font-size:13px;
  font-weight:800;
  letter-spacing:1.3px;
  color:#0b2d78;
  white-space:nowrap;
}

/* NAV */

.top-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  padding-top:2px;
}

.nav-btn{
  padding:15px 24px;
  border-radius:12px;
  color:white;
  font-size:15px;
  font-weight:900;
  box-shadow:0 5px 12px rgba(0,0,0,0.10);
  transition:0.22s ease;
}

.nav-btn:hover{
  transform:translateY(-3px);
}

.nav-mobile{
  background:linear-gradient(135deg,#0d7bff,#0052db);
}

.nav-internet{
  background:linear-gradient(135deg,#1acb85,#009967);
}

.nav-strom{
  background:linear-gradient(135deg,#ffc328,#f3a100);
}

.nav-gas{
  background:linear-gradient(135deg,#49cfff,#1598ec);
}

/* LANGUAGE */

.lang-switch{
  display:flex;
  gap:10px;
  justify-self:end;
}

.lang-btn{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-size:14px;
  font-weight:900;
  box-shadow:0 5px 12px rgba(0,0,0,0.10);
}

.lang-btn.passive{
  background:white;
  color:#0b2d78;
}

.lang-btn.active{
  background:#0b7cff;
  color:white;
}

/* HERO TEXT */

.hero-content{
  max-width:760px;
}

.hero-text h1{
  font-size:72px;
  line-height:1.02;
  font-weight:900;
  color:#0b2d78;
  margin-bottom:24px;
}

.hero-text p{
  font-size:23px;
  line-height:1.55;
  color:#173d8f;
  margin-bottom:42px;
}

/* FEATURES */

.features{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:42px;
  flex-wrap:nowrap;
}

.feature{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.feature img{
  width:56px;
  height:56px;
  object-fit:contain;
  transform:scale(1.75);
  transform-origin:center;
  flex-shrink:0;
}

.feature:nth-child(3) img{
  width:64px;
  height:64px;
  transform:scale(2.05);
}

.feature span{
  font-size:17px;
  line-height:1.14;
  font-weight:900;
  color:#0b2d78;
  white-space:nowrap;
}

/* SERVICE CARDS */

.service-cards{
  max-width:1160px;
  margin:-54px auto 28px;
  padding:0 12px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  position:relative;
  z-index:10;
}

.service-card{
  display:block;
  height:520px;
  border-radius:22px;
  overflow:hidden;
  background:transparent;
  box-shadow:0 10px 22px rgba(0,0,0,0.10);
  filter:none;
  transition:0.22s ease;
}

.service-card img{
  display:block;
  width:calc(100% + 18px);
  height:calc(100% + 8px);
  margin:-4px -9px;
  object-fit:cover;
  object-position:center;
  border-radius:22px;
  box-shadow:none;
  filter:none;
}

.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(0,0,0,0.14);
}

/* AUDIENCE */

.audience{
  max-width:1230px;
  margin:0 auto 26px;
  padding:0 20px;
}

.audience h2{
  text-align:center;
  font-size:34px;
  font-weight:900;
  color:#0b2d78;
  margin-bottom:22px;
  line-height:1.1;
}

.audience-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.audience-card{
  position:relative;
  min-height:118px;
  border-radius:22px;
  overflow:hidden;
  background:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.04);
}

.audience-card > img{
  position:absolute;
  top:3px;
  left:3px;
  width:calc(100% - 6px);
  height:calc(100% - 6px);
  object-fit:cover;
  border-radius:18px;
}

.audience-card > div{
  position:absolute;
  top:50%;
  left:45%;
  transform:translateY(-50%);
  width:46%;
  z-index:2;
}

.audience-card h3{
  font-size:13px;
  line-height:1.03;
  font-weight:900;
  color:#0b2d78;
  margin-bottom:4px;
}

.audience-card p{
  font-size:11px;
  line-height:1.22;
  color:#173d8f;
}

/* INFO TEXT */

.info-transition{
  max-width:1120px;
  margin:26px auto 24px;
  padding:0 20px;
  text-align:center;
}

.info-transition p{
  font-size:18px;
  line-height:1.65;
  color:#173d8f;
}

.info-transition strong{
  color:#0b2d78;
}
/* =========================
   TELEGRAM
========================= */

.telegram-block{
  max-width:1120px;
  min-height:92px;
  margin:0 auto 34px;
  padding:14px 28px;
  background:#ffffff;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:0 6px 16px rgba(0,0,0,0.05);
}

.telegram-info{
  display:flex;
  align-items:center;
  gap:18px;
}

.telegram-info img{
  width:52px;
  height:52px;
  object-fit:contain;
  flex-shrink:0;
  transform:scale(1.9);
  transform-origin:center;
}

.telegram-info h2{
  font-size:20px;
  line-height:1.05;
  font-weight:900;
  color:#0b2d78;
  margin-bottom:3px;
}

.telegram-info p{
  font-size:14px;
  line-height:1.35;
  color:#173d8f;
}

.telegram-buttons{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
}

.telegram-btn{
  min-width:210px;
  height:48px;
  padding:0 18px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  transition:0.2s ease;
}

.telegram-btn img{
  width:34px;
  height:34px;
  object-fit:contain;
  flex-shrink:0;
  transform:scale(1.7);
  transform-origin:center;
}

.telegram-btn span{
  white-space:nowrap;
  line-height:1;
}

.telegram-btn-ru{
  background:white;
  color:#0b7cff;
  border:2px solid #0b7cff;
}

.telegram-btn-de{
  background:linear-gradient(135deg,#16a8ff,#0067e8);
  color:white;
  border:none;
}

/* FOOTER */

.footer{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:72px;
  padding:18px 20px 48px;
  flex-wrap:wrap;
}

.footer a{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:17px;
  font-weight:700;
  color:#0b2d78;
}

.footer img{
  width:38px;
  height:38px;
  object-fit:contain;
  flex-shrink:0;
  transform:scale(3.6);
  transform-origin:center;
}

.footer::after{
  content:"© TarifKompass 2026";
  flex-basis:100%;
  text-align:center;
  margin-top:14px;
  font-size:13px;
  color:rgba(11,45,120,0.55);
}

/* TABLET */

@media(max-width:1150px){

  .service-cards{
    max-width:720px;
    grid-template-columns:repeat(2,1fr);
  }

  .audience-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .features{
    flex-wrap:wrap;
  }
}

/* MOBILE */

@media(max-width:760px){

  body{
    overflow-x:hidden;
  }

  .hero{
    padding:18px 20px 54px;
    min-height:auto;
    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;
    background-position:68% top;
    overflow:hidden;
  }

  .header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin-bottom:34px;
  }

  .logo{
    display:flex;
    align-items:flex-start;
    gap:10px;
    width:100%;
    min-width:0;
    overflow:hidden;
  }

  .logo img{
    width:58px;
    height:58px;
    flex-shrink:0;
  }

  .logo > div{
    min-width:0;
    overflow:hidden;
  }

  .logo-title{
    font-size:32px;
    line-height:0.92;
    white-space:nowrap;
    overflow:hidden;
  }

  .logo-subtitle{
    margin-top:6px;
    font-size:9px;
    line-height:1.2;
    letter-spacing:0.7px;
    white-space:nowrap;
    overflow:hidden;
  }

  .top-nav{
    display:none;
  }

  .lang-switch{
    display:flex;
    gap:8px;
    margin-left:68px;
    margin-top:0;
    position:relative;
    z-index:20;
  }

  .lang-btn{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:14px;
    font-weight:900;
  }

  .hero-content{
    max-width:100%;
  }

  .hero-text h1{
    font-size:42px;
    line-height:1.08;
    margin-bottom:22px;
  }

  .hero-text p{
    font-size:20px;
    line-height:1.55;
    margin-bottom:34px;
  }

  .features{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:26px;
    flex-wrap:nowrap;
  }

  .feature{
    gap:16px;
  }

  .feature img{
    width:44px;
    height:44px;
    transform:scale(1.45);
  }

  .feature:nth-child(3) img{
    width:52px;
    height:52px;
    transform:scale(1.7);
  }

  .feature span{
    font-size:22px;
    line-height:1.15;
    white-space:normal;
  }

.service-cards{
  max-width:340px;
  grid-template-columns:1fr;
  gap:20px;
  margin:-24px auto 32px;
  padding:0 10px;
}

.service-card{
  height:auto;
  border-radius:28px;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
  padding:0;
}

.service-card img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:28px;
  margin:0;
}

  .audience{
    padding:0 18px;
    margin-bottom:28px;
  }

  .audience h2{
    font-size:34px;
    line-height:1.08;
    margin-bottom:24px;
  }

  .audience-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .audience-card{
    min-height:155px;
    border-radius:26px;
  }

  .audience-card > img{
    top:6px;
    left:6px;
    width:calc(100% - 12px);
    height:calc(100% - 12px);
    border-radius:20px;
    object-fit:cover;
  }

  .audience-card > div{
    left:48%;
    width:44%;
  }

  .audience-card h3{
    font-size:18px;
    line-height:1.08;
    margin-bottom:6px;
  }

  .audience-card p{
    font-size:15px;
    line-height:1.32;
  }

  .info-transition{
    padding:0 22px;
    margin:30px auto;
  }

  .info-transition p{
    font-size:18px;
    line-height:1.75;
  }

  .telegram-block{
    max-width:calc(100% - 36px);
    min-height:auto;
    margin:0 auto 34px;
    padding:24px 22px;
    flex-direction:column;
    align-items:flex-start;
    border-radius:26px;
    gap:22px;
  }

  .telegram-info{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .telegram-info img{
    width:42px;
    height:42px;
    transform:scale(1.7);
  }

  .telegram-info h2{
    font-size:26px;
    line-height:1.08;
  }

  .telegram-info p{
    font-size:18px;
    line-height:1.4;
  }

  .telegram-buttons{
    width:100%;
    flex-direction:column;
    gap:14px;
  }

  .telegram-btn{
    width:100%;
    height:56px;
    font-size:18px;
    border-radius:18px;
    gap:16px;
  }

  .telegram-btn img{
    width:34px;
    height:34px;
    transform:scale(1.7);
  }

  .footer{
    flex-direction:column;
    align-items:flex-start;
    gap:24px;
    padding:24px 26px 42px;
  }

  .footer a{
    font-size:20px;
    gap:18px;
  }

  .footer img{
    width:34px;
    height:34px;
    transform:scale(2.8);
  }

  .footer::after{
    margin-top:14px;
    font-size:13px;
  }
}

/* SMALL MOBILE */

@media(max-width:420px){

  .hero{
    padding:18px 18px 52px;
  }

  .logo img{
    width:56px;
    height:56px;
  }

  .logo-title{
    font-size:30px;
  }

  .logo-subtitle{
    font-size:9px;
  }

  .lang-switch{
    margin-left:66px;
  }

  .lang-btn{
    width:40px;
    height:40px;
    font-size:13px;
  }

  .hero-text h1{
    font-size:38px;
  }

  .hero-text p{
    font-size:19px;
  }

  .service-cards{
    max-width:330px;
  }

  .audience h2{
    font-size:32px;
  }

  .audience-card{
    min-height:150px;
  }

  .audience-card h3{
    font-size:17px;
  }

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

  .info-transition p{
    font-size:17px;
  }
}
