/* Kill margin and padding on all elements - because different browsers have different defaults */
*{
	margin:0;
	padding:0;
}

html{
/* Fixes background nastiness when a sidebar is open in Firefox */
	min-width:700px;
}

body{
/* Use backgound image as opposed to colour so that site is still functional if images are off */
	background: #ebeae7 url(../candy/background.png) 0 0 repeat;
/* Shove all content to the center of the screen for Internet Explorer 5 */
	text-align:center;
}

/*=====[ Set up container divs and add background tiles ]=====*/



#pageheadContainer,
#contentContainer,
#footContainer{
/* 100% so we can create the fullscreen width backgrounds */
	width:100%;
}

#pageheadContainer{
	background:transparent url(../candy/pageheadBackground.jpg) 0 100% repeat-x;
	
}

#pageheadContainer h2 {
	color:black;
	font-size: 1.3em;
}

#contentContainer{
	background: #ebeae7 url(../candy/contentBackground2.png) 50% 100% repeat-y;
/* Float left to prevent floated child divs(#article & #subContent) overflowing . aka the FnE method http://www.orderedlist.com/articles/clearing_floats_fne */
	float:left;
}

#footContainer{
	background:transparent url(../candy/footBackground.jpg) 0 0 repeat-x;
	clear:both;
}

#pagehead,
#content,
#foot{
/* Set widths for "sub" container divs and center on the screen . fluid you say? I think not sir, you are quite mad! */
	width:770px;
	margin:0 auto;
/* Position relative so we can position children absolutley but keep them relative to their parents and not the document root - confused? Me too! */
	position:relative;
/* Shove the content back where it should be now we have convinced IE5 that center aligned websites are, infact, groovy (see body{}) */
	text-align:left;
}

#pagehead{
	height:147px;
}

#foot{
	height:150px;
}

/* More backgounds, we need more backgrounds! */
#pagehead{
	background:transparent url(../candy/pageheadBackground2-2.png) 0 100% repeat-x;
}

#content{
/* Add drop shadow/fading backgound to top of content area . doesn't work on IE5/MAC . oh the shame! */
	background: transparent url(../candy/contentBackground.png) 0 0 no-repeat;
/* Ensure this background tile is never cut short, min-height for Firefox and pals, _height 'hack' for Internet Exploiter */
	min-height:300px;
	_height:300px;
}

#foot{
	background:transparent url(../candy/footBackground2.png) 100% 0 repeat-x;
}

/*=====[ Set up two column layout for articles and subcontent ]=====*/

#article{
	width:500px;
	float:left;
	padding:40px 0 20px 0;
	margin-left:50px;
}
#article1{
	width:700px;
	float:left;
	padding:40px 0 20px 0;
	margin-left:50px;
}
#subContent{
/* Fix double margin bug in IE on floats using display:inline */
	display:inline;
	width:180px;
	float:left;
	padding:40px 0 20px 0;
	margin-left:30px;
	color:#8B725A;
	font-size:.9em;
}

/*=====[ Navigations ]=====*/

#pagehead h1 a{
/* Create blank hit area for logo/signature - PNG here would have been nice but hey, this is IE land we live in!  */
	display:block;
	text-indent:-9999px;
	width: 150px;
	height: 20px;
	text-decoration:none;
/* Float to make hit area work in... yup, you gussed it ayyyeee 5! */
	float:left;
}

#pagehead a:hover{

	background: #558476;
}

#pagehead h1{
/* Position blank hit area over background logo/signature */
	position:absolute;
	top:0;
	left:0;
}

/* Main navigation list */

#pagehead ul{
	display:block;
	position:absolute;
	top:150px;
	left:10px;
}

#pagehead li{
	display:block;
	float:left;
	width:100px;
	margin-left:5px;
}

#pagehead li a{
	display:block;
	height:20px;
	text-align:center;
	color: white;
	font-size:1.2em;
	font-weight:bold;
/* Line height same as height, which puts the text vertically centered, hoorah! */
	line-height:20px;
	text-decoration:none;
	text-transform:lowercase;
}


#pagehead li.odd a{
	background: white;
}

#pagehead li.even a{
	background: white;
}

#pagehead a:hover{
	color: #558476;
}

/* Foot navigation and FIR */

#foot ul{
	position:absolute;
	top: -15px;
}

#foot li{
/* hide bullets */
	list-style-type:none;
}

#foot #foot1{
/* width to solve odd problem with Opera 7.5 */
	width:200px;
	position:absolute;
	left:300px;
	color: #1f3730;
}

#foot #foot2{
/* width to solve odd problem with Opera 7.5 */
	width:200px;
	position:absolute;
	left:570px;
	color: #1f3730;
}

/* This is the anchor top button at bottom of page */
#foot #pageTop{
	position:absolute;
/* This position worked out using a highly technical formula: left a bit, right a bit, no left a bit... bingo! */
	left:482px;
	top:-40px;
}

#foot #pageTop a{
	display:block;
	width:26px;
	height:26px;
	text-indent:-9999px;
	text-decoration:none;
	background:transparent url(../candy/pageTop.png) 0 0 no-repeat;
/* Float to make hit area work in... yup, you gussed it again Internot Exploder 5 */
	float:left;
}

/*=====[ General params and typography ]=====*/

body{
/* relative font sizing to allowing scaling in Internet Exfoliator - http://www.clagnut.com/blog/348/*/
	font:normal 62.5%/1.8em Arial, Helvetica, sans-serif;
}

/* #content ul used to prevent main navigation, within #pagehead, list breaking */
#content ul{
	margin:0.8em 0 0.6em 1em;
	padding-left:1em;
	list-style-type:square;
}

ol{
	margin:0.8em 0 0.6em 2em;
	padding-left:1em;
	list-style-type:lower-roman;
}

blockquote{
	margin:0.8em 0 0.6em 1em;
	padding-left:1em;
	font-style:italic;
	border-left:4px solid #E2D7CF;
}

/* Frame images */
img{
	padding:2px;
	border:1px solid #e8e8e8;
}

/*Set font size for content area */
#content{
	font-size:1.25em;
}

p{	color: #52514f;
	margin:0.3em 0 0.6em 0;
}

a{
	color: #403e3a;
	font-weight:bold;
	text-decoration:none;
}

a:hover{
	background: #9D6141;
	color: #486b60;
}

#article{
	line-height:1.7em;
	color: white;
}

h1,
h2,
h3,
h4{
 font-family:Georgia, Times New Roman, Times, serif;
}

h2{
	color:#52514f;
	margin-bottom:.5em;
	line-height:1.7em;
	font-size:1.7em;
}

h3{             color: #52514f;
	margin:0.8em 0 0.6em 0;
	font-size:1.3em;
}

h4{
	margin:0.8em 0 0.6em 0;
	font-size:1.1em;
}

/* Sub Content */

#subContent h2{
	font-size:1.3em;
}

#subContent h3{
	font-size:1.1em;
}

/* {
    font-family: Verdana, Helvetica;
    font-size: 10pt;*/


/* Fix invalid colour value in original rule */
a:hover {
    background: #9D6141;
    color: #486b60;
}

/* ================================================================
   RESPONSIVE — works on iPhone, Samsung, Huawei, tablets, laptops
   Breakpoints:
     ≤ 480px  — phones (iPhone SE → iPhone 16 Pro Max, Galaxy S, P-series)
     481–768px — large phones / small tablets
     769–1024px — tablets (iPad, Galaxy Tab) / small laptops
     > 1024px  — desktop / notebook (original fixed layout)
   ================================================================ */

/* 1. Lift the IE5 min-width lock so narrow screens don't force scroll */
html {
    min-width: 0;
}

/* 2. All images scale down gracefully */
img {
    max-width: 100%;
    height: auto;
}

/* 3. Inner wrappers: cap at original 770 px, fluid below that */
#pagehead,
#content,
#foot {
    max-width: 770px;
    box-sizing: border-box;
}

/* ---- Small laptops / large tablets  769 px – 1024 px ---- */
@media screen and (max-width: 1024px) {
    #pagehead,
    #content,
    #foot {
        width: 95%;
    }

    #article {
        width: 56%;
        margin-left: 20px;
    }

    #subContent {
        width: 28%;
        margin-left: 15px;
    }
}

/* ---- Tablets & large phones  481 px – 768 px ---- */
@media screen and (max-width: 768px) {
    #pagehead,
    #content,
    #foot {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    #pagehead {
        height: auto;
        min-height: 60px;
    }

    /* Outer wrapper must not float — otherwise it clips at phone width */
    #contentContainer {
        float: none;
        width: 100%;
    }

    /* Stack sidebar above main article */
    #subContent {
        float: none;
        display: block;
        width: auto;
        margin: 0;
        padding: 20px 12px 10px;
    }

    #article,
    #article1 {
        float: none;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 12px 24px;
    }

    /* Footer: absolute pixel positions break on narrow screens */
    #foot {
        height: auto;
        padding: 16px 12px;
    }

    #foot ul {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        padding: 0;
    }

    #foot li,
    #foot #foot1,
    #foot #foot2,
    #foot #pageTop {
        position: static;
        left: auto;
        top: auto;
        width: auto;
    }

    /* Show "Top of the page" as text instead of the icon sprite */
    #foot #pageTop a {
        float: none;
        display: inline;
        width: auto;
        height: auto;
        text-indent: 0;
        background: none;
        text-decoration: underline;
        font-size: 0.9em;
    }
}

/* ---- Phones  ≤ 480 px (iPhone SE, Galaxy S, Huawei Nova …) ---- */
@media screen and (max-width: 480px) {
    #pageheadContainer h2 {
        font-size: 0.9em;
        padding: 10px 10px 6px;
        word-spacing: normal;
        line-height: 1.4em;
    }

    h2 {
        font-size: 1.25em;
        line-height: 1.4em;
    }

    #subContent {
        padding: 14px 10px 6px;
        font-size: 1em;
    }

    #subContent h2 {
        font-size: 1.1em;
    }

    #article,
    #article1 {
        padding: 10px 10px 20px;
    }

    #content ul {
        margin-left: 0;
        padding-left: 0.6em;
    }

    #foot ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Общие настройки для демонстрации */
body {
  margin: 0;
  font-family: sans-serif;
}

.banner {
  /* Путь к картинке. Можно заменить на свою */
  height: 50px;               /* Высота баннера */
  display: flex;
  align-items: center;         /* Выравнивание по вертикали */
  justify-content: center;    /* Выравнивание по горизонтали */
  color: white;
  text-align: center;
  padding: 0 20px;
}

.banner-content {
  max-width: 800px;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Стилизация кнопки */
.banner-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ff4757;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.banner-btn:hover {
  background-color: #e84118;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .banner {
    height: 400px;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
}

