/* reset css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


body {
    font-family: "Montserrat", sans-serif;
    background: #fff;
    color: #1b202a;
    /* line-height: 1; */
}

.wrapper{
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.center{
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

/* index.html */
/* Header */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    text-decoration: none;
}

header .menu ul {
    display: flex;
    gap: 40px;
}

header .menu ul a {
    color: inherit;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    transition: 0.3s;
}

header .menu ul a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

header .phone-number {
    color: inherit;
    line-height: 1.4;
    font-weight: 600;
}

header .phone-number-mobile {
  display: none;
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1001;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .close {
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 48px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu ul a{
  font-size: 16px;
  text-decoration: none;
  color: #1b202a;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

body.menu-open {
  overflow: hidden; 
  pointer-events: none;
  user-select: none;
}

body.menu-open .mobile-menu,
body.menu-open .overlay {
  pointer-events: auto; 
}


/* Section 1*/
.sec1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d6481;
  min-height: 400px;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  }
  
.sec1 .content {
  color: #fff;
  max-width: 50%;
}
  
.sec1 .content h1 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}
  
.sec1 .content p {
  font-size: 16px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  opacity: 0.7;
}

.sec1 button {
  background: #eb1919;
  border: none;
  border-radius: 30px;
  padding: 15px 35px;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.55;
}

.sec1 button a{
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sec1 button:hover {
  background: #c41f1f;
}

.car-image {
  width: 45%;
  height: 400px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: left;      
  display: block;
}

.car-image-mobile {
  display: none;
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.burger img {
    display: block;
}

/* section 2 */
.sec2 {
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.sec2 h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sec2-items {
  display: flex;
  justify-content: space-between;
}

.sec2-item {
  width: 260px;
}

.sec2-item h3{
  color: #1b202a;
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
}

.sec2-item p {
  color: #1b202a;
  font-size: 15px;
  font-weight: 400;
}

/* section catalog */
.catalog {
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.catalog h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.catalog p {
  color: #1b202a;
  font-size: 18px;
}

.catalog .catalog-items {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.catalog-card {
  width: 100%;
  transition: filter 0.5s ease;
}

.catalog-card a{
  text-decoration: none;
}

.catalog .catalog-card:hover {
  cursor: pointer;
  filter: brightness(1.06);
}

.catalog-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 24px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.card-footer h3 {
  color: #1b202a;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.arrow-btn {
  background: #1d6481;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
}


/*section catalog-baner */
.catalog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #21718b;
  border-radius: 28px;
  padding: 36px 48px;
  min-height: 90px;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.catalog-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background-image: url('../images/back.png');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  border-radius: 28px;
}

.catalog-banner__text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  z-index: 1;
  text-align: left;
}

.catalog-banner__btn {
  display: flex;
  align-items: center;
  background: #e31b1b;
  color: #fff;
  border-radius: 28px;
  padding: 0 28px;
  height: 56px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  z-index: 1;
  margin-left: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: none;
  outline: none;
}

.catalog-banner__btn:hover {
  background: #b31212;
}

.catalog-banner__btn .icon {
  font-size: 22px;
  margin-right: 12px;
  display: inline-block;
}

/* section contact */
.contact {
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.contact h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-items {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.contact-item {
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 30px 40px;
  width: 100%;
}

.contact-item p{
  color: #1b202a;
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
}

.contact-item p a {
  color: inherit;
  text-decoration: none;
}

.contact-item h3 {
  color: #1b202a;
  font-size: 15px;
  font-weight: 400;
}

/* maps */
.maps div{
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 30px;
}

hr {
  opacity: 0.1;
  background-color: #1b202a;
}

/* section about us */
.about-us {
  margin-top: 80px;
  margin-bottom: 80px;
}

.about-us h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-us p {
  color: #1b202a;
  font-size: 18px;
  line-height: normal;
}

.about-us p span {
  font-weight: 500;
}

/* footer */
footer{
  margin-bottom: 20px;
  width: 100%;
}

.footer-content {
  padding: 20px 40px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #21718b;
}

footer a {
  text-decoration: none;
}

footer p {
  color: #fff;
}

footer .menu ul {
  display: flex;
  gap: 40px;
  color: #fff;
}

footer .menu ul a {
  color: inherit;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  transition: 0.3s;
}

footer .menu ul a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

footer .phone-number {
  color: #fff;
  line-height: 1.4;
  font-weight: 600;
}

footer .footer-contact{
  text-align: end;
}

/* page parts */
/* cars container */
.cars, .rings{
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.cars h2,
.rings h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cars p,
.rings p {
  color: #1b202a;
  font-size: 18px;
  line-height: normal;
}

.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 32px;
  margin-top: 20px;
}

.card {
  background: #f3f7fa;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
}

.card-dot {
  width: 9px;
  height: 9px;
  background: #21718b;
  /* border-radius: 50%; */
  margin-right: 14px;
  flex-shrink: 0;
}

.cars hr,
.rings hr {
  margin-top: 20px;
}

/* parts-group section */
.parts-group {
  margin-top: 80px;
  margin-bottom: 80px;
}

.parts-group h2{
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.parts-group-items{
  /* background: #f7f8fa; */
  border-radius: 12px;
  padding: 16px 0;
}

.parts-group-item{
  border-radius: 10px;
  margin: 8px 0;
  background: #f7f8fa;
  transition: background 0.2s;
}

.parts-group-item-name{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  padding: 20px 32px;
  cursor: pointer;
  background: #f7f8fa;
  border: none;
  outline: none;
  border-radius: 30px;
}

.parts-group-item.open .icon-plus{
  transform: rotate(180deg);
}

.icon-arrow svg{
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: block;
  border-radius: 50%;
  background-color: #1d6481;
}

.parts-group-item.open .icon-arrow svg {
  transform: rotate(180deg);
}


.parts-group-item-description{
  display: none;
  padding: 0 32px 20px 32px;
  color: #1b202a;
  font-size: 14px;
  line-height: normal;
}

.parts-group-item.open .parts-group-item-description{
  display: block;
}

/* rings page */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 16px;
}

.brand-item {
  background: #f6f9f8;
  border-radius: 12px;
  padding: 16px 0;
  text-align: center;
  font-size: 1.1rem;
  color: #222;
  transition: background 0.2s;
  cursor: pointer;
  user-select: none;
}

.brand-item:hover {
  background: #e6eeed;
}



 /* Адаптив */
@media (max-width: 1280px){
  .center {
      max-width: 90%;
  }
}

@media (max-width: 1200px){
  .sec1 {
    padding: 80px 200px 0 200px;
    display: block;
  }

  .sec1 .content{
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .car-image {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .car-image img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 1024px){
  footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .footer-contact {
    text-align: center;
    min-width: auto;
    margin-top: 20px;
  }

  footer .footer-content .menu ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .catalog .catalog-items{
    width: 90%;
    margin: 20px auto;
    flex-direction: column;
  }

  .card-footer {
    margin-top: 16px;
  }
}

@media (max-width: 1000px){
  header{
    justify-content: space-around;
  }

  header .menu {
    display: none;
  }

  .burger {
    display: block;
  }

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px){
  .sec1 {
    padding: 40px 100px 0 100px;
  }

  .sec1 .content h1{
    font-size: 32px;
  }

  .sec2,
  .catalog,
  .contact,
  .about-us,
  .cars, .rings,
  .parts-group {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .sec2 h2,
  .catalog h2,
  .contact h2,
  .about-us h2,
  .cars h2,
  .rings h2,
  .parts-group h2 {
    font-size: 28px;
  }

  .sec2-item h3,
  .card-footer h3,
  .cars p,
  .rings p,
  .parts-group-item-name{
    font-size: 16px;
  }

  .sec2-item p,
  .catalog p,
  .catalog-banner__btn,
  .contact-item p,
  .about-us p,
  .card{
    font-size: 14px;
  }

  .catalog-banner__text{
    font-size: 20px;
  }

  .contact-items{
    flex-direction: column;
    gap: 20px;
  }

  .contact-item {
    width: auto;
    padding: 20px 40px;
  }

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

@media (max-width: 550px) {
  .sec1 {
    padding: 40px 50px 0 50px;
  }

  .sec1 .content h1{
    font-size: 28px;
  }

  .sec2-items{
    flex-direction: column;
    gap: 20px;
  }

  .sec2-item {
    width: 100%;
  }

  header .phone-number {
    display: none;
  }   

  header .phone-number-mobile {
    display: block;
  }

  .catalog-banner{
    flex-direction: column;
    gap: 10px;
  }

  .catalog-banner__text{
    text-align: center;
  }

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

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* hero animation (replaces animate.css) */
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(60px, 0, 0); }
  to   { opacity: 1; transform: none; }
}

.hero-img {
  animation: fadeInRight 1s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
}

/* accordion headings are keyboard-focusable */
.parts-group-item-name:focus-visible {
  outline: 2px solid #1d6481;
  outline-offset: 2px;
}

/* breadcrumbs (subpages: /opel/*, /rings/*) */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: #6b7480;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #a3aab3;
}

.breadcrumbs a {
  color: #21718b;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  color: #1b202a;
}

/* related links block on model / ring-group pages */
.related {
  margin-top: 40px;
}

.related h2 {
  color: #1b202a;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.related-list a {
  display: inline-block;
  background: #f3f7fa;
  color: #1b202a;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.2s;
}

.related-list a:hover {
  background: #e2edf3;
}

.related-list a.all-link {
  background: #1d6481;
  color: #fff;
}

.related-list a.all-link:hover {
  background: #17516a;
}

/* generic intro text block on model / ring-group pages */
.model-intro,
.group-intro {
  margin-top: 20px;
}

.model-intro p,
.group-intro p {
  color: #1b202a;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* catalog cards now link to model / ring-group pages */
a.card {
  color: #1b202a;
  text-decoration: none;
}

a.card:hover {
  background: #e2edf3;
}

/* hero: primary + secondary action */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  border-radius: 30px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #eb1919;
  color: #fff;
}

.btn-primary:hover {
  background: #c41f1f;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 13px 30px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: #1d6481;
  border: 2px solid #1d6481;
  padding: 13px 30px;
}

.btn-outline:hover {
  background: #1d6481;
  color: #fff;
}

@media (max-width: 1200px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 550px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* "how to get price & availability" block */
.request {
  margin-top: 70px;
  margin-bottom: 70px;
}

.request h2 {
  color: #1b202a;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.request > p {
  text-align: center;
  color: #1b202a;
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
}

.request-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.request-step {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 22px 24px;
}

.request-step strong {
  display: block;
  color: #1d6481;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.request-step p {
  color: #1b202a;
  font-size: 15px;
  line-height: 1.5;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1000px) {
  .request-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .request h2 {
    font-size: 28px;
  }
}

@media (max-width: 550px) {
  .request-actions .btn {
    width: 100%;
  }
}

/* sticky contact bar — mobile only, appears after scrolling past the header */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-bar.visible {
  transform: none;
}

.sticky-bar .btn {
  flex: 1;
  padding: 12px 10px;
}

body.menu-open .sticky-bar {
  display: none;
}

@media (max-width: 1000px) {
  .sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }
}
